summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Sobisch <simonsobisch@web.de>2021-10-28 16:36:53 +0200
committerMilian Wolff <milian.wolff@kdab.com>2022-05-30 15:53:41 +0000
commitf2e019928c5f6449724319f08bd5f0d8a1532ad1 (patch)
tree1387ba2c8ff4c3d6e21c2642150e144d5a9d2c34
parentcd32c6f15ecd42d99c2c25c7c7751f1dd88bc32b (diff)
skip PERF_RECORD_THROTTLE/PERF_RECORD_UNTHROTTLE
fixes https://github.com/KDAB/hotspot/issues/177 Change-Id: Ifd31af2344214a02550bab9cf8513f88608c60e8 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
-rw-r--r--app/perfdata.cpp7
1 files changed, 7 insertions, 0 deletions
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);