Gitweb: http://git.kernel.org/linus/9833f8cb952b9aa3f98a71e7bef8820cee3261a0 Commit: 9833f8cb952b9aa3f98a71e7bef8820cee3261a0 Parent: b4b136f44b3b7adb9265fd5566d0ea9b99b1cd5f Author: Peter Zijlstra <a.p.zijlstra@chello.nl> AuthorDate: Sat Feb 14 16:59:04 2009 +0100 Committer: Ingo Molnar <mingo@elte.hu> CommitDate: Sat Feb 14 23:28:28 2009 +0100 lockstat: warn about disabled lock debugging Avoid confusion and clearly state lock debugging got disabled. Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl> Signed-off-by: Ingo Molnar <mingo@elte.hu> --- kernel/lockdep_proc.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/kernel/lockdep_proc.c b/kernel/lockdep_proc.c index b51064c..d7135aa 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", -- To unsubscribe from this list: send the line "unsubscribe git-commits-head" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
