diff options
Diffstat (limited to 'tools/perf/util/parse-events.c')
-rw-r--r-- | tools/perf/util/parse-events.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/tools/perf/util/parse-events.c b/tools/perf/util/parse-events.c index 1869e4c646db..8e54bdb553c3 100644 --- a/tools/perf/util/parse-events.c +++ b/tools/perf/util/parse-events.c | |||
@@ -649,13 +649,15 @@ static int check_events(const char *str, unsigned int i) | |||
649 | int n; | 649 | int n; |
650 | 650 | ||
651 | n = strlen(event_symbols[i].symbol); | 651 | n = strlen(event_symbols[i].symbol); |
652 | if (!strncmp(str, event_symbols[i].symbol, n)) | 652 | if (!strncasecmp(str, event_symbols[i].symbol, n)) |
653 | return n; | 653 | return n; |
654 | 654 | ||
655 | n = strlen(event_symbols[i].alias); | 655 | n = strlen(event_symbols[i].alias); |
656 | if (n) | 656 | if (n) { |
657 | if (!strncmp(str, event_symbols[i].alias, n)) | 657 | if (!strncasecmp(str, event_symbols[i].alias, n)) |
658 | return n; | 658 | return n; |
659 | } | ||
660 | |||
659 | return 0; | 661 | return 0; |
660 | } | 662 | } |
661 | 663 | ||