Skip to contentSkip to conversation

lockdep: Only ask for /proc/lock_stat output when available

PATCH New Andreas Gruenbacher 2 participants 2 messages Jul 15, 2014 – Jul 17, 2014 Locking primitives

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 kernel/locking/lockdep.c | 2 ++
 1 file changed, 2 insertions(+)
kernel/locking/lockdep.c +2 -0
index d24e433..88d0d44 100644
@@ -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)
Signature · 1 line
1.8.3.1
#1 lore raw

[tip:locking/core] locking/lockdep: Only ask for /proc/ lock_stat output when available

locking/lockdep: Only ask for /proc/lock_stat output when available
Commit-ID:  acf59377267b5a74818e76873d0670b0ca6cf2fe
Gitweb:     http://git.kernel.org/tip/acf59377267b5a74818e76873d0670b0ca6cf2fe
Author:     Andreas Gruenbacher <[email protected]>
AuthorDate: Tue, 15 Jul 2014 21:10:52 +0200
Committer:  Ingo Molnar <[email protected]>
CommitDate: Thu, 17 Jul 2014 11:48:15 +0200

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.

---
 kernel/locking/lockdep.c | 2 ++
 1 file changed, 2 insertions(+)
kernel/locking/lockdep.c +2 -0
index d24e433..88d0d44 100644
@@ -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)