]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
perf parse-events: Fix legacy cache events if event is duplicated in a PMU
authorIan Rogers <irogers@google.com>
Sun, 5 Oct 2025 18:24:04 +0000 (11:24 -0700)
committerNamhyung Kim <namhyung@kernel.org>
Wed, 15 Oct 2025 14:59:10 +0000 (23:59 +0900)
commitb7b76f607a15f16031001687e733046b5f6f5d86
treeb15b04e5e746cb4a0c77619555fc40789fe1dbfa
parent2a67955de13624ec17d1c2504d2c9eeb37933b77
perf parse-events: Fix legacy cache events if event is duplicated in a PMU

The term list when adding an event to a PMU is expected to have the
event name for the alias lookup. Also, set found_supported so that
-EINVAL isn't returned.

Fixes: 62593394f66a ("perf parse-events: Legacy cache names on all
PMUs and lower priority")

Tested-by: Thomas Richter <tmricht@linux.ibm.com>
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/util/parse-events.c
tools/perf/util/parse-events.h
tools/perf/util/parse-events.y