]> www.infradead.org Git - users/jedix/linux-maple.git/commit
perf: Only dump the throttle log for the leader
authorKan Liang <kan.liang@linux.intel.com>
Tue, 20 May 2025 18:16:30 +0000 (11:16 -0700)
committerPeter Zijlstra <peterz@infradead.org>
Wed, 21 May 2025 11:57:43 +0000 (13:57 +0200)
commite800ac51202f053018f3d6acb1819ecec4d75a2c
treeabbf30b14c39b9c81866311bcd54741ce1f0ed04
parent9734e25fbf5ae68eb04234b2cd14a4b36ab89141
perf: Only dump the throttle log for the leader

The PERF_RECORD_THROTTLE records are dumped for all throttled events.
It's not necessary for group events, which are throttled altogether.

Optimize it by only dump the throttle log for the leader.

The sample right after the THROTTLE record must be generated by the
actual target event. It is good enough for the perf tool to locate the
actual target event.

Suggested-by: Namhyung Kim <namhyung@kernel.org>
Signed-off-by: Kan Liang <kan.liang@linux.intel.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: Namhyung Kim <namhyung@kernel.org>
Link: https://lore.kernel.org/r/20250520181644.2673067-3-kan.liang@linux.intel.com
kernel/events/core.c