perf_counter tools: Rename cache events to remove $
authorAnton Blanchard <anton@samba.org>
Mon, 6 Jul 2009 12:01:31 +0000 (22:01 +1000)
committerIngo Molnar <mingo@elte.hu>
Fri, 10 Jul 2009 08:04:06 +0000 (10:04 +0200)
The cache events contain '$' which will hit shell variable
expansion. To avoid confusion change this to 'cache', ie
L1-d$-loads becomes L1-dcache-loads.

Signed-off-by: Anton Blanchard <anton@samba.org>
Cc: Roland Dreier <rdreier@cisco.com>
Cc: Jaswinder Singh Rajput <jaswinder@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
LKML-Reference: <20090706120131.GB4391@kryten>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
tools/perf/util/parse-events.c

index 5184959e0615b7e79e38058cac0594a55a3b6fc4..518a33affe1a2fd5b58a0ae9b4644f623896a23b 100644 (file)
@@ -71,8 +71,8 @@ static char *sw_event_names[] = {
 #define MAX_ALIASES 8
 
 static char *hw_cache[][MAX_ALIASES] = {
- { "L1-d$",    "l1-d",         "l1d",          "L1-data",              },
- { "L1-i$",    "l1-i",         "l1i",          "L1-instruction",       },
+ { "L1-dcache",        "l1-d",         "l1d",          "L1-data",              },
+ { "L1-icache",        "l1-i",         "l1i",          "L1-instruction",       },
  { "LLC",      "L2"                                                    },
  { "dTLB",     "d-tlb",        "Data-TLB",                             },
  { "iTLB",     "i-tlb",        "Instruction-TLB",                      },