]> err.no Git - linux-2.6/commitdiff
softlockup: print a module list on being stuck
authorArjan van de Ven <arjan@linux.intel.com>
Mon, 16 Jun 2008 22:51:08 +0000 (15:51 -0700)
committerIngo Molnar <mingo@elte.hu>
Sat, 5 Jul 2008 06:51:24 +0000 (08:51 +0200)
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>
kernel/softlockup.c

index c828c2339cc9e8a8992df52f31756f8894c7f6b1..a272d78185eb5901449b0e8765f33a3f5723df28 100644 (file)
@@ -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