lkml.org 
[lkml]   [2008]   [Aug]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH 2.6.27-rc5 26/29] mdb: add notify_die handler to system panic
add notify_die handler to system panic 


Signed-off-by: Jeffrey Vernon Merkey (jmerkey@wolfmountaingroup.com)

--- a/kernel/panic.c 2008-08-28 14:19:32.000000000 -0600
+++ b/kernel/panic.c 2008-08-28 14:20:04.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);

\
 
 \ /
  Last update: 2008-08-29 08:27    [W:0.023 / U:0.520 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site