Skip to content

Commit

Permalink
perf_counter tools: Remove one L1-data alias
Browse files Browse the repository at this point in the history
Otherwise all L1-instruction aliases will be recognized as
L1-data by strcasestr() when calling function parse_aliases.

Signed-off-by: Yong Wang <yong.y.wang@intel.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Paul Mackerras <paulus@samba.org>
LKML-Reference: <20090612031706.GA22126@ywang-moblin2.bj.intel.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
Yong Wang authored and Ingo Molnar committed Jun 12, 2009
1 parent 8ebf975 commit faafec1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/perf/util/parse-events.c
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ static char *sw_event_names[] = {
#define MAX_ALIASES 8

static char *hw_cache [][MAX_ALIASES] = {
{ "L1-data" , "l1-d", "l1d", "l1" },
{ "L1-data" , "l1-d", "l1d" },
{ "L1-instruction" , "l1-i", "l1i" },
{ "L2" , "l2" },
{ "Data-TLB" , "dtlb", "d-tlb" },
Expand Down

0 comments on commit faafec1

Please sign in to comment.