diff options
Diffstat (limited to 'kernel/panic.c')
| -rw-r--r-- | kernel/panic.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/kernel/panic.c b/kernel/panic.c index 96b45d0b4ba5..c787333282b8 100644 --- a/kernel/panic.c +++ b/kernel/panic.c | |||
| @@ -10,6 +10,7 @@ | |||
| 10 | */ | 10 | */ |
| 11 | #include <linux/debug_locks.h> | 11 | #include <linux/debug_locks.h> |
| 12 | #include <linux/interrupt.h> | 12 | #include <linux/interrupt.h> |
| 13 | #include <linux/kmsg_dump.h> | ||
| 13 | #include <linux/kallsyms.h> | 14 | #include <linux/kallsyms.h> |
| 14 | #include <linux/notifier.h> | 15 | #include <linux/notifier.h> |
| 15 | #include <linux/module.h> | 16 | #include <linux/module.h> |
| @@ -81,6 +82,8 @@ NORET_TYPE void panic(const char * fmt, ...) | |||
| 81 | */ | 82 | */ |
| 82 | crash_kexec(NULL); | 83 | crash_kexec(NULL); |
| 83 | 84 | ||
| 85 | kmsg_dump(KMSG_DUMP_PANIC); | ||
| 86 | |||
| 84 | /* | 87 | /* |
| 85 | * Note smp_send_stop is the usual smp shutdown function, which | 88 | * Note smp_send_stop is the usual smp shutdown function, which |
| 86 | * unfortunately means it may not be hardened to work in a panic | 89 | * unfortunately means it may not be hardened to work in a panic |
| @@ -339,6 +342,7 @@ void oops_exit(void) | |||
| 339 | { | 342 | { |
| 340 | do_oops_enter_exit(); | 343 | do_oops_enter_exit(); |
| 341 | print_oops_end_marker(); | 344 | print_oops_end_marker(); |
| 345 | kmsg_dump(KMSG_DUMP_OOPS); | ||
| 342 | } | 346 | } |
| 343 | 347 | ||
| 344 | #ifdef WANT_WARN_ON_SLOWPATH | 348 | #ifdef WANT_WARN_ON_SLOWPATH |
