History

[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.

Ingo Molnar committed 21 years ago

Commit 8446f1d1 parent 4732efb12 files · +201 −0Browse files

Showing the changes to kernel/timer.c (1 of 12 files). Show all

Unified · Split

kernel/timer.c+1−0
@@ -950,6 +950,7 @@ void do_timer(struct pt_regs *regs) · 949 unmodified lines
950{950{
951 jiffies_64++;951 jiffies_64++;
952 update_times();952 update_times();
953 softlockup_tick(regs);
953}954}
954 955
955#ifdef __ARCH_WANT_SYS_ALARM956#ifdef __ARCH_WANT_SYS_ALARM

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t