aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/perf_counter/kerneltop.c
diff options
context:
space:
mode:
Diffstat (limited to 'Documentation/perf_counter/kerneltop.c')
-rw-r--r--Documentation/perf_counter/kerneltop.c15
1 files changed, 1 insertions, 14 deletions
diff --git a/Documentation/perf_counter/kerneltop.c b/Documentation/perf_counter/kerneltop.c
index edc5b09fb586..cba5cb0a97f9 100644
--- a/Documentation/perf_counter/kerneltop.c
+++ b/Documentation/perf_counter/kerneltop.c
@@ -67,16 +67,6 @@
67 67
68#include "perfcounters.h" 68#include "perfcounters.h"
69 69
70const char *event_types [] = {
71 "CPU cycles",
72 "instructions",
73 "cache-refs",
74 "cache-misses",
75 "branches",
76 "branch-misses",
77 "bus cycles"
78};
79
80const unsigned int default_count[] = { 70const unsigned int default_count[] = {
81 1000000, 71 1000000,
82 1000000, 72 1000000,
@@ -304,10 +294,7 @@ static void print_sym_table(void)
304 if (counter) 294 if (counter)
305 printf("/"); 295 printf("/");
306 296
307 if (event_id[counter] < PERF_HW_EVENTS_MAX) 297 printf("%s", event_name(counter));
308 printf( "%s", event_types[event_id[counter]]);
309 else
310 printf( "raw:%04lx", event_id[counter]);
311 } 298 }
312 299
313 printf( "], "); 300 printf( "], ");