* [PATCH 2.6.27-rc4 24/27] mdb: add notify_die handler to system panic
@ 2008-08-21 2:50 jmerkey
0 siblings, 0 replies; only message in thread
From: jmerkey @ 2008-08-21 2:50 UTC (permalink / raw)
To: linux-kernel
add notify_die handler to system panic
Signed-off-by: Jeffrey Vernon Merkey (jmerkey@wolfmountaingroup.com)
--- a/kernel/panic.c 2008-08-18 23:39:34.000000000 -0600
+++ b/kernel/panic.c 2008-08-18 23:43:21.000000000 -0600
@@ -21,6 +21,8 @@
#include <linux/debug_locks.h>
#include <linux/random.h>
#include <linux/kallsyms.h>
+#include <linux/kdebug.h>
+
int panic_on_oops;
int tainted;
@@ -75,6 +77,13 @@
*/
preempt_disable();
+ /* call the notify_die handler for any resident debuggers which
+ * may be active and pass the message string. On a software
+ * fault return at least some sort of regs for a remote debugger
+ * to look at.
+ */
+ notify_die(DIE_PANIC, buf, get_irq_regs(), 0, -1, SIGTERM);
+
bust_spinlocks(1);
va_start(args, fmt);
vsnprintf(buf, sizeof(buf), fmt, args);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-08-21 3:23 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-08-21 2:50 [PATCH 2.6.27-rc4 24/27] mdb: add notify_die handler to system panic jmerkey
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®