diff options
author | Mike Galbraith <efault@gmx.de> | 2009-05-26 09:25:34 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-05-26 09:25:34 -0400 |
commit | f91183fe3780d44849110a1653dfe8af7bc67aa4 (patch) | |
tree | 3078dc1675a13e809f01d823405200a34b3c0663 /Documentation/perf_counter/builtin-top.c | |
parent | 0bec253c813fbb067db4dfd9f5b6cec1bd2ef026 (diff) |
perf top: Remove leftover NMI/IRQ bits
79202b removed IRQ/NMI mode selection, so remove it from
perf top as well.
[ Impact: cleanup ]
Signed-off-by: Mike Galbraith <efault@gmx.de>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com>
Cc: Marcelo Tosatti <mtosatti@redhat.com>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: John Kacur <jkacur@redhat.com>
LKML-Reference: <new-submission>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'Documentation/perf_counter/builtin-top.c')
-rw-r--r-- | Documentation/perf_counter/builtin-top.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/Documentation/perf_counter/builtin-top.c b/Documentation/perf_counter/builtin-top.c index 87b925c8f8e8..cacaa3c2518d 100644 --- a/Documentation/perf_counter/builtin-top.c +++ b/Documentation/perf_counter/builtin-top.c | |||
@@ -8,7 +8,7 @@ | |||
8 | Sample output: | 8 | Sample output: |
9 | 9 | ||
10 | ------------------------------------------------------------------------------ | 10 | ------------------------------------------------------------------------------ |
11 | KernelTop: 2669 irqs/sec [NMI, cache-misses/cache-refs], (all, cpu: 2) | 11 | KernelTop: 2669 irqs/sec [cache-misses/cache-refs], (all, cpu: 2) |
12 | ------------------------------------------------------------------------------ | 12 | ------------------------------------------------------------------------------ |
13 | 13 | ||
14 | weight RIP kernel function | 14 | weight RIP kernel function |
@@ -92,7 +92,6 @@ static __u64 count_filter = 100; | |||
92 | static int target_pid = -1; | 92 | static int target_pid = -1; |
93 | static int profile_cpu = -1; | 93 | static int profile_cpu = -1; |
94 | static int nr_cpus = 0; | 94 | static int nr_cpus = 0; |
95 | static int nmi = 1; | ||
96 | static unsigned int realtime_prio = 0; | 95 | static unsigned int realtime_prio = 0; |
97 | static int group = 0; | 96 | static int group = 0; |
98 | static unsigned int page_size; | 97 | static unsigned int page_size; |
@@ -198,10 +197,9 @@ static void print_sym_table(void) | |||
198 | 197 | ||
199 | printf( | 198 | printf( |
200 | "------------------------------------------------------------------------------\n"); | 199 | "------------------------------------------------------------------------------\n"); |
201 | printf( " KernelTop:%8.0f irqs/sec kernel:%4.1f%% [%s, ", | 200 | printf( " KernelTop:%8.0f irqs/sec kernel:%4.1f%% [", |
202 | events_per_sec, | 201 | events_per_sec, |
203 | 100.0 - (100.0*((events_per_sec-kevents_per_sec)/events_per_sec)), | 202 | 100.0 - (100.0*((events_per_sec-kevents_per_sec)/events_per_sec))); |
204 | nmi ? "NMI" : "IRQ"); | ||
205 | 203 | ||
206 | if (nr_counters == 1) | 204 | if (nr_counters == 1) |
207 | printf("%d ", event_count[0]); | 205 | printf("%d ", event_count[0]); |
@@ -637,7 +635,7 @@ static int __cmd_top(void) | |||
637 | hw_event.config = event_id[counter]; | 635 | hw_event.config = event_id[counter]; |
638 | hw_event.irq_period = event_count[counter]; | 636 | hw_event.irq_period = event_count[counter]; |
639 | hw_event.record_type = PERF_RECORD_IP | PERF_RECORD_TID; | 637 | hw_event.record_type = PERF_RECORD_IP | PERF_RECORD_TID; |
640 | hw_event.nmi = nmi; | 638 | hw_event.nmi = 1; |
641 | hw_event.mmap = use_mmap; | 639 | hw_event.mmap = use_mmap; |
642 | hw_event.munmap = use_munmap; | 640 | hw_event.munmap = use_munmap; |
643 | hw_event.freq = freq; | 641 | hw_event.freq = freq; |