]>
git.ipfire.org Git - thirdparty/hostap.git/blob - tests/hwsim/check_kernel.py
1 # kernel message checker module
3 # Copyright (c) 2013, Intel Corporation
5 # Author: Johannes Berg <johannes@sipsolutions.net>
7 # This software may be distributed under the terms of the BSD license.
8 # See README for more details.
11 Tests for kernel messages to find if there were any issues in them.
17 'possible circular locking dependency',
18 '.*-safe -> .*unsafe lock order detected',
19 'possible recursive locking detected',
20 'inconsistent lock state',
21 'possible irq lock inversion dependency',
22 'suspicious RCU usage',
24 lockdep
= r
'(\[\s*)?INFO: (%s)' % ('|'.join(lockdep_messages
), )
25 issue
= re
.compile('(\[[0-9 .]*\] )?(WARNING:|BUG:|%s).*' % lockdep
)
27 def check_kernel(logfile
):
28 for line
in open(logfile
, 'r'):