perf list: Make vendor event matching case insensitive
authorAndi Kleen <ak@linux.intel.com>
Wed, 19 Oct 2016 17:50:01 +0000 (10:50 -0700)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 24 Oct 2016 14:07:46 +0000 (11:07 -0300)
commit38d14f0c58fd89d46efd1b783d6536380af28c03
tree741aca6b936a0e2ff860853ae0e5be815e3f3ede
parentecf1e2253ea79c6204f4d6a5e756e8fb4aed5a7e
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>
tools/perf/util/pmu.c
tools/perf/util/string.c
tools/perf/util/util.h