[PATCH] detect soft lockups
This patch adds a new kernel debug feature: CONFIG_DETECT_SOFTLOCKUP. When enabled then per-CPU watchdog threads are started, which try to run once per second. If they get delayed for more than 10 seconds then a callback from the timer interrupt detects this condition and prints out a warning message and a stack dump (once per lockup incident). The feature is otherwise non-intrusive, it doesnt try to unlock the box in any way, it only gets the debug info out, automatically, and on all CPUs affected by the lockup. Signed-off-by:Ingo Molnar <mingo@elte.hu> Signed-off-by:
Nishanth Aravamudan <nacc@us.ibm.com> Signed-Off-By:
Matthias Urlichs <smurf@smurf.noris.de> Signed-off-by:
Richard Purdie <rpurdie@rpsys.net> Signed-off-by:
Andrew Morton <akpm@osdl.org> Signed-off-by:
Linus Torvalds <torvalds@osdl.org>
Showing
- arch/i386/kernel/nmi.c 5 additions, 0 deletionsarch/i386/kernel/nmi.c
- arch/i386/kernel/time.c 1 addition, 0 deletionsarch/i386/kernel/time.c
- arch/x86_64/kernel/nmi.c 2 additions, 0 deletionsarch/x86_64/kernel/nmi.c
- arch/x86_64/kernel/time.c 1 addition, 0 deletionsarch/x86_64/kernel/time.c
- drivers/mtd/nand/nand_base.c 1 addition, 0 deletionsdrivers/mtd/nand/nand_base.c
- include/linux/sched.h 17 additions, 0 deletionsinclude/linux/sched.h
- init/main.c 1 addition, 0 deletionsinit/main.c
- kernel/Makefile 1 addition, 0 deletionskernel/Makefile
- kernel/power/swsusp.c 1 addition, 0 deletionskernel/power/swsusp.c
- kernel/softlockup.c 151 additions, 0 deletionskernel/softlockup.c
- kernel/timer.c 1 addition, 0 deletionskernel/timer.c
- lib/Kconfig.debug 19 additions, 0 deletionslib/Kconfig.debug
Loading
Please register or sign in to comment