]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
perf stat: Avoid wildcarding PMUs for default events
authorIan Rogers <irogers@google.com>
Sun, 5 Oct 2025 18:24:06 +0000 (11:24 -0700)
committerNamhyung Kim <namhyung@kernel.org>
Wed, 15 Oct 2025 14:59:10 +0000 (23:59 +0900)
commit8079c4c6b9faf2399859fe64f8559e31b336be45
tree73b58ae3f87f2cbfff3ef49cbe353a4636d5038f
parent7c0135e4d7394832b562896241bc6dc943120f18
perf stat: Avoid wildcarding PMUs for default events

Without a PMU perf matches an event against any PMU with the
event. Unfortunately some PMU drivers advertise a "cycles" event which
is typically just a core event. To make perf's behavior consistent,
just look up default events with their designated PMU types.

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/builtin-stat.c