Message ID | 1592384514-119954-2-git-send-email-john.garry@huawei.com (mailing list archive) |
---|---|
State | Mainlined |
Commit | c1b4745b48b3c5a29df6ef2b68384e7cccdc3691 |
Headers | show |
Series | perf: Improve list for arm64 | expand |
diff --git a/tools/perf/util/pmu.c b/tools/perf/util/pmu.c index 93fe72a9dc0b..a375364537cd 100644 --- a/tools/perf/util/pmu.c +++ b/tools/perf/util/pmu.c @@ -1475,7 +1475,7 @@ void print_pmu_events(const char *event_glob, bool name_only, bool quiet_flag, list_for_each_entry(alias, &pmu->aliases, list) { char *name = alias->desc ? alias->name : format_alias(buf, sizeof(buf), pmu, alias); - bool is_cpu = !strcmp(pmu->name, "cpu"); + bool is_cpu = is_pmu_core(pmu->name); if (alias->deprecated && !deprecated) continue;