osmith has uploaded this change for review.
ttcn3-ggsn-test: enable dynamic debug
Enable loglevel=8, as otherwise the messages do not show up.
Change-Id: I048646c4f90233939809546d30c94c4218eedbb1
---
M scripts/kernel-test/run-qemu.sh
M ttcn3-ggsn-test/fragment.config
M ttcn3-ggsn-test/initrd-ggsn.sh
3 files changed, 20 insertions(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/docker-playground refs/changes/33/36133/1
diff --git a/scripts/kernel-test/run-qemu.sh b/scripts/kernel-test/run-qemu.sh
index 0c4fa26..800fc25 100755
--- a/scripts/kernel-test/run-qemu.sh
+++ b/scripts/kernel-test/run-qemu.sh
@@ -11,6 +11,7 @@
console=ttyS0
panic=-1
init=/init
+ loglevel=8
$@
"
diff --git a/ttcn3-ggsn-test/fragment.config b/ttcn3-ggsn-test/fragment.config
index b5a07b5..b6e2071 100644
--- a/ttcn3-ggsn-test/fragment.config
+++ b/ttcn3-ggsn-test/fragment.config
@@ -267,6 +267,8 @@
# CONFIG_X86_X2APIC is not set
# CONFIG_XEN is not set
+CONFIG_DYNAMIC_DEBUG=y
+
# For libgtpnl's qemu tests
CONFIG_NAMESPACES=y
CONFIG_NET_NS=y
diff --git a/ttcn3-ggsn-test/initrd-ggsn.sh b/ttcn3-ggsn-test/initrd-ggsn.sh
index 831dfff..c554f8a 100644
--- a/ttcn3-ggsn-test/initrd-ggsn.sh
+++ b/ttcn3-ggsn-test/initrd-ggsn.sh
@@ -11,6 +11,12 @@
initrd_add_file \
/data/osmo-ggsn.cfg
+# Enable dynamic_debug, if it is compiled into the kernel
+initrd_add_cmd \
+ "mount -t debugfs none /sys/kernel/debug || true" \
+ "(cat /sys/kernel/debug/dynamic_debug/control | grep gtp) || true" \
+ "echo -n 'module gtp +p' > /sys/kernel/debug/dynamic_debug/control || true"
+
initrd_add_cmd \
"ip addr add 172.18.3.201/24 brd 172.18.3.255 dev eth0" \
"ip route add default via 172.18.3.1 dev eth0" \
To view, visit change 36133. To unsubscribe, or for help writing mail filters, visit settings.