Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 147273
b: refs/heads/master
c: e390861
h: refs/heads/master
i:
  147271: 649b5b0
v: v3
  • Loading branch information
Wu Fengguang authored and Ingo Molnar committed Apr 6, 2009
1 parent 673f68e commit 937f606
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 15 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 95bb3be1b3ca4a71cc168787b675d5b7852fc6be
refs/heads/master: e3908612d93dff9d7746d85d37c42593254bf282
15 changes: 1 addition & 14 deletions trunk/Documentation/perf_counter/kerneltop.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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( "], ");
Expand Down

0 comments on commit 937f606

Please sign in to comment.