Prev: [PATCH 1/2] Make lib/bug.c WARN implementation match the kernel/panic.c one
Next: [PATCH 1/2] block: fix leaks associated with discard request payload
From: Anton Blanchard on 26 Jun 2010 15:20 We are missing the oops end marker for the exception based WARN implementation in lib/bug.c. This is useful for logfile analysis tools. Signed-off-by: Anton Blanchard <anton(a)samba.org> --- Index: linux-2.6/include/linux/kernel.h =================================================================== --- linux-2.6.orig/include/linux/kernel.h 2010-06-26 06:29:35.000000000 +1000 +++ linux-2.6/include/linux/kernel.h 2010-06-26 06:30:27.000000000 +1000 @@ -177,6 +177,7 @@ NORET_TYPE void panic(const char * fmt, __attribute__ ((NORET_AND format (printf, 1, 2))) __cold; extern void oops_enter(void); extern void oops_exit(void); +void print_oops_end_marker(void); extern int oops_may_print(void); NORET_TYPE void do_exit(long error_code) ATTRIB_NORET; Index: linux-2.6/kernel/panic.c =================================================================== --- linux-2.6.orig/kernel/panic.c 2010-06-26 06:29:35.000000000 +1000 +++ linux-2.6/kernel/panic.c 2010-06-26 06:30:05.000000000 +1000 @@ -344,7 +344,7 @@ static int init_oops_id(void) } late_initcall(init_oops_id); -static void print_oops_end_marker(void) +void print_oops_end_marker(void) { init_oops_id(); printk(KERN_WARNING "---[ end trace %016llx ]---\n", Index: linux-2.6/lib/bug.c =================================================================== --- linux-2.6.orig/lib/bug.c 2010-06-26 06:29:35.000000000 +1000 +++ linux-2.6/lib/bug.c 2010-06-26 06:31:28.000000000 +1000 @@ -166,6 +166,7 @@ enum bug_trap_type report_bug(unsigned l print_modules(); show_regs(regs); + print_oops_end_marker(); add_taint(BUG_GET_TAINT(bug)); return BUG_TRAP_TYPE_WARN; } -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo(a)vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ |