projects
/
cascardo
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge git://git.kernel.org/pub/scm/linux/kernel/git/mason/btrfs-unstable
[cascardo/linux.git]
/
kernel
/
panic.c
diff --git
a/kernel/panic.c
b/kernel/panic.c
index
96b45d0
..
5827f7b
100644
(file)
--- a/
kernel/panic.c
+++ b/
kernel/panic.c
@@
-10,6
+10,7
@@
*/
#include <linux/debug_locks.h>
#include <linux/interrupt.h>
*/
#include <linux/debug_locks.h>
#include <linux/interrupt.h>
+#include <linux/kmsg_dump.h>
#include <linux/kallsyms.h>
#include <linux/notifier.h>
#include <linux/module.h>
#include <linux/kallsyms.h>
#include <linux/notifier.h>
#include <linux/module.h>
@@
-74,6
+75,7
@@
NORET_TYPE void panic(const char * fmt, ...)
dump_stack();
#endif
dump_stack();
#endif
+ kmsg_dump(KMSG_DUMP_PANIC);
/*
* If we have crashed and we have a crash kernel loaded let it handle
* everything else.
/*
* If we have crashed and we have a crash kernel loaded let it handle
* everything else.
@@
-339,6
+341,7
@@
void oops_exit(void)
{
do_oops_enter_exit();
print_oops_end_marker();
{
do_oops_enter_exit();
print_oops_end_marker();
+ kmsg_dump(KMSG_DUMP_OOPS);
}
#ifdef WANT_WARN_ON_SLOWPATH
}
#ifdef WANT_WARN_ON_SLOWPATH