diff options
author | Wu Fengguang <fengguang.wu@intel.com> | 2009-03-20 10:08:05 +0800 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-04-06 09:30:21 +0200 |
commit | e3908612d93dff9d7746d85d37c42593254bf282 (patch) | |
tree | 16ad7e6d623c42711e9f5c4327df55ef3bc50333 /Documentation | |
parent | 95bb3be1b3ca4a71cc168787b675d5b7852fc6be (diff) | |
download | op-kernel-dev-e3908612d93dff9d7746d85d37c42593254bf282.zip op-kernel-dev-e3908612d93dff9d7746d85d37c42593254bf282.tar.gz |
perf_counter tools: Reuse event_name() in kerneltop
- can handle sw counters now
- the outputs will look slightly different
Acked-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Paul Mackerras <paulus@samba.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/perf_counter/kerneltop.c | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/Documentation/perf_counter/kerneltop.c b/Documentation/perf_counter/kerneltop.c index edc5b09..cba5cb0 100644 --- a/Documentation/perf_counter/kerneltop.c +++ b/Documentation/perf_counter/kerneltop.c @@ -67,16 +67,6 @@ #include "perfcounters.h" -const char *event_types [] = { - "CPU cycles", - "instructions", - "cache-refs", - "cache-misses", - "branches", - "branch-misses", - "bus cycles" -}; - const unsigned int default_count[] = { 1000000, 1000000, @@ -304,10 +294,7 @@ static void print_sym_table(void) if (counter) printf("/"); - if (event_id[counter] < PERF_HW_EVENTS_MAX) - printf( "%s", event_types[event_id[counter]]); - else - printf( "raw:%04lx", event_id[counter]); + printf("%s", event_name(counter)); } printf( "], "); |