summaryrefslogtreecommitdiffstats
path: root/kernel/locking
diff options
context:
space:
mode:
authorAndreas Gruenbacher <andreas.gruenbacher@gmail.com>2014-07-15 21:10:52 +0200
committerIngo Molnar <mingo@kernel.org>2014-07-17 11:48:15 +0200
commitacf59377267b5a74818e76873d0670b0ca6cf2fe (patch)
treee5a65e24338a165c5e99919e2d1d149d611f3be3 /kernel/locking
parentb5e4111f027c4be85dbe97e090530d03c55c4cf4 (diff)
downloadlinux-stable-acf59377267b5a74818e76873d0670b0ca6cf2fe.tar.gz
linux-stable-acf59377267b5a74818e76873d0670b0ca6cf2fe.tar.bz2
linux-stable-acf59377267b5a74818e76873d0670b0ca6cf2fe.zip
locking/lockdep: Only ask for /proc/lock_stat output when available
When lockdep turns itself off, the following message is logged: Please attach the output of /proc/lock_stat to the bug report Omit this message when CONFIG_LOCK_STAT is off, and /proc/lock_stat doesn't exist. Signed-off-by: Andreas Gruenbacher <andreas.gruenbacher@gmail.com> Signed-off-by: Peter Zijlstra <peterz@infradead.org> Cc: Linus Torvalds <torvalds@linux-foundation.org> Link: http://lkml.kernel.org/r/1405451452-3824-1-git-send-email-andreas.gruenbacher@gmail.com Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'kernel/locking')
-rw-r--r--kernel/locking/lockdep.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/locking/lockdep.c b/kernel/locking/lockdep.c
index d24e4339b46d..88d0d4420ad2 100644
--- a/kernel/locking/lockdep.c
+++ b/kernel/locking/lockdep.c
@@ -384,7 +384,9 @@ static void print_lockdep_off(const char *bug_msg)
{
printk(KERN_DEBUG "%s\n", bug_msg);
printk(KERN_DEBUG "turning off the locking correctness validator.\n");
+#ifdef CONFIG_LOCK_STAT
printk(KERN_DEBUG "Please attach the output of /proc/lock_stat to the bug report\n");
+#endif
}
static int save_trace(struct stack_trace *trace)