[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20080616155108.2ae7913a@infradead.org>
Date: Mon, 16 Jun 2008 15:51:08 -0700
From: Arjan van de Ven <arjan@...radead.org>
To: mingo@...e.hu
Cc: linux-kernel@...r.kernel.org
Subject: [PATCH] softlockup: print a module list on being stuck
From: Arjan van de Ven <arjan@...ux.intel.com>
Subject: [PATCH] softlockup: print a module list on being stuck
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@...ux.intel.com>
---
kernel/softlockup.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/kernel/softlockup.c b/kernel/softlockup.c
index 01b6522..47cc709 100644
--- a/kernel/softlockup.c
+++ b/kernel/softlockup.c
@@ -115,6 +115,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
--
1.5.4.5
--
If you want to reach me at my work email, use arjan@...ux.intel.com
For development, discussion and tips for power savings,
visit http://www.lesswatts.org
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists