File tree Expand file tree Collapse file tree 2 files changed +8
-14
lines changed Expand file tree Collapse file tree 2 files changed +8
-14
lines changed Original file line number Diff line number Diff line change 10
10
11
11
const struct pmu_metrics_table * pmu_metrics_table__find (void )
12
12
{
13
- struct perf_pmu * pmu = perf_pmus__find_core_pmu ();
13
+ struct perf_pmu * pmu ;
14
+
15
+ /* Metrics aren't currently supported on heterogeneous Arm systems */
16
+ if (perf_pmus__num_core_pmus () > 1 )
17
+ return NULL ;
14
18
19
+ /* Doesn't matter which one here because they'll all be the same */
20
+ pmu = perf_pmus__find_core_pmu ();
15
21
if (pmu )
16
22
return perf_pmu__find_metrics_table (pmu );
17
23
Original file line number Diff line number Diff line change @@ -596,17 +596,5 @@ struct perf_pmu *evsel__find_pmu(const struct evsel *evsel)
596
596
597
597
struct perf_pmu * perf_pmus__find_core_pmu (void )
598
598
{
599
- struct perf_pmu * pmu = NULL ;
600
-
601
- while ((pmu = perf_pmus__scan_core (pmu ))) {
602
- /*
603
- * The cpumap should cover all CPUs. Otherwise, some CPUs may
604
- * not support some events or have different event IDs.
605
- */
606
- if (RC_CHK_ACCESS (pmu -> cpus )-> nr != cpu__max_cpu ().cpu )
607
- return NULL ;
608
-
609
- return pmu ;
610
- }
611
- return NULL ;
599
+ return perf_pmus__scan_core (NULL );
612
600
}
You can’t perform that action at this time.
0 commit comments