diff options
| author | Ian Rogers <irogers@google.com> | 2026-02-07 03:49:56 +0300 |
|---|---|---|
| committer | Namhyung Kim <namhyung@kernel.org> | 2026-02-24 20:52:08 +0300 |
| commit | c5a244bf17caf2de22f9e100832b75f72b31d3e6 (patch) | |
| tree | c45f15ce19fb05574cf4e0dcc90c043eec4db417 | |
| parent | aa6a6a2d16c1e2e27e986936369959d70316199f (diff) | |
| download | linux-c5a244bf17caf2de22f9e100832b75f72b31d3e6.tar.xz | |
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: cee275edcdb1 ("perf metricgroup: Don't early exit if no CPUID table exists")
Signed-off-by: Ian Rogers <irogers@google.com>
Reviewed-by: Leo Yan <leo.yan@arm.com>
Tested-by: Leo Yan <leo.yan@arm.com>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
| -rw-r--r-- | tools/perf/util/metricgroup.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/perf/util/metricgroup.c b/tools/perf/util/metricgroup.c index 46bf4dfeebc8..7e39d469111b 100644 --- a/tools/perf/util/metricgroup.c +++ b/tools/perf/util/metricgroup.c @@ -1605,9 +1605,9 @@ bool metricgroup__has_metric_or_groups(const char *pmu, const char *metric_or_gr .metric_or_groups = metric_or_groups, }; - return pmu_metrics_table__for_each_metric(table, - metricgroup__has_metric_or_groups_callback, - &data) + return metricgroup__for_each_metric(table, + metricgroup__has_metric_or_groups_callback, + &data) ? true : false; } |
