]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
kernel/watchdog.c: print traces for all cpus on lockup detection
authorAaron Tomlin <atomlin@redhat.com>
Thu, 1 May 2014 22:02:39 +0000 (08:02 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 1 May 2014 22:02:39 +0000 (08:02 +1000)
commit90e6b763ca8a5eb739e59489f42d45e13431d157
tree61c24b35f36b62432b131518b926e7ada7e00a6a
parent2e44a2aecf2504fbada21e5373ce5c966893b8db
kernel/watchdog.c: print traces for all cpus on lockup detection

A 'softlockup' is defined as a bug that causes the kernel to loop in
kernel mode for more than a predefined period to time, without giving
other tasks a chance to run.

Currently, upon detection of this condition by the per-cpu watchdog task,
debug information (including a stack trace) is sent to the system log.

On some occasions, we have observed that the "victim" rather than the
actual "culprit" (i.e.  the owner/holder of the contended resource) is
reported to the user.  Often this information has proven to be
insufficient to assist debugging efforts.

To avoid loss of useful debug information, for architectures which support
NMI, this patch makes it possible to improve soft lockup reporting.  This
is accomplished by issuing an NMI to each cpu to obtain a stack trace.

If NMI is not supported we just revert back to the old method.  A sysctl
and boot-time parameter is available to toggle this feature.

[dzickus@redhat.com: add CONFIG_SMP in certain areas]
Signed-off-by: Aaron Tomlin <atomlin@redhat.com>
Signed-off-by: Don Zickus <dzickus@redhat.com>
Cc: David S. Miller <davem@davemloft.net>
Cc: Mateusz Guzik <mguzik@redhat.com>
Cc: Oleg Nesterov <oleg@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Documentation/kernel-parameters.txt
Documentation/sysctl/kernel.txt
include/linux/nmi.h
kernel/sysctl.c
kernel/watchdog.c