]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
hwsim tests: Check kernel messages for lockdep complaints
authorJohannes Berg <johannes.berg@intel.com>
Mon, 18 Nov 2013 15:38:06 +0000 (16:38 +0100)
committerJouni Malinen <j@w1.fi>
Wed, 20 Nov 2013 14:39:24 +0000 (16:39 +0200)
Lockdep complaints are never good, so check for them in the
kernel messages, not just for warnings and bugs.

Signed-hostap: Johannes Berg <johannes.berg@intel.com>

tests/hwsim/check_kernel.py

index 30f67182dc0c8aff5d5cb8a1254a69da4466a588..9c83833b0b35e0b8abf00074f64f5f84e2775527 100644 (file)
@@ -13,7 +13,16 @@ Tests for kernel messages to find if there were any issues in them.
 
 import re
 
-issue = re.compile('(\[[0-9 .]*\] )?(WARNING:|BUG:).*')
+lockdep_messages = [
+  'possible circular locking dependency',
+  '.*-safe -> .*unsafe lock order detected',
+  'possible recursive locking detected',
+  'inconsistent lock state',
+  'possible irq lock inversion dependency',
+  'suspicious RCU usage',
+]
+lockdep = r'(\[\s*)?INFO: (%s)' % ('|'.join(lockdep_messages), )
+issue = re.compile('(\[[0-9 .]*\] )?(WARNING:|BUG:|%s).*' % lockdep)
 
 def check_kernel(logfile):
     for line in open(logfile, 'r'):