Skip to content

Commit

Permalink
skip PERF_RECORD_THROTTLE/PERF_RECORD_UNTHROTTLE
Browse files Browse the repository at this point in the history
fixes KDAB/hotspot#177

Change-Id: Ifd31af2344214a02550bab9cf8513f88608c60e8
Reviewed-by: Ulf Hermann <[email protected]>
  • Loading branch information
GitMensch authored and milianw committed May 30, 2022
1 parent cd32c6f commit f2e0199
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions app/perfdata.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,13 @@ PerfData::ReadStatus PerfData::processEvents(QDataStream &stream)
}
#endif

// list of events we are not interested in and just skip
// [UN]THROTTLE: if seen in a recording then commonly much too much to just warn on
case PERF_RECORD_THROTTLE:
case PERF_RECORD_UNTHROTTLE:
stream.skipRawData(contentSize);
break;

default:
qWarning() << "unhandled event type" << m_eventHeader.type << " " << perfEventToString(m_eventHeader.type);
stream.skipRawData(contentSize);
Expand Down

0 comments on commit f2e0199

Please sign in to comment.