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
..
2013-04-25 21:09:07 +08:00
2012-12-07 14:24:32 -07:00
2013-02-11 17:18:25 -08:00
2013-03-22 10:20:55 -04:00
2013-01-10 12:36:17 +01:00
2012-09-21 12:45:26 -07:00
2012-10-01 13:59:17 -07:00
2013-01-10 16:17:58 +01:00
2011-12-05 17:17:07 +01:00
2012-10-06 03:04:40 +09:00
2012-05-18 09:46:07 +02:00
2012-04-20 17:22:34 -07:00
2012-05-09 11:38:20 +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-12-14 22:37:13 +00:00
2013-03-06 20:34:43 -08:00
2013-04-30 17:04:02 -07:00
2012-03-28 18:11:12 +01:00
2012-10-02 18:01:25 +01:00
2012-10-02 18:01:25 +01:00
2012-11-27 23:29:09 -02:00
2012-11-29 13:23:01 -08:00
2012-01-04 15:01:54 +01:00
2013-04-25 10:39:04 +02:00
2012-10-06 03:05:16 +09:00
2013-03-07 17:09:25 +01:00
2012-01-26 16:44:41 -08:00
2012-11-14 15:28:11 -08:00
2013-05-02 14:53:12 -07:00
2012-05-14 14:15:31 -07:00
2012-12-14 22:37:13 +00:00
2012-05-14 14:15:31 -07:00
2012-11-15 00:28:00 +01:00
2011-12-05 18:16:11 +01:00
2012-05-21 15:09:38 +02:00
2012-10-24 17:06:43 +02:00
2012-12-14 22:37:13 +00:00
2013-06-10 21:59:37 +01:00
2012-12-11 17:22:25 -08:00
2012-06-17 10:51:01 -07:00
2013-04-16 16:32:39 -03:00
2012-03-28 18:11:12 +01:00
2013-04-30 08:40:35 -07:00
2012-06-06 09:17:22 +02:00
2013-02-14 09:21:17 -05:00
2013-02-12 17:46:28 -05:00
2012-11-29 13:23:02 -08:00
2012-05-11 18:00:14 -06:00
2013-04-16 16:32:39 -03:00
2012-03-20 21:48:30 +08:00
2013-01-28 10:48:30 +01:00
2013-04-29 15:54:33 -07:00
2012-12-14 22:37:13 +00:00
2013-04-16 16:32:39 -03:00
2013-03-04 13:14:25 -08:00
2012-09-21 16:59:04 -07:00
2011-11-17 13:35:37 -08:00
2013-02-03 18:16:27 -05:00
2012-03-26 03:16:07 +02:00
2012-02-11 15:11:35 +01:00
2013-01-29 15:12:25 -08:00
2012-02-11 15:11:35 +01:00
2013-05-30 16:36:23 -07:00
2011-12-05 12:42:11 +01:00
2013-01-28 12:51:52 +01:00
2012-09-05 10:52:26 +02:00
2012-06-25 13:48:30 +02:00
2012-05-14 14:15:31 -07:00
2013-04-19 20:34:55 +02:00
2013-04-16 16:32:39 -03:00
2013-06-20 14:00:21 +02:00
2012-12-14 22:37:13 +00:00
2012-02-24 10:05:59 +01:00
2012-05-08 14:19:41 -07:00
2012-12-14 22:37:13 +00:00
2012-05-09 11:44:42 +02:00
2013-01-29 15:26:23 -08:00
2012-03-22 15:07:15 -05:00
2013-03-18 10:21:23 +01:00
2012-09-06 18:07:38 +03:00
2012-11-27 23:29:10 -02:00
2013-05-02 22:17:38 -03:00
2013-02-24 13:07:18 -08:00
2013-04-22 15:45:03 +09:30
2013-01-24 11:25:59 +01:00
2012-11-29 13:23:02 -08:00
2011-11-21 19:00:57 -08:00
2011-11-10 16:21:01 +01:00
2012-03-28 18:11:12 +01:00
2013-04-02 14:04:01 -07:00
2013-01-31 13:18:50 -08:00
2013-06-19 14:43:59 -07:00
2012-05-14 14:15:31 -07:00
2013-01-31 14:12:30 -08:00
2012-10-02 18:01:25 +01:00
2012-11-29 13:23:01 -08:00
2012-05-17 19:06:13 -04:00
2012-05-17 19:06:13 -04:00
2012-01-26 21:23:53 +01:00
2013-02-12 16:27:15 -08:00
2013-04-02 16:03:32 -07:00
2012-12-14 22:37:13 +00:00
2012-10-02 18:01:25 +01:00
2013-02-08 19:29:16 -05:00
2013-06-20 14:00:21 +02:00
2012-04-19 15:07:42 -07:00
2013-02-23 17:50:13 -08:00
2012-07-31 23:27:30 -04:00
2012-05-08 14:08:44 +02:00
2012-11-16 16:42:09 -08:00
2013-04-02 16:03:29 -07:00
2012-11-16 16:42:09 -08:00
2012-11-17 11:59:24 -08:00
2013-02-01 02:28:36 -08:00
2013-04-30 08:41:21 -07:00
2013-04-30 08:41:21 -07:00
2013-01-03 15:57:04 -08:00
2013-02-25 21:18:18 -08:00
2013-02-25 21:18:18 -08:00
2012-11-29 13:23:01 -08:00
2013-04-26 09:31:41 +02:00
2013-02-16 09:37:27 +01:00
2013-01-24 16:12:13 +01:00
2013-01-29 15:20:06 -08:00
2013-02-21 18:06:55 -08:00
2013-04-10 14:39:08 +02:00
2012-06-06 09:17:22 +02:00
2012-07-22 12:04:44 -07:00
2013-02-21 18:06:55 -08:00
2012-12-14 22:37:13 +00:00
2012-12-14 22:37:13 +00:00
2013-04-02 10:12:55 -07:00
2012-02-23 14:37:47 -07:00
2013-02-22 13:09:51 -08:00
2012-12-20 18:05:28 -08:00
2012-04-08 12:48:57 +03:00
2012-11-27 23:29:09 -02:00
2013-01-29 15:13:24 -08:00
2012-06-17 10:51:01 -07:00
2013-01-28 16:59:55 -08:00
2013-05-07 07:20:17 -07:00
2012-10-02 18:01:25 +01:00
2012-04-19 15:42:45 -07:00
2012-12-14 22:37:13 +00:00
2012-12-14 22:37:13 +00:00
2012-02-20 12:52:05 -08:00
2012-06-01 12:58:51 -04:00
2013-02-03 18:16:27 -05:00
2012-09-21 12:45:27 -07:00
2012-11-14 09:39:48 -08:00
2012-03-28 18:11:12 +01:00
2012-02-07 10:09:54 +01:00
2012-08-22 09:52:47 +02:00
2012-05-09 15:34:28 +02:00
2012-05-14 14:15:31 -07:00
2012-10-02 18:01:25 +01:00
2013-05-02 11:27:35 -07:00
2013-05-02 11:27:35 -07:00
2012-10-02 18:01:25 +01:00
2012-12-14 22:37:13 +00:00
2012-03-28 18:11:12 +01:00
2013-05-09 13:46:38 -04:00
2013-04-02 14:38:09 -07:00
2013-05-02 20:36:32 -04:00
2013-04-08 17:39:22 +02:00
2012-03-13 16:27:51 +01:00
2013-04-12 16:56:47 -07:00
2013-01-31 13:19:16 -08:00
2012-05-09 15:00:55 +02:00
2012-11-13 15:48:40 -05:00
2012-03-09 16:47:54 -08:00
2012-03-20 12:37:45 +02:00
2012-09-21 12:45:26 -07:00
2012-09-21 12:45:26 -07:00
2013-02-12 15:37:02 -08:00
2013-03-03 22:55:19 -05:00
2013-04-13 15:31:55 +02:00
2012-10-02 18:01:25 +01:00
2012-09-05 10:52:23 +02:00
2012-04-24 09:50:18 +01:00
2012-09-24 12:38:09 -04:00
2012-03-28 18:11:12 +01:00
2012-12-14 22:37:13 +00:00
2013-04-22 10:51:09 +03:00
2012-12-14 22:37:13 +00:00
2012-05-26 11:33:40 -07:00
2012-06-06 10:22:17 +02:00
2013-02-21 18:06:55 -08:00
2013-01-25 09:23:50 +01:00
2013-01-25 09:23:50 +01:00
2012-09-18 15:52:08 -07:00
2013-01-25 09:23:50 +01:00
2012-09-21 17:18:44 -07:00