aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/sched.c
diff options
context:
space:
mode:
authorNick Piggin <nickpiggin@yahoo.com.au>2008-01-25 15:08:34 -0500
committerIngo Molnar <mingo@elte.hu>2008-01-25 15:08:34 -0500
commit5fb5e6de55860a99c2d8fe7e0c8222d5c53d8464 (patch)
tree7a9935bfa8b20c56ddc865c130f17d2f42444ce8 /kernel/sched.c
parent19ef9309273d26cb005cb23e6a370353dca91099 (diff)
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>
Diffstat (limited to 'kernel/sched.c')
-rw-r--r--kernel/sched.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/kernel/sched.c b/kernel/sched.c
index 4d3a5a700866..524285e46fa7 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -5161,8 +5161,7 @@ void sched_show_task(struct task_struct *p)
5161 printk(KERN_CONT "%5lu %5d %6d\n", free, 5161 printk(KERN_CONT "%5lu %5d %6d\n", free,
5162 task_pid_nr(p), task_pid_nr(p->real_parent)); 5162 task_pid_nr(p), task_pid_nr(p->real_parent));
5163 5163
5164 if (state != TASK_RUNNING) 5164 show_stack(p, NULL);
5165 show_stack(p, NULL);
5166} 5165}
5167 5166
5168void show_state_filter(unsigned long state_filter) 5167void show_state_filter(unsigned long state_filter)