]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
perf metricgroup: Fix metricgroup__has_metric_or_groups()
authorIan Rogers <irogers@google.com>
Sat, 7 Feb 2026 00:49:56 +0000 (16:49 -0800)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 17 Mar 2026 20:16:05 +0000 (17:16 -0300)
commit8dd1d9a335321d0829aeb85d8e1a897248d0da29
treecf3324aa4d5328408cc6806cb2bf6892c2ca257f
parent81f86728a9804c7ff99df8f2cb7a7a081a270400
perf metricgroup: Fix metricgroup__has_metric_or_groups()

Use metricgroup__for_each_metric() rather than
pmu_metrics_table__for_each_metric() that combines the
default metric table with, a potentially empty, CPUID table.

Fixes: cee275edcdb1acfd ("perf metricgroup: Don't early exit if no CPUID table exists")
Reviewed-by: Leo Yan <leo.yan@arm.com>
Signed-off-by: Ian Rogers <irogers@google.com>
Tested-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Tested-by: Leo Yan <leo.yan@arm.com>
Cc: Ian Rogers <irogers@google.com>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/metricgroup.c