|
@@ -48,6 +48,7 @@
|
|
#include <linux/sched/clock.h>
|
|
#include <linux/sched/clock.h>
|
|
#include <linux/sched/debug.h>
|
|
#include <linux/sched/debug.h>
|
|
#include <linux/sched/task_stack.h>
|
|
#include <linux/sched/task_stack.h>
|
|
|
|
+#include <linux/kexec.h>
|
|
|
|
|
|
#include <linux/uaccess.h>
|
|
#include <linux/uaccess.h>
|
|
#include <asm/sections.h>
|
|
#include <asm/sections.h>
|
|
@@ -3287,9 +3288,11 @@ void __init dump_stack_set_arch_desc(const char *fmt, ...)
|
|
*/
|
|
*/
|
|
void dump_stack_print_info(const char *log_lvl)
|
|
void dump_stack_print_info(const char *log_lvl)
|
|
{
|
|
{
|
|
- printk("%sCPU: %d PID: %d Comm: %.20s %s %s %.*s\n",
|
|
|
|
|
|
+ printk("%sCPU: %d PID: %d Comm: %.20s %s%s %s %.*s\n",
|
|
log_lvl, raw_smp_processor_id(), current->pid, current->comm,
|
|
log_lvl, raw_smp_processor_id(), current->pid, current->comm,
|
|
- print_tainted(), init_utsname()->release,
|
|
|
|
|
|
+ kexec_crash_loaded() ? "Kdump: loaded " : "",
|
|
|
|
+ print_tainted(),
|
|
|
|
+ init_utsname()->release,
|
|
(int)strcspn(init_utsname()->version, " "),
|
|
(int)strcspn(init_utsname()->version, " "),
|
|
init_utsname()->version);
|
|
init_utsname()->version);
|
|
|
|
|