Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 163771
b: refs/heads/master
c: 80ed098
h: refs/heads/master
i:
  163769: a0bb77b
  163767: 1d46efc
v: v3
  • Loading branch information
Ingo Molnar committed Sep 16, 2009
1 parent 4f0af76 commit 36f480e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c8a37751043427c6e4397a2cbfd617cb5f215c72
refs/heads/master: 80ed0987f363d7eb50193df3e6f6d71451f74bc3
4 changes: 2 additions & 2 deletions trunk/tools/perf/builtin-sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -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(" ");
Expand Down
2 changes: 1 addition & 1 deletion trunk/tools/perf/util/thread.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 36f480e

Please sign in to comment.