]> www.infradead.org Git - users/jedix/linux-maple.git/commit
kernel/watchdog.c: perform all-CPU backtrace in case of hard lockup
authorJiri Kosina <jkosina@suse.cz>
Fri, 6 Nov 2015 02:44:41 +0000 (18:44 -0800)
committerChuck Anderson <chuck.anderson@oracle.com>
Mon, 31 Oct 2016 10:40:06 +0000 (03:40 -0700)
commit5fedaad27c600b2824b1eb2d589df0a7280ad9eb
tree5e5128e68d790eeee4f48ab6d82bf61e93e95639
parent5e880a14eb9f73b8206fb7f48d88c5e866115b3b
kernel/watchdog.c: perform all-CPU backtrace in case of hard lockup

In many cases of hardlockup reports, it's actually not possible to know
why it triggered, because the CPU that got stuck is usually waiting on a
resource (with IRQs disabled) in posession of some other CPU is holding.

IOW, we are often looking at the stacktrace of the victim and not the
actual offender.

Introduce sysctl / cmdline parameter that makes it possible to have
hardlockup detector perform all-CPU backtrace.

Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Reviewed-by: Aaron Tomlin <atomlin@redhat.com>
Cc: Ulrich Obergfell <uobergfe@redhat.com>
Acked-by: Don Zickus <dzickus@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
(cherry picked from commit 55537871ef666b4153fd1ef8782e4a13fee142cc)

Signed-off-by: Vijay Kumar <vijay.ac.kumar@oracle.com>
Orabug: 24327572
Documentation/kernel-parameters.txt
Documentation/sysctl/kernel.txt
include/linux/nmi.h
kernel/sysctl.c
kernel/watchdog.c