RE: [PATCH] Debug: Add cpu registers dump in case of kernel panic

From: Thomas Gleixner
Date: Thu Jul 05 2018 - 05:38:24 EST


On Thu, 5 Jul 2018, Tian, Baofeng wrote:

> Resubmit again for review, this patch save register and used for RAM dump.

Please do not resubmit by replying to mail which got rejected by LKML in the first
place. Resubmit means to send the patch new and in proper form.

>  static atomic_t stopping_cpu = ATOMIC_INIT(-1);
>  static bool smp_no_nmi_ipi = false;
>  
> +static DEFINE_PER_CPU(struct pt_regs, cpu_regs);
> +
> +/* Store regs of this CPU for RAM dump decoding help */
> +static inline void store_regs(struct pt_regs *regs)
> +{
> +     struct pt_regs *print_regs;

And this still is white space damaged.....

See Documentation/process/email-clients.rst

If your MUA is not mentioned there, then a web search or asking your
colleagues should give you the hints.

Thanks,

tglx