+ add-oops-end-marker-to-lib-bugc-warn-implementation.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled
     lib/bug.c: add oops end marker to WARN implementation
has been added to the -mm tree.  Its filename is
     add-oops-end-marker-to-lib-bugc-warn-implementation.patch

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/SubmitChecklist when testing your code ***

See http://userweb.kernel.org/~akpm/stuff/added-to-mm.txt to find
out what to do about this

The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/

------------------------------------------------------
Subject: lib/bug.c: add oops end marker to WARN implementation
From: Anton Blanchard <anton@xxxxxxxxx>

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@xxxxxxxxx>
Cc: Ingo Molnar <mingo@xxxxxxx>
Cc: Arjan van de Ven <arjan@xxxxxxxxxxxxx>
Cc: "Kirill A. Shutemov" <kirill@xxxxxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 include/linux/kernel.h |    1 +
 kernel/panic.c         |    2 +-
 lib/bug.c              |    1 +
 3 files changed, 3 insertions(+), 1 deletion(-)

diff -puN include/linux/kernel.h~add-oops-end-marker-to-lib-bugc-warn-implementation include/linux/kernel.h
--- a/include/linux/kernel.h~add-oops-end-marker-to-lib-bugc-warn-implementation
+++ a/include/linux/kernel.h
@@ -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;
diff -puN kernel/panic.c~add-oops-end-marker-to-lib-bugc-warn-implementation kernel/panic.c
--- a/kernel/panic.c~add-oops-end-marker-to-lib-bugc-warn-implementation
+++ a/kernel/panic.c
@@ -338,7 +338,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",
diff -puN lib/bug.c~add-oops-end-marker-to-lib-bugc-warn-implementation lib/bug.c
--- a/lib/bug.c~add-oops-end-marker-to-lib-bugc-warn-implementation
+++ a/lib/bug.c
@@ -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;
 	}
_

Patches currently in -mm which might be from anton@xxxxxxxxx are

origin.patch
linux-next.patch
panic-keep-blinking-in-spite-of-long-spin-timer-mode.patch
lib-bugc-make-warn-implementation-match-the-kernel-panicc-one.patch
lib-bugc-make-warn-implementation-match-the-kernel-panicc-one-checkpatch-fixes.patch
add-oops-end-marker-to-lib-bugc-warn-implementation.patch

--
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux