Commit e800ac5
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.com1 parent 9734e25 commit e800ac5
1 file changed
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2650 | 2650 | | |
2651 | 2651 | | |
2652 | 2652 | | |
2653 | | - | |
| 2653 | + | |
| 2654 | + | |
2654 | 2655 | | |
2655 | 2656 | | |
2656 | 2657 | | |
2657 | 2658 | | |
2658 | 2659 | | |
2659 | 2660 | | |
2660 | | - | |
| 2661 | + | |
| 2662 | + | |
2661 | 2663 | | |
2662 | 2664 | | |
2663 | 2665 | | |
| |||
0 commit comments