mirror of
https://github.com/torvalds/linux.git
synced 2026-05-23 22:52:19 +02:00
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: cee275edcd ("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>
This commit is contained in:
parent
aa6a6a2d16
commit
c5a244bf17
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user