sched: print backtrace of running tasks too
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>
This commit is contained in:
@@ -5161,7 +5161,6 @@ void sched_show_task(struct task_struct *p)
|
|||||||
printk(KERN_CONT "%5lu %5d %6d\n", free,
|
printk(KERN_CONT "%5lu %5d %6d\n", free,
|
||||||
task_pid_nr(p), task_pid_nr(p->real_parent));
|
task_pid_nr(p), task_pid_nr(p->real_parent));
|
||||||
|
|
||||||
if (state != TASK_RUNNING)
|
|
||||||
show_stack(p, NULL);
|
show_stack(p, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user