perf python: In str(evsel) use the evsel__pmu_name helper
authorIan Rogers <irogers@google.com>
Thu, 10 Jul 2025 23:51:22 +0000 (16:51 -0700)
committerNamhyung Kim <namhyung@kernel.org>
Fri, 11 Jul 2025 19:36:40 +0000 (12:36 -0700)
commit7d5b635d9f4314c93bc1f9828f5d757decb860bc
treec08397ee14ed43fc62fdaf825e4230e216170bb6
parent5c255832deaf34d74c0adf2200eb50a8bba0fc00
perf python: In str(evsel) use the evsel__pmu_name helper

The evsel__pmu_name helper will internally use evsel__find_pmu that
handles legacy events, extended types, etc. in determining a PMU and
will provide a better value than just trying to access the PMU's name
directly as the PMU may not have been computed.

Signed-off-by: Ian Rogers <irogers@google.com>
Link: https://lore.kernel.org/r/20250710235126.1086011-10-irogers@google.com
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
tools/perf/util/python.c