]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
perf test parse-events: Remove cpu PMU requirement
authorIan Rogers <irogers@google.com>
Sun, 5 Oct 2025 18:24:26 +0000 (11:24 -0700)
committerNamhyung Kim <namhyung@kernel.org>
Wed, 15 Oct 2025 14:59:11 +0000 (23:59 +0900)
commitd47c65eea8acd13a32a8d0caa3bae9a611b09ac8
treee3a8d0db599feac926f856fb48d6a84b93a5feab
parent2e6dc3b9334cd0d404591009b3d9957edcf2f6cf
perf test parse-events: Remove cpu PMU requirement

In the event parse string, switch "cpu" to "default_core" and then
rewrite this to the first core PMU name prior to parsing. This enables
testing with a PMU on hybrid x86 and other systems that don't use
"cpu" for the core PMU name. The name "default_core" is already used
by jevents. Update test expectations to match.

Signed-off-by: Ian Rogers <irogers@google.com>
Tested-by: James Clark <james.clark@linaro.org>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
tools/perf/tests/parse-events.c