diff options
author | 2017-11-05 23:05:47 +0100 | |
---|---|---|
committer | 2017-11-10 15:49:28 +0900 | |
commit | bee188ac6521c9540fc6d11851217a3e042b68c3 (patch) | |
tree | 3b1af5aa8bafa5d8293793fb1268786cc0913165 | |
parent | device: wait for all peers to be freed before destroying (diff) | |
download | wireguard-monolithic-historical-bee188ac6521c9540fc6d11851217a3e042b68c3.tar.xz wireguard-monolithic-historical-bee188ac6521c9540fc6d11851217a3e042b68c3.zip |
qemu: more debugging
-rw-r--r-- | src/tests/qemu/debug.config | 9 | ||||
-rw-r--r-- | src/tests/qemu/init.c | 6 | ||||
-rw-r--r-- | src/tests/qemu/kernel.config | 1 |
3 files changed, 15 insertions, 1 deletions
diff --git a/src/tests/qemu/debug.config b/src/tests/qemu/debug.config index ac20063..9f6c236 100644 --- a/src/tests/qemu/debug.config +++ b/src/tests/qemu/debug.config @@ -29,7 +29,6 @@ CONFIG_UBSAN_NULL=y CONFIG_DEBUG_KMEMLEAK=y CONFIG_DEBUG_KMEMLEAK_EARLY_LOG_SIZE=8192 CONFIG_DEBUG_STACK_USAGE=y -CONFIG_KCOV=y CONFIG_DEBUG_SHIRQ=y CONFIG_WQ_WATCHDOG=y CONFIG_SCHED_DEBUG=y @@ -56,3 +55,11 @@ CONFIG_RCU_CPU_STALL_TIMEOUT=21 CONFIG_RCU_TRACE=y CONFIG_RCU_EQS_DEBUG=y CONFIG_USER_STACKTRACE_SUPPORT=y +CONFIG_DEBUG_SG=y +CONFIG_DEBUG_NOTIFIERS=y +CONFIG_DOUBLEFAULT=y +CONFIG_X86_DEBUG_FPU=y +CONFIG_DEBUG_SECTION_MISMATCH=y +CONFIG_DEBUG_PAGEALLOC=y +CONFIG_DEBUG_PAGEALLOC_ENABLE_DEFAULT=y +CONFIG_DEBUG_WW_MUTEX_SLOWPATH=y diff --git a/src/tests/qemu/init.c b/src/tests/qemu/init.c index 8f46e6c..8bccf3c 100644 --- a/src/tests/qemu/init.c +++ b/src/tests/qemu/init.c @@ -111,6 +111,12 @@ static void enable_logging(void) if (write(fd, "9\n", 2) != 2) panic("write(printk)"); close(fd); + fd = open("/proc/sys/kernel/panic_on_warn", O_WRONLY); + if (fd < 0) + return; /* < 3.18 doesn't have it */ + if (write(fd, "1\n", 2) != 2) + panic("write(panic_on_warn)"); + close(fd); } static void kmod_selftests(void) diff --git a/src/tests/qemu/kernel.config b/src/tests/qemu/kernel.config index 398ce71..1f16016 100644 --- a/src/tests/qemu/kernel.config +++ b/src/tests/qemu/kernel.config @@ -74,5 +74,6 @@ CONFIG_BOOTPARAM_HUNG_TASK_PANIC=y CONFIG_PANIC_TIMEOUT=-1 CONFIG_STACKTRACE=y CONFIG_EARLY_PRINTK=y +CONFIG_GDB_SCRIPTS=y CONFIG_WIREGUARD=y CONFIG_WIREGUARD_DEBUG=y |