[PATCH 4.0-rc1 v17 4/6] printk: Simple implementation for NMI backtracing

Steven Rostedt rostedt at goodmis.org
Wed Mar 4 08:20:10 PST 2015


On Wed, 04 Mar 2015 08:13:21 -0800
Joe Perches <joe at perches.com> wrote:

> On Wed, 2015-03-04 at 10:12 +0000, Daniel Thompson wrote:
> > Currently there is a quite a pile of code sitting in
> > arch/x86/kernel/apic/hw_nmi.c to support safe all-cpu backtracing from NMI.
> > The code is inaccessible to backtrace implementations for other
> > architectures, which is a shame because they would probably like to be
> > safe too.
> > 
> > Copy this code into printk. We'll port the x86 NMI backtrace to it in a
> > later patch.
> 
> I think this would be better as a separate file
> rather than increasing the bulk of printk.c
> 

I agree, as printk already has its own directory. Perhaps a
"nmi_backtrace.c"?

-- Steve



More information about the linux-arm-kernel mailing list