]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
perf pmu-events: Add API to get metric table name and iterate tables
authorIan Rogers <irogers@google.com>
Tue, 2 Jun 2026 17:41:14 +0000 (10:41 -0700)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 4 Jun 2026 14:35:52 +0000 (11:35 -0300)
commit53247b207bd02116cefd3409494382e7adf32849
treeb5c16b853997ce60063dd1db40c3139323df38c0
parent2c43c0c78668a7026967ab8280f0f9ffc04e65f4
perf pmu-events: Add API to get metric table name and iterate tables

Add name field to struct pmu_metrics_table and populate it in generated
tables. Add pmu_metrics_table__name() to retrieve the name. Add
pmu_metrics_table__for_each_table() to iterate over all known metric
tables.

This will be used to break apart slow metric tests per table.

Assisted-by: Gemini-CLI:Google Gemini 3
Signed-off-by: Ian Rogers <irogers@google.com>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: James Clark <james.clark@linaro.org>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/pmu-events/empty-pmu-events.c
tools/perf/pmu-events/jevents.py
tools/perf/pmu-events/pmu-events.h