]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
perf jevents: Add legacy json terms and default_core event table helper
authorIan Rogers <irogers@google.com>
Sun, 5 Oct 2025 18:24:14 +0000 (11:24 -0700)
committerNamhyung Kim <namhyung@kernel.org>
Wed, 15 Oct 2025 14:59:10 +0000 (23:59 +0900)
commit903151c81c630ab7bcc37435755f6f9698e628f7
tree924c24b75c47851780c5d5fe746fc4408f2f7d18
parentabcff00014b8ddb3cab87079f7c91ee9fa973eb5
perf jevents: Add legacy json terms and default_core event table helper

Add json LegacyConfigCode and LegacyCacheCode values that translate to
legacy-hardware-config and legacy-cache-config event terms
respectively.

Add perf_pmu__default_core_events_table as a means to find a
default_core event table that will later contain legacy events.

In situations like hypervisors it is more likely that tables will be
NULL. Rather than testing in the calling PMU code, early exit in the
pmu-event.c routines.

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/pmu-events/empty-pmu-events.c
tools/perf/pmu-events/jevents.py
tools/perf/pmu-events/pmu-events.h