diff options
Diffstat (limited to 'tools/perf/util')
| -rw-r--r-- | tools/perf/util/pmu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/util/pmu.c b/tools/perf/util/pmu.c index 7799788f662f..7e49baad304d 100644 --- a/tools/perf/util/pmu.c +++ b/tools/perf/util/pmu.c | |||
| @@ -773,7 +773,7 @@ static void pmu_add_cpu_aliases(struct list_head *head, struct perf_pmu *pmu) | |||
| 773 | 773 | ||
| 774 | if (!is_arm_pmu_core(name)) { | 774 | if (!is_arm_pmu_core(name)) { |
| 775 | pname = pe->pmu ? pe->pmu : "cpu"; | 775 | pname = pe->pmu ? pe->pmu : "cpu"; |
| 776 | if (strncmp(pname, name, strlen(pname))) | 776 | if (strcmp(pname, name)) |
| 777 | continue; | 777 | continue; |
| 778 | } | 778 | } |
| 779 | 779 | ||
