locking/lockdep: Only ask for /proc/lock_stat output when available
authorAndreas Gruenbacher <andreas.gruenbacher@gmail.com>
Tue, 15 Jul 2014 19:10:52 +0000 (21:10 +0200)
committerIngo Molnar <mingo@kernel.org>
Thu, 17 Jul 2014 09:48:15 +0000 (11:48 +0200)
commitacf59377267b5a74818e76873d0670b0ca6cf2fe
treee5a65e24338a165c5e99919e2d1d149d611f3be3
parentb5e4111f027c4be85dbe97e090530d03c55c4cf4
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>
kernel/locking/lockdep.c