Messages in this thread | | | Subject | Re: [PATCH, RFC] panic-note: Annotation from user space for panics | From | Artem Bityutskiy <> | Date | Fri, 13 Nov 2009 13:26:46 +0200 |
| |
On Wed, 2009-11-11 at 21:13 -0500, David VomLehn wrote: > diff --git a/kernel/panic.c b/kernel/panic.c > index 96b45d0..513deae 100644 > --- a/kernel/panic.c > +++ b/kernel/panic.c > @@ -70,6 +70,7 @@ NORET_TYPE void panic(const char * fmt, ...) > vsnprintf(buf, sizeof(buf), fmt, args); > va_end(args); > printk(KERN_EMERG "Kernel panic - not syncing: %s\n",buf); > + panic_note_print(); > #ifdef CONFIG_DEBUG_BUGVERBOSE > dump_stack(); > #endif > diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug
You should use panic notifiers instead. See the panic_notifier_list.
-- Best Regards, Artem Bityutskiy (Артём Битюцкий)
-- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |