History

perf parse-events: Ignore case in topdown.slots check

An issue with icelakex metrics: https://git.kernel.org/pub/scm/linux/kernel/git/acme/linux.git/tree/tools/perf/pmu-events/arch/x86/icelakex/icx-metrics.json?h=perf/core&id=65eab2bc7dab326ee892ec5a4c749470b368b51a#n48 That causes the slots not to be first.

Ian Rogers committed 4 years ago

Commit 7bd1da11 parent 8b464ea1 file · +1 −1Browse files

Unified · Split

tools/perf/arch/x86/util/evlist.c+1−1
@@ -29,7 +29,7 @@ struct evsel *arch_evlist__leader(struct list_head *list) · 28 unmodified lines
2929
3030 __evlist__for_each_entry(list, evsel) {
3131 if (evsel->pmu_name && !strcmp(evsel->pmu_name, "cpu") &&
32− evsel->name && strstr(evsel->name, "slots"))
32+ evsel->name && strcasestr(evsel->name, "slots"))
3333 return evsel;
3434 }
3535 return first;