aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/builtin-sched.c
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2009-09-16 14:12:36 +0200
committerIngo Molnar <mingo@elte.hu>2009-09-16 12:15:47 +0200
commit80ed0987f363d7eb50193df3e6f6d71451f74bc3 (patch)
tree36ac94c42e234ade4c6a2ac4b8c2dcb3bfbd138f /tools/perf/builtin-sched.c
parentc8a37751043427c6e4397a2cbfd617cb5f215c72 (diff)
downloadkernel_samsung_smdk4412-80ed0987f363d7eb50193df3e6f6d71451f74bc3.tar.gz
kernel_samsung_smdk4412-80ed0987f363d7eb50193df3e6f6d71451f74bc3.tar.bz2
kernel_samsung_smdk4412-80ed0987f363d7eb50193df3e6f6d71451f74bc3.zip
perf sched: Make idle thread and comm/pid names more consistent
Peter noticed that we have 3 ways of referring to the idle thread: [idle]:0 swapper:0 swapper-0 Standardize on 'swapper:0'. Reported-by: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Mike Galbraith <efault@gmx.de> Cc: Paul Mackerras <paulus@samba.org> Cc: Arnaldo Carvalho de Melo <acme@redhat.com> Cc: Frederic Weisbecker <fweisbec@gmail.com> LKML-Reference: <new-submission> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'tools/perf/builtin-sched.c')
-rw-r--r--tools/perf/builtin-sched.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/perf/builtin-sched.c b/tools/perf/builtin-sched.c
index 2d542368de3..da8f67483ae 100644
--- a/tools/perf/builtin-sched.c
+++ b/tools/perf/builtin-sched.c
@@ -1204,13 +1204,13 @@ static void output_lat_thread(struct work_atoms *work_list)
/*
* Ignore idle threads:
*/
- if (!work_list->thread->pid)
+ if (!strcmp(work_list->thread->comm, "swapper"))
return;
all_runtime += work_list->total_runtime;
all_count += work_list->nb_atoms;
- ret = printf(" %s-%d ", work_list->thread->comm, work_list->thread->pid);
+ ret = printf(" %s:%d ", work_list->thread->comm, work_list->thread->pid);
for (i = 0; i < 24 - ret; i++)
printf(" ");