Files
linux/arch/x86/include/asm
Michel Lespinasse b52e0a7c4e x86: Fix trigger_all_cpu_backtrace() implementation
The following change fixes the x86 implementation of
trigger_all_cpu_backtrace(), which was previously (accidentally,
as far as I can tell) disabled to always return false as on
architectures that do not implement this function.

trigger_all_cpu_backtrace(), as defined in include/linux/nmi.h,
should call arch_trigger_all_cpu_backtrace() if available, or
return false if the underlying arch doesn't implement this
function.

x86 did provide a suitable arch_trigger_all_cpu_backtrace()
implementation, but it wasn't actually being used because it was
declared in asm/nmi.h, which linux/nmi.h doesn't include. Also,
linux/nmi.h couldn't easily be fixed by including asm/nmi.h,
because that file is not available on all architectures.

I am proposing to fix this by moving the x86 definition of
arch_trigger_all_cpu_backtrace() to asm/irq.h.

Tested via: echo l > /proc/sysrq-trigger

Before the change, this uses a fallback implementation which
shows backtraces on active CPUs (using
smp_call_function_interrupt() )

After the change, this shows NMI backtraces on all CPUs

Signed-off-by: Michel Lespinasse <walken@google.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Link: http://lkml.kernel.org/r/1370518875-1346-1-git-send-email-walken@google.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
2013-06-20 14:00:21 +02:00
..
2012-11-29 13:23:02 -08:00
2012-03-28 18:11:12 +01:00
2012-09-19 17:26:08 +02:00
2012-03-28 18:11:12 +01:00
2013-04-25 10:39:04 +02:00
2012-11-14 15:28:11 -08:00
2013-06-10 21:59:37 +01:00
2012-03-28 18:11:12 +01:00
2013-02-14 09:21:17 -05:00
2012-11-29 13:23:02 -08:00
2012-03-20 21:48:30 +08:00
2013-02-03 18:16:27 -05:00
2012-06-25 13:48:30 +02:00
2013-04-22 15:45:03 +09:30
2012-11-29 13:23:02 -08:00
2012-01-26 21:23:53 +01:00
2013-04-02 16:03:32 -07:00
2013-04-02 16:03:29 -07:00
2013-04-02 10:12:55 -07:00
2012-02-20 12:52:05 -08:00
2013-02-03 18:16:27 -05:00
2012-03-28 18:11:12 +01:00
2012-03-28 18:11:12 +01:00
2012-09-21 17:18:44 -07:00