aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf
diff options
context:
space:
mode:
authorFrederic Weisbecker <fweisbec@gmail.com>2009-08-31 00:45:19 -0400
committerIngo Molnar <mingo@elte.hu>2009-08-31 04:04:48 -0400
commit3a2684ca58e06941ff00e3f096ca44f898a6d13e (patch)
treef4b369d1823001d967c590543763f27bf9573d84 /tools/perf
parent5b447a6a13ea823b698bf4c01193654fd7ebf4ec (diff)
perf tools: Resolve idle thread cmdline for perf trace
The cmd-trace tool used the cmdline file and resolved the idle thread using a hardcoded check for the 0 task pid. Now we have a centralized way to do that from perf using register_idle_thread() API. Before: :0-0 [000] 0.000000: irq_handler_entry: irq=0 handler=name :0-0 [000] 0.000000: irq_handler_entry: irq=0 handler=name After: [idle]-0 [000] 0.000000: irq_handler_entry: irq=0 handler=name [idle]-0 [000] 0.000000: irq_handler_entry: irq=0 handler=name Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Arnaldo Carvalho de Melo <acme@redhat.com> LKML-Reference: <1251693921-6579-2-git-send-email-fweisbec@gmail.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'tools/perf')
-rw-r--r--tools/perf/builtin-trace.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/perf/builtin-trace.c b/tools/perf/builtin-trace.c
index dd3c2e7c9a18..8247fd04745a 100644
--- a/tools/perf/builtin-trace.c
+++ b/tools/perf/builtin-trace.c
@@ -164,6 +164,7 @@ static int __cmd_trace(void)
164 char *buf; 164 char *buf;
165 165
166 trace_report(); 166 trace_report();
167 register_idle_thread(&threads, &last_match);
167 168
168 input = open(input_name, O_RDONLY); 169 input = open(input_name, O_RDONLY);
169 if (input < 0) { 170 if (input < 0) {