aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/util.h
diff options
context:
space:
mode:
authorAndi Kleen <ak@linux.intel.com>2016-10-19 10:50:01 -0700
committerArnaldo Carvalho de Melo <acme@redhat.com>2016-10-24 11:07:46 -0300
commit38d14f0c58fd89d46efd1b783d6536380af28c03 (patch)
tree741aca6b936a0e2ff860853ae0e5be815e3f3ede /tools/perf/util/util.h
parentperf trace: Use the syscall raw_syscalls:sys_enter timestamp (diff)
downloadlinux-dev-38d14f0c58fd89d46efd1b783d6536380af28c03.tar.xz
linux-dev-38d14f0c58fd89d46efd1b783d6536380af28c03.zip
perf list: Make vendor event matching case insensitive
Make the 'perf list' glob matching for vendor events case insensitive. This allows to use the upper case vendor events with perf list too. Now the following works: % perf list LONGEST_LAT ... cache: longest_lat_cache.miss [Core-originated cacheable demand requests missed LLC] longest_lat_cache.reference [Core-originated cacheable demand requests that refer to LLC] Signed-off-by: Andi Kleen <ak@linux.intel.com> Suggested-by: Ingo Molnar <mingo@kernel.org> Tested-by: Arnaldo Carvalho de Melo <acme@redhat.com> Cc: Jiri Olsa <jolsa@kernel.org> Link: http://lkml.kernel.org/r/1476899402-31460-1-git-send-email-andi@firstfloor.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to '')
-rw-r--r--tools/perf/util/util.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/perf/util/util.h b/tools/perf/util/util.h
index 43899e0d6fa1..71b6992f1d98 100644
--- a/tools/perf/util/util.h
+++ b/tools/perf/util/util.h
@@ -222,6 +222,7 @@ s64 perf_atoll(const char *str);
char **argv_split(const char *str, int *argcp);
void argv_free(char **argv);
bool strglobmatch(const char *str, const char *pat);
+bool strglobmatch_nocase(const char *str, const char *pat);
bool strlazymatch(const char *str, const char *pat);
static inline bool strisglob(const char *str)
{