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:31 +0000
committerNamhyung Kim <[email protected]>2024-01-24 22:04:02 +0000
commita30450e6a43b7f4b4df9bb3eb7dfaebd96f09682 (patch)
tree3517e374d10d606334bb816f3eeb0c92d2e559af /tools/perf/util/scripting-engines/trace-event-python.c
parentperf mem: Add mem_events into the supported perf_pmu (diff)
downloadkernel-a30450e6a43b7f4b4df9bb3eb7dfaebd96f09682.tar.gz
kernel-a30450e6a43b7f4b4df9bb3eb7dfaebd96f09682.zip
perf mem: Clean up perf_mem_events__ptr()
The mem_events can be retrieved from the struct perf_pmu now. An ARCH specific perf_mem_events__ptr() is not required anymore. Remove all of them. The Intel hybrid has multiple mem-events-supported PMUs. But they share the same mem_events. Other ARCHs only support one mem-events-supported PMU. In the configuration, it's good enough to only configure the mem_events for one PMU. Add perf_mem_events_find_pmu() which returns the first mem-events-supported PMU. In the perf_mem_events__init(), the perf_pmus__scan() is not required anymore. It avoids checking the sysfs for every PMU on the system. Make the perf_mem_events__record_args() more generic. Remove the perf_mem_events__print_unsupport_hybrid(). Since pmu is added as a new parameter, rename perf_mem_events__ptr() to perf_pmu__mem_events_ptr(). Several other functions also do a similar rename. Reviewed-by: Ian Rogers <[email protected]> Reviewed-by: Kajol Jain <[email protected]> Tested-by: Ravi Bangoria <[email protected]> Tested-by: Kajol jain <[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] 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