[PATCH] watchdog: print all locks on a softlock
From: Eric Paris
Date: Thu May 01 2014 - 14:56:00 EST
If the CPU hits a softlockup this patch will also have it print the
information about all locks being held on the system. This might help
determine if a lock is being held too long leading to this problem.
Signed-off-by: Eric Paris <eparis@xxxxxxxxxx>
Cc: Frederic Weisbecker <fweisbec@xxxxxxxxx>
Cc: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
Cc: Don Zickus <dzickus@xxxxxxxxxx>
Cc: Michal Hocko <mhocko@xxxxxxx>
Cc: Ben Zhang <benzh@xxxxxxxxxxxx>
---
kernel/watchdog.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/kernel/watchdog.c b/kernel/watchdog.c
index 516203e..a027240 100644
--- a/kernel/watchdog.c
+++ b/kernel/watchdog.c
@@ -322,6 +322,7 @@ static enum hrtimer_restart watchdog_timer_fn(struct hrtimer *hrtimer)
current->comm, task_pid_nr(current));
print_modules();
print_irqtrace_events(current);
+ debug_show_all_locks();
if (regs)
show_regs(regs);
else
--
1.9.0
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/