From patchwork Mon Nov 18 15:38:06 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johannes Berg X-Patchwork-Id: 292131 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from maxx.maxx.shmoo.com (maxx.shmoo.com [205.134.188.171]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "maxx.shmoo.com", Issuer "CA Cert Signing Authority" (not verified)) by ozlabs.org (Postfix) with ESMTPS id 2AACC2C00C7 for ; Tue, 19 Nov 2013 02:38:26 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by maxx.maxx.shmoo.com (Postfix) with ESMTP id 464E09C09E; Mon, 18 Nov 2013 10:38:24 -0500 (EST) X-Virus-Scanned: amavisd-new at maxx.shmoo.com Received: from maxx.maxx.shmoo.com ([127.0.0.1]) by localhost (maxx.shmoo.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id cwBoxk4ETo1i; Mon, 18 Nov 2013 10:38:24 -0500 (EST) Received: from maxx.shmoo.com (localhost [127.0.0.1]) by maxx.maxx.shmoo.com (Postfix) with ESMTP id 9708A9C108; Mon, 18 Nov 2013 10:38:16 -0500 (EST) X-Original-To: mailman-post+hostap@maxx.shmoo.com Delivered-To: mailman-post+hostap@maxx.shmoo.com Received: from localhost (localhost [127.0.0.1]) by maxx.maxx.shmoo.com (Postfix) with ESMTP id A484F9C108 for ; Mon, 18 Nov 2013 10:38:15 -0500 (EST) X-Virus-Scanned: amavisd-new at maxx.shmoo.com Received: from maxx.maxx.shmoo.com ([127.0.0.1]) by localhost (maxx.shmoo.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id RgGtxtOeA5-y for ; Mon, 18 Nov 2013 10:38:11 -0500 (EST) Received: from sipsolutions.net (s3.sipsolutions.net [144.76.43.152]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (Client did not present a certificate) by maxx.maxx.shmoo.com (Postfix) with ESMTPS id EB8B69C09E for ; Mon, 18 Nov 2013 10:38:10 -0500 (EST) Received: by sipsolutions.net with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1ViQtt-0006qv-Le; Mon, 18 Nov 2013 16:38:09 +0100 From: Johannes Berg To: hostap@lists.shmoo.com Subject: [PATCH v2] hwsim tests: check kernel messages for lockdep complaints Date: Mon, 18 Nov 2013 16:38:06 +0100 Message-Id: <1384789086-25760-1-git-send-email-johannes@sipsolutions.net> X-Mailer: git-send-email 1.8.4.rc3 Cc: Johannes Berg X-BeenThere: hostap@lists.shmoo.com X-Mailman-Version: 2.1.11 Precedence: list List-Id: HostAP Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: hostap-bounces@lists.shmoo.com Errors-To: hostap-bounces@lists.shmoo.com From: Johannes Berg Lockdep complaints are never good, so check for them in the kernel messages, not just for warnings and bugs. Signed-hostap: Johannes Berg --- tests/hwsim/check_kernel.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/tests/hwsim/check_kernel.py b/tests/hwsim/check_kernel.py index 30f6718..9c83833 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'):