Skip to content

Commit

Permalink
softlockup: print a module list on being stuck
Browse files Browse the repository at this point in the history
Most places in the kernel that go BUG: print a module list
(which is very useful for doing statistics and finding patterns),
however the softlockup detector does not do this yet.

This patch adds the one line change to fix this gap.

Signed-off-by: Arjan van de Ven <arjan@linux.intel.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
Arjan van de Ven authored and Ingo Molnar committed Jul 5, 2008
1 parent 8558f8f commit 3b72532
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions kernel/softlockup.c
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ void softlockup_tick(void)
printk(KERN_ERR "BUG: soft lockup - CPU#%d stuck for %lus! [%s:%d]\n",
this_cpu, now - touch_timestamp,
current->comm, task_pid_nr(current));
print_modules();
if (regs)
show_regs(regs);
else
Expand Down

0 comments on commit 3b72532

Please sign in to comment.