Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Andreas Gruenbacher and committed by
Ingo Molnar
acf59377 b5e4111f

+2
+2
kernel/locking/lockdep.c
··· 384 384 { 385 385 printk(KERN_DEBUG "%s\n", bug_msg); 386 386 printk(KERN_DEBUG "turning off the locking correctness validator.\n"); 387 + #ifdef CONFIG_LOCK_STAT 387 388 printk(KERN_DEBUG "Please attach the output of /proc/lock_stat to the bug report\n"); 389 + #endif 388 390 } 389 391 390 392 static int save_trace(struct stack_trace *trace)