aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/scripting-engines/trace-event-python.c
diff options
context:
space:
mode:
authorIan Rogers <[email protected]>2025-07-19 03:05:15 +0000
committerNamhyung Kim <[email protected]>2025-07-24 20:41:35 +0000
commit5b546de9cc177936a3ed07d7d46ef072db4fdbab (patch)
tree6702a5f5f1bee3c7a8175ca1e49c3d24938ccce6 /tools/perf/util/scripting-engines/trace-event-python.c
parentperf parse-events: Support user CPUs mixed with threads/processes (diff)
downloadkernel-5b546de9cc177936a3ed07d7d46ef072db4fdbab.tar.gz
kernel-5b546de9cc177936a3ed07d7d46ef072db4fdbab.zip
perf topdown: Use attribute to see an event is a topdown metic or slots
The string comparisons were overly broad and could fire for the incorrect PMU and events. Switch to using the config in the attribute then add a perf test to confirm the attribute config values match those of parsed events of that name and don't match others. This exposed matches for slots events that shouldn't have matched as the slots fixed counter event, such as topdown.slots_p. Fixes: fbc798316bef ("perf x86/topdown: Refine helper arch_is_topdown_metrics()") Signed-off-by: Ian Rogers <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Namhyung Kim <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions