]> www.infradead.org Git - users/jedix/linux-maple.git/commit
perf evsel: Add pmu_name helper
authorIan Rogers <irogers@google.com>
Thu, 9 Jan 2025 22:21:06 +0000 (14:21 -0800)
committerNamhyung Kim <namhyung@kernel.org>
Wed, 29 Jan 2025 22:05:57 +0000 (14:05 -0800)
commit6ab89b7fc2b5ef7eaa6054143ba09f6e0fefb657
treed942242ff73105826ba90779db51a370d6fee335
parent66e99fd5a1a6f249b56b910d42ec66598f681e47
perf evsel: Add pmu_name helper

Add helper to get the name of the evsel's PMU. This handles the case
where there's no sysfs PMU via parse_events event_type helper.

Signed-off-by: Ian Rogers <irogers@google.com>
Tested-by: James Clark <james.clark@linaro.org>
Tested-by: Leo Yan <leo.yan@arm.com>
Tested-by: Atish Patra <atishp@rivosinc.com>
Link: https://lore.kernel.org/r/20250109222109.567031-2-irogers@google.com
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
tools/perf/util/evsel.c
tools/perf/util/evsel.h