Skip to contentSkip to conversation

perf_counter tools: Remove one L1-data alias

PATCH In review Yong Wang 1 participant 2 messages Jun 12, 2009 perf events

lore
Share & tools
lore

Yong Wang

author
#0 lore raw

PATCH 1/1 perf_counter tools: Remove one L1-data alias

Otherwise all L1-instruction aliases will be recognized as L1-data by strcasestr() when calling function parse_aliases.

---
 tools/perf/util/parse-events.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/perf/util/parse-events.c +1 -1
index 9d5f1ca..5a72586 100644
@@ -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"				},
#1 lore raw
Commit-ID:  faafec1e61e61d350248af2a7e5f047606adab6e
Gitweb:     http://git.kernel.org/tip/faafec1e61e61d350248af2a7e5f047606adab6e
Author:     Yong Wang <[email protected]>
AuthorDate: Fri, 12 Jun 2009 11:17:06 +0800
Committer:  Ingo Molnar <[email protected]>
CommitDate: Fri, 12 Jun 2009 13:45:09 +0200

perf_counter tools: Remove one L1-data alias

Otherwise all L1-instruction aliases will be recognized as L1-data by strcasestr() when calling function parse_aliases.

Cc Peter Zijlstra <[email protected]>
Cc Paul Mackerras <[email protected]>

LKML-Reference: <[email protected]>

---
 tools/perf/util/parse-events.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
tools/perf/util/parse-events.c +1 -1
index 9d5f1ca..5a72586 100644
@@ -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"				},