aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLubomir Rintel <lkundrak@v3.sk>2017-10-16 07:32:47 (GMT)
committerJouni Malinen <j@w1.fi>2017-11-26 09:47:46 (GMT)
commitc6ba02154e4867e3e8cd5f823a70d92c08394c6d (patch)
tree22946e65579102e8d61e19f9d50cb9b5b0521d94
parentfb6d648819fd4b283ee48ab2c3c951158395c652 (diff)
downloadhostap-c6ba02154e4867e3e8cd5f823a70d92c08394c6d.zip
hostap-c6ba02154e4867e3e8cd5f823a70d92c08394c6d.tar.gz
hostap-c6ba02154e4867e3e8cd5f823a70d92c08394c6d.tar.bz2
tests: Enable dynamic debugging for mac80211_hwsim
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. The 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 the kernel adopts the dynamic debug mechanism for the driver. Signed-off-by: Lubomir Rintel <lkundrak@v3.sk>
-rwxr-xr-xtests/hwsim/start.sh2
-rw-r--r--tests/hwsim/vm/kernel-config2
-rwxr-xr-xtests/hwsim/vm/vm-run.sh2
3 files changed, 3 insertions, 3 deletions
diff --git a/tests/hwsim/start.sh b/tests/hwsim/start.sh
index 02a5f86..e7fb148 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 3c8cd2f..e41d698 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 c0ef5b0..3d4d36c 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"