From f2e019928c5f6449724319f08bd5f0d8a1532ad1 Mon Sep 17 00:00:00 2001 From: Simon Sobisch Date: Thu, 28 Oct 2021 16:36:53 +0200 Subject: [PATCH] skip PERF_RECORD_THROTTLE/PERF_RECORD_UNTHROTTLE fixes https://github.com/KDAB/hotspot/issues/177 Change-Id: Ifd31af2344214a02550bab9cf8513f88608c60e8 Reviewed-by: Ulf Hermann --- app/perfdata.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/app/perfdata.cpp b/app/perfdata.cpp index 27a2095..af194ce 100644 --- a/app/perfdata.cpp +++ b/app/perfdata.cpp @@ -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);