Skip to content

Commit

Permalink
sched: print backtrace of running tasks too
Browse files Browse the repository at this point in the history
The attached patch is something really simple that can sometimes help
in getting more info out of a hung system.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
Nick Piggin authored and Ingo Molnar committed Jan 25, 2008
1 parent 19ef930 commit 5fb5e6d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions kernel/sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -5161,8 +5161,7 @@ void sched_show_task(struct task_struct *p)
printk(KERN_CONT "%5lu %5d %6d\n", free,
task_pid_nr(p), task_pid_nr(p->real_parent));

if (state != TASK_RUNNING)
show_stack(p, NULL);
show_stack(p, NULL);
}

void show_state_filter(unsigned long state_filter)
Expand Down

0 comments on commit 5fb5e6d

Please sign in to comment.