Re: [PATCH v1] perf metricgroup: Fix metricgroup__has_metric_or_groups
From: Leo Yan
Date: Mon Feb 09 2026 - 04:22:26 EST
On Fri, Feb 06, 2026 at 04:49:56PM -0800, Ian Rogers wrote:
> 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@xxxxxxxxxx>
Reviewed-by: Leo Yan <leo.yan@xxxxxxx>
Tested-by: Leo Yan <leo.yan@xxxxxxx>