diff --git a/tools/perf/util/pmu.c b/tools/perf/util/pmu.c index fc683bc417152d338fb4cc9b23d7519ab479ed1d..b1fc820734431f1c8ee419bdce00a0ec616f37af 100644 --- a/tools/perf/util/pmu.c +++ b/tools/perf/util/pmu.c @@ -843,8 +843,7 @@ void pmu_add_cpu_aliases_map(struct list_head *head, struct perf_pmu *pmu, break; } - if (pmu_is_uncore(name) && - pmu_uncore_alias_match(pname, name)) + if (pmu->is_uncore && pmu_uncore_alias_match(pname, name)) goto new_alias; if (strcmp(pname, name))