hung task debugging: Inject NMI when hung and going to panic
authorSasha Levin <levinsasha928@gmail.com>
Thu, 15 Mar 2012 21:47:20 +0000 (17:47 -0400)
committerIngo Molnar <mingo@kernel.org>
Wed, 25 Apr 2012 10:39:25 +0000 (12:39 +0200)
commit625056b65ee9a8b4caf42136e0c844c15e6ec54f
treec9470f12694d950bf7e83c3539afa7dea02ba42f
parentaf3a3ab2966112c0d0a44df7eeb1e95fe32d4495
hung task debugging: Inject NMI when hung and going to panic

Send an NMI to all CPUs when a hung task is detected and the hung
task code is configured to panic. This gives us a fairly uptodate
snapshot of all CPUs in the system.

This lets us get stack trace of all CPUs which makes life easier
trying to debug a deadlock, and the NMI doesn't change anything
since the next step is a kernel panic.

Signed-off-by: Sasha Levin <levinsasha928@gmail.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Link: http://lkml.kernel.org/r/1331848040-1676-1-git-send-email-levinsasha928@gmail.com
[ extended the changelog a bit ]
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/hung_task.c