aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/scripting-engines/trace-event-python.c
diff options
context:
space:
mode:
authorKan Liang <[email protected]>2024-01-23 18:50:33 +0000
committerNamhyung Kim <[email protected]>2024-01-24 22:04:46 +0000
commitdb95c2ce9be6e447f36423313526cfeb8cd5fc7a (patch)
tree2fc8c607fe704550366c60a7fabaf7239a2a9cb5 /tools/perf/util/scripting-engines/trace-event-python.c
parentperf mem: Clean up perf_mem_events__name() (diff)
downloadkernel-db95c2ce9be6e447f36423313526cfeb8cd5fc7a.tar.gz
kernel-db95c2ce9be6e447f36423313526cfeb8cd5fc7a.zip
perf mem: Clean up perf_mem_event__supported()
For some ARCHs, e.g., ARM and AMD, to get the availability of the mem-events, perf checks the existence of a specific PMU. For the other ARCHs, e.g., Intel and Power, perf has to check the existence of some specific events. The current perf only iterates the mem-events-supported PMUs. It's not required to check the existence of a specific PMU anymore. Rename sysfs_name to event_name, which stores the specific mem-events. Perf only needs to check those events for the availability of the mem-events. Rename perf_mem_event__supported to perf_pmu__mem_events_supported. Reviewed-by: Ian Rogers <[email protected]> Tested-by: Ravi Bangoria <[email protected]> Tested-by: Leo Yan <[email protected]> Signed-off-by: Kan Liang <[email protected]> Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [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