From: Johannes Berg Date: Mon, 18 Nov 2013 15:38:06 +0000 (+0100) Subject: hwsim tests: Check kernel messages for lockdep complaints X-Git-Tag: hostap_2_1~513 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8c30ab492c8e6ded14744b4239d701e9d10275ba;p=thirdparty%2Fhostap.git hwsim tests: Check kernel messages for lockdep complaints Lockdep complaints are never good, so check for them in the kernel messages, not just for warnings and bugs. Signed-hostap: Johannes Berg --- diff --git a/tests/hwsim/check_kernel.py b/tests/hwsim/check_kernel.py index 30f67182d..9c83833b0 100644 --- a/tests/hwsim/check_kernel.py +++ b/tests/hwsim/check_kernel.py @@ -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'):