From: Peter Zijlstra Date: Sat, 14 Feb 2009 15:59:04 +0000 (+0100) Subject: lockstat: warn about disabled lock debugging X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=9833f8cb952b9aa3f98a71e7bef8820cee3261a0;p=linux-2.6-omap-h63xx.git lockstat: warn about disabled lock debugging Avoid confusion and clearly state lock debugging got disabled. Signed-off-by: Peter Zijlstra Signed-off-by: Ingo Molnar --- diff --git a/kernel/lockdep_proc.c b/kernel/lockdep_proc.c index b51064ce564..d7135aa2d2c 100644 --- a/kernel/lockdep_proc.c +++ b/kernel/lockdep_proc.c @@ -601,6 +601,10 @@ static void seq_stats(struct seq_file *m, struct lock_stat_data *data) static void seq_header(struct seq_file *m) { seq_printf(m, "lock_stat version 0.3\n"); + + if (unlikely(!debug_locks)) + seq_printf(m, "*WARNING* lock debugging disabled!! - possibly due to a lockdep warning\n"); + seq_line(m, '-', 0, 40 + 1 + 10 * (14 + 1)); seq_printf(m, "%40s %14s %14s %14s %14s %14s %14s %14s %14s " "%14s %14s\n",