print kdump kernel loaded status in stack dump
Subsystems (3)
PATCH v2 1/1 print kdump kernel loaded status in stack dump
It is useful to print kdump kernel loaded status in dump_stack() especially when panic happens so that we can differenciate kdump kernel early hang and a normal panic in a bug report.
---
[v1 -> v2] merge the status in other line as Andi Kleen suggested
kernel/printk/printk.c | 3 +++ --- kernel/printk/printk.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-)
kernel/printk/printk.c +5 -2
@@ -48,6 +48,7 @@#include <linux/sched/clock.h> #include <linux/sched/debug.h> #include <linux/sched/task_stack.h> +#include <linux/kexec.h> #include <linux/uaccess.h> #include <asm/sections.h>
@@ -3118,9 +3119,11 @@ void __init dump_stack_set_arch_desc(con*/ 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, -print_tainted (),init_utsname ()->release, +kexec_crash_loaded () ?"Kdump: loaded " :"" , +print_tainted (), +init_utsname ()->release, (int )strcspn (init_utsname ()->version," " ),init_utsname ()->version);
Quoted 5 lines · Dave Young
It is useful to print kdump kernel loaded status in
dump_stack()especially when panic happens so that we can differenciate kdump kernel early hang and a normal panic in a bug report.Signed-off-by Dave Young <[email protected]>
Looks OK to me.
I agree with Steven, would be better to move the whole thing to lib/dump_stack.c
-ss
Quoted 11 lines · Sergey Senozhatsky
Quoted 5 lines · Dave Young
It is useful to print kdump kernel loaded status in
dump_stack()especially when panic happens so that we can differenciate kdump kernel early hang and a normal panic in a bug report.Signed-off-by Dave Young <[email protected]>Looks OK to me.
Reviewed-by Sergey Senozhatsky <[email protected]>
Thank you Sergey
Quoted 3 lines
I agree with Steven, would be better to move the whole thing to
lib/dump_stack.c
If nobody has plan I can put it in my todo list, probably do it next week.
Quoted 2 lines
-ss
Thanks
Dave
Quoted 11 lines · Dave Young
Quoted 10 lines · Sergey Senozhatsky
Quoted 5 lines · Dave Young
It is useful to print kdump kernel loaded status in
dump_stack()especially when panic happens so that we can differenciate kdump kernel early hang and a normal panic in a bug report.Signed-off-by Dave Young <[email protected]>Looks OK to me.
Reviewed-by Sergey Senozhatsky <[email protected]>
Same here:
Quoted 5 lines
Quoted 2 lines
I agree with Steven, would be better to move the whole thing to
lib/dump_stack.cIf nobody has plan I can put it in my todo list, probably do it next week.
Sounds good.
JFYI, I would target these changes for 4.17. There was some discussion about where and how to show the new information. IMHO, it would deserve some gurgling in linux-next.
Best Regards,
Petr
Quoted 5 lines · Dave Young
It is useful to print kdump kernel loaded status in
dump_stack()especially when panic happens so that we can differenciate kdump kernel early hang and a normal panic in a bug report.Signed-off-by Dave Young <[email protected]>
_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec