From 36f480ebf2832ac83da4a5c9f2ccbef4ec99d7dd Mon Sep 17 00:00:00 2001 From: Ingo Molnar Date: Wed, 16 Sep 2009 14:12:36 +0200 Subject: [PATCH] --- yaml --- r: 163771 b: refs/heads/master c: 80ed0987f363d7eb50193df3e6f6d71451f74bc3 h: refs/heads/master i: 163769: a0bb77b51848117c21d4a99a8d36caaeccc73050 163767: 1d46efc9e64ce7454a43663b71530546617e34a3 v: v3 --- [refs] | 2 +- trunk/tools/perf/builtin-sched.c | 4 ++-- trunk/tools/perf/util/thread.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/[refs] b/[refs] index adc5e5718099..4a7e248c374f 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: c8a37751043427c6e4397a2cbfd617cb5f215c72 +refs/heads/master: 80ed0987f363d7eb50193df3e6f6d71451f74bc3 diff --git a/trunk/tools/perf/builtin-sched.c b/trunk/tools/perf/builtin-sched.c index 2d542368de3c..da8f67483ae7 100644 --- a/trunk/tools/perf/builtin-sched.c +++ b/trunk/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(" "); diff --git a/trunk/tools/perf/util/thread.c b/trunk/tools/perf/util/thread.c index 7635928ca278..12c4341078f9 100644 --- a/trunk/tools/perf/util/thread.c +++ b/trunk/tools/perf/util/thread.c @@ -85,7 +85,7 @@ register_idle_thread(struct rb_root *threads, struct thread **last_match) { struct thread *thread = threads__findnew(0, threads, last_match); - if (!thread || thread__set_comm(thread, "[init]")) { + if (!thread || thread__set_comm(thread, "swapper")) { fprintf(stderr, "problem inserting idle task.\n"); exit(-1); }