Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 147528
b: refs/heads/master
c: f91183f
h: refs/heads/master
v: v3
  • Loading branch information
Mike Galbraith authored and Ingo Molnar committed May 26, 2009
1 parent f0a7583 commit 360d5e2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 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: 0bec253c813fbb067db4dfd9f5b6cec1bd2ef026
refs/heads/master: f91183fe3780d44849110a1653dfe8af7bc67aa4
10 changes: 4 additions & 6 deletions trunk/Documentation/perf_counter/builtin-top.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
Sample output:
------------------------------------------------------------------------------
KernelTop: 2669 irqs/sec [NMI, cache-misses/cache-refs], (all, cpu: 2)
KernelTop: 2669 irqs/sec [cache-misses/cache-refs], (all, cpu: 2)
------------------------------------------------------------------------------
weight RIP kernel function
Expand Down Expand Up @@ -92,7 +92,6 @@ static __u64 count_filter = 100;
static int target_pid = -1;
static int profile_cpu = -1;
static int nr_cpus = 0;
static int nmi = 1;
static unsigned int realtime_prio = 0;
static int group = 0;
static unsigned int page_size;
Expand Down Expand Up @@ -198,10 +197,9 @@ static void print_sym_table(void)

printf(
"------------------------------------------------------------------------------\n");
printf( " KernelTop:%8.0f irqs/sec kernel:%4.1f%% [%s, ",
printf( " KernelTop:%8.0f irqs/sec kernel:%4.1f%% [",
events_per_sec,
100.0 - (100.0*((events_per_sec-kevents_per_sec)/events_per_sec)),
nmi ? "NMI" : "IRQ");
100.0 - (100.0*((events_per_sec-kevents_per_sec)/events_per_sec)));

if (nr_counters == 1)
printf("%d ", event_count[0]);
Expand Down Expand Up @@ -637,7 +635,7 @@ static int __cmd_top(void)
hw_event.config = event_id[counter];
hw_event.irq_period = event_count[counter];
hw_event.record_type = PERF_RECORD_IP | PERF_RECORD_TID;
hw_event.nmi = nmi;
hw_event.nmi = 1;
hw_event.mmap = use_mmap;
hw_event.munmap = use_munmap;
hw_event.freq = freq;
Expand Down

0 comments on commit 360d5e2

Please sign in to comment.