Re: [PATCH] print kdump kernel loaded status in stack dump

From: Steven Rostedt
Date: Thu Jan 18 2018 - 13:57:11 EST


On Thu, 18 Jan 2018 10:02:17 -0800
Andi Kleen <ak@xxxxxxxxxxxxxxx> wrote:

> Dave Young <dyoung@xxxxxxxxxx> writes:
> > printk("%sHardware name: %s\n",
> > log_lvl, dump_stack_arch_desc_str);
> > + if (kexec_crash_loaded())
> > + printk("%skdump kernel loaded\n", log_lvl);
>
> Oops/warnings are getting longer and longer, often scrolling away
> from the screen, and if the kernel crashes backscroll does not work
> anymore, so precious information is lost.
>
> Can you merge it with some other line?
>
> Just a [KDUMP] or so somewhere should be good enough.

Or perhaps we should add it as a TAINT. Not all taints are bad.

-- Steve