]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
perf pmu: Add and use legacy_terms in alias information
authorIan Rogers <irogers@google.com>
Sun, 5 Oct 2025 18:24:15 +0000 (11:24 -0700)
committerNamhyung Kim <namhyung@kernel.org>
Wed, 15 Oct 2025 14:59:11 +0000 (23:59 +0900)
commit249a4c6d0165b2ad32f97e6b929718178c70b00e
tree33e92762371096ae24e5e010e47be4f566094a8f
parent903151c81c630ab7bcc37435755f6f9698e628f7
perf pmu: Add and use legacy_terms in alias information

Add support to finding/adding events from the default_core event
table. If an event already exists from sysfs/json then the
default_core configuration is saved in the legacy_terms string. Lazily
use the legacy_terms string to set a legacy hardware or cache event as
deprecated if the core PMU doesn't support it. Use the legacy terms
string to set the alternate_hw_config, avoiding the value needing to
be passed from the parse_events parser.

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/pmu.c