aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf')
-rw-r--r--tools/perf/builtin-sched.c4
-rw-r--r--tools/perf/util/thread.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/tools/perf/builtin-sched.c b/tools/perf/builtin-sched.c
index 2d542368de3c..da8f67483ae7 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)
1204 /* 1204 /*
1205 * Ignore idle threads: 1205 * Ignore idle threads:
1206 */ 1206 */
1207 if (!work_list->thread->pid) 1207 if (!strcmp(work_list->thread->comm, "swapper"))
1208 return; 1208 return;
1209 1209
1210 all_runtime += work_list->total_runtime; 1210 all_runtime += work_list->total_runtime;
1211 all_count += work_list->nb_atoms; 1211 all_count += work_list->nb_atoms;
1212 1212
1213 ret = printf(" %s-%d ", work_list->thread->comm, work_list->thread->pid); 1213 ret = printf(" %s:%d ", work_list->thread->comm, work_list->thread->pid);
1214 1214
1215 for (i = 0; i < 24 - ret; i++) 1215 for (i = 0; i < 24 - ret; i++)
1216 printf(" "); 1216 printf(" ");
diff --git a/tools/perf/util/thread.c b/tools/perf/util/thread.c
index 7635928ca278..12c4341078f9 100644
--- a/tools/perf/util/thread.c
+++ b/tools/perf/util/thread.c
@@ -85,7 +85,7 @@ register_idle_thread(struct rb_root *threads, struct thread **last_match)
85{ 85{
86 struct thread *thread = threads__findnew(0, threads, last_match); 86 struct thread *thread = threads__findnew(0, threads, last_match);
87 87
88 if (!thread || thread__set_comm(thread, "[init]")) { 88 if (!thread || thread__set_comm(thread, "swapper")) {
89 fprintf(stderr, "problem inserting idle task.\n"); 89 fprintf(stderr, "problem inserting idle task.\n");
90 exit(-1); 90 exit(-1);
91 } 91 }