public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] softlockup: show irqtrace
@ 2008-06-25  7:13 Vegard Nossum
  2008-06-25 16:00 ` Ingo Molnar
  2008-06-25 21:15 ` Johannes Weiner
  0 siblings, 2 replies; 4+ messages in thread
From: Vegard Nossum @ 2008-06-25  7:13 UTC (permalink / raw)
  To: Johannes Weiner, Arjan van de Ven, Ingo Molnar
  Cc: Peter Zijlstra, linux-kernel

Hi,

Ingo, can you please drop the "softirq softlockup debugging" patch and
apply this instead? This much, much prettier, reuses existing debugging
infrastructure, and is a lot more generic.

(Compile tested on allyesconfig, allnoconfig, allnoconfig + softlockup
debugging.)


Vegard


From: Vegard Nossum <vegard.nossum@gmail.com>
Date: Wed, 25 Jun 2008 08:50:10 +0200
Subject: [PATCH] softlockup: show irqtrace

This patch adds some information about when interrupts were last
enabled and disabled to the output of the softlockup detector.

Signed-off-by: Vegard Nossum <vegard.nossum@gmail.com>
---
 kernel/softlockup.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/kernel/softlockup.c b/kernel/softlockup.c
index 01b6522..980f703 100644
--- a/kernel/softlockup.c
+++ b/kernel/softlockup.c
@@ -13,6 +13,7 @@
 #include <linux/delay.h>
 #include <linux/freezer.h>
 #include <linux/kthread.h>
+#include <linux/lockdep.h>
 #include <linux/notifier.h>
 #include <linux/module.h>
 
@@ -115,6 +116,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_irqtrace_events(current);
 	if (regs)
 		show_regs(regs);
 	else
-- 
1.5.4.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-06-25 21:15 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-25  7:13 [PATCH] softlockup: show irqtrace Vegard Nossum
2008-06-25 16:00 ` Ingo Molnar
2008-06-25 17:11   ` Vegard Nossum
2008-06-25 21:15 ` Johannes Weiner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox