diff --git a/tools/perf/util/pmu.c b/tools/perf/util/pmu.c index 8550b3d036d5b684aad1a27b4e588fa253e77363..57093e5c550796cb217622ac41fd4c636f206189 100644 --- a/tools/perf/util/pmu.c +++ b/tools/perf/util/pmu.c @@ -831,8 +831,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))