From f2786e85732993dfc9c2f87ae619f738c8198ecf Mon Sep 17 00:00:00 2001 From: Oliver Smith Date: Fri, 1 Mar 2024 16:22:34 +0100 Subject: [PATCH] ttcn3-ggsn-test: enable dynamic debug Enable loglevel=8, as otherwise the messages do not show up. Change-Id: I048646c4f90233939809546d30c94c4218eedbb1 --- scripts/kernel-test/run-qemu.sh | 1 + ttcn3-ggsn-test/fragment.config | 2 ++ ttcn3-ggsn-test/initrd-ggsn.sh | 6 ++++++ 3 files changed, 9 insertions(+) diff --git a/scripts/kernel-test/run-qemu.sh b/scripts/kernel-test/run-qemu.sh index 0c4fa26f..800fc256 100755 --- a/scripts/kernel-test/run-qemu.sh +++ b/scripts/kernel-test/run-qemu.sh @@ -11,6 +11,7 @@ KERNEL_CMDLINE=" console=ttyS0 panic=-1 init=/init + loglevel=8 $@ " diff --git a/ttcn3-ggsn-test/fragment.config b/ttcn3-ggsn-test/fragment.config index b5a07b5b..b6e20710 100644 --- a/ttcn3-ggsn-test/fragment.config +++ b/ttcn3-ggsn-test/fragment.config @@ -267,6 +267,8 @@ CONFIG_X86_HV_CALLBACK_VECTOR=y # 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 831dfff9..c554f8a0 100644 --- a/ttcn3-ggsn-test/initrd-ggsn.sh +++ b/ttcn3-ggsn-test/initrd-ggsn.sh @@ -11,6 +11,12 @@ initrd_add_bin \ 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" \