]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
perf test parse-events: Without a PMU use cpu-cycles rather than cycles
authorIan Rogers <irogers@google.com>
Sun, 5 Oct 2025 18:24:25 +0000 (11:24 -0700)
committerNamhyung Kim <namhyung@kernel.org>
Wed, 15 Oct 2025 14:59:11 +0000 (23:59 +0900)
commit2e6dc3b9334cd0d404591009b3d9957edcf2f6cf
tree1fe04b127bfa0d53d2578e159eef6be299c0f87d
parentecfcc6a825dfacdb4f3cf38fe4b463396fa0d029
perf test parse-events: Without a PMU use cpu-cycles rather than cycles

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. Switch to using "cpu-cycles" which is
an indentical legacy event but avoids the multiple PMU confusion
introduced by the PMU drivers. Note, on x86 cpu-cycles is also a sysfs
event but cycles isn't.

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