From patchwork Mon Oct 16 07:32:47 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lubomir Rintel X-Patchwork-Id: 826180 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.infradead.org (client-ip=65.50.211.133; helo=bombadil.infradead.org; envelope-from=hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="TjzfYdBz"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3yFqpB5xYxz9t2c for ; Mon, 16 Oct 2017 18:34:26 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=gnTySvAUrhHrxB/ltH4VHNu920lrIbyCtXuaLYAUt2Q=; b=Tjz fYdBz0VucipTBQvRwvgdc+OfqjFSzI3wRzQTHa+tw9ZAx9bbQdV/qH+62NTVWETUJ2Gse9nntBS5D EcQeGHgXflNx/qUJ/nW67LUUrP37f4iOMxSaXv8uG5yIMCf3pb1ELdF3GjNmO2+fYTHaJ7XC90mA7 7RzAEkxnWRKPNTYq4zSkTKxmXYWMhm8W7hzasu7L8gudJs8SAWstYOa3EI/SkppVgKLIUjt6mD2z/ CFDi/l/gF/8Ia5cug9yK+EzVFEcNMPoPWHThFl/L5VI1n+GV2fL02oduYlcADjLbJ7Z5oO1y5tE+Q z0dID4q75zdGaf/ydNZUolcqbGEWluA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1e3zuM-0003fo-CD; Mon, 16 Oct 2017 07:33:54 +0000 Received: from shell.v3.sk ([92.60.52.57]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1e3ztu-0003a4-29 for hostap@lists.infradead.org; Mon, 16 Oct 2017 07:33:30 +0000 Received: from localhost (localhost [127.0.0.1]) by zimbra.v3.sk (Postfix) with ESMTP id AD304918DA for ; Mon, 16 Oct 2017 09:32:59 +0200 (CEST) Received: from shell.v3.sk ([127.0.0.1]) by localhost (zimbra.v3.sk [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id mM_0fzi1AtdV; Mon, 16 Oct 2017 09:32:56 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by zimbra.v3.sk (Postfix) with ESMTP id D4022918DB; Mon, 16 Oct 2017 09:32:55 +0200 (CEST) X-Virus-Scanned: amavisd-new at zimbra.v3.sk Received: from shell.v3.sk ([127.0.0.1]) by localhost (zimbra.v3.sk [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id HgIfUXuJDehv; Mon, 16 Oct 2017 09:32:55 +0200 (CEST) Received: from belphegor.brq.redhat.com (nat-pool-brq-t.redhat.com [213.175.37.10]) by zimbra.v3.sk (Postfix) with ESMTPSA id 261FA918D9; Mon, 16 Oct 2017 09:32:55 +0200 (CEST) From: Lubomir Rintel To: hostap@lists.infradead.org Subject: [RESEND PATCH] tests: enable dynamic debugging for mac80211_hwsim Date: Mon, 16 Oct 2017 09:32:47 +0200 Message-Id: <20171016073247.11810-1-lkundrak@v3.sk> X-Mailer: git-send-email 2.13.6 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171016_003326_350455_5341DE17 X-CRM114-Status: UNSURE ( 6.78 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -1.9 (-) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (-1.9 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record -0.0 RP_MATCHES_RCVD Envelope sender domain matches handover relay domain -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-BeenThere: hostap@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Lubomir Rintel MIME-Version: 1.0 Sender: "Hostap" Errors-To: hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org mac80211_hwsim module typically dumps a lot of details into the kernel message buffer. While it's probably okay in a dedicated VM, it's way too chatty in other setups. Kernel allows fine-tuning logging via the dynamic debugging facility. Let's enable all logging locations in the mac80211_hwsim module so that we don't loose debugging output when kenel adpots the dynamic debug mechanism for the driver. Signed-off-by: Lubomir Rintel --- The relevant kernel patch reference: https://patchwork.kernel.org/patch/9814285/ --- tests/hwsim/start.sh | 2 +- tests/hwsim/vm/kernel-config | 2 +- tests/hwsim/vm/vm-run.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/hwsim/start.sh b/tests/hwsim/start.sh index dce65ba82..45f1b95e8 100755 --- a/tests/hwsim/start.sh +++ b/tests/hwsim/start.sh @@ -101,7 +101,7 @@ else NUM_CH=1 fi -test -f /proc/modules && sudo modprobe mac80211_hwsim radios=7 channels=$NUM_CH support_p2p_device=0 +test -f /proc/modules && sudo modprobe mac80211_hwsim radios=7 channels=$NUM_CH support_p2p_device=0 dyndbg=+p sudo ifconfig hwsim0 up sudo $WLANTEST -i hwsim0 -n $LOGDIR/hwsim0.pcapng -c -dtN -L $LOGDIR/hwsim0 & diff --git a/tests/hwsim/vm/kernel-config b/tests/hwsim/vm/kernel-config index 3c8cd2fc0..e41d69823 100644 --- a/tests/hwsim/vm/kernel-config +++ b/tests/hwsim/vm/kernel-config @@ -1844,7 +1844,7 @@ CONFIG_PRINTK_TIME=y CONFIG_CONSOLE_LOGLEVEL_DEFAULT=7 CONFIG_MESSAGE_LOGLEVEL_DEFAULT=4 # CONFIG_BOOT_PRINTK_DELAY is not set -# CONFIG_DYNAMIC_DEBUG is not set +CONFIG_DYNAMIC_DEBUG=y # # Compile-time checks and compiler options diff --git a/tests/hwsim/vm/vm-run.sh b/tests/hwsim/vm/vm-run.sh index c0ef5b0fe..3d4d36cfd 100755 --- a/tests/hwsim/vm/vm-run.sh +++ b/tests/hwsim/vm/vm-run.sh @@ -132,7 +132,7 @@ $KVM \ -fsdev local,security_model=none,id=fsdev-logs,path="$LOGDIR",writeout=immediate \ -device virtio-9p-pci,id=fs-logs,fsdev=fsdev-logs,mount_tag=logshare \ -monitor null -serial stdio -serial file:$LOGDIR/console \ - -append "mac80211_hwsim.support_p2p_device=0 mac80211_hwsim.channels=$CHANNELS mac80211_hwsim.radios=7 init=$CMD testdir=$TESTDIR timewarp=$TIMEWARP console=$KVMOUT root=/dev/root rootflags=trans=virtio,version=9p2000.u ro rootfstype=9p EPATH=$EPATH ARGS=$argsfile" + -append "mac80211_hwsim.support_p2p_device=0 mac80211_hwsim.channels=$CHANNELS mac80211_hwsim.radios=7 mac80211_hwsim.dyndbg=+p init=$CMD testdir=$TESTDIR timewarp=$TIMEWARP console=$KVMOUT root=/dev/root rootflags=trans=virtio,version=9p2000.u ro rootfstype=9p EPATH=$EPATH ARGS=$argsfile" if [ $CODECOV = "yes" ]; then echo "Preparing code coverage reports"