diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2017-11-05 23:05:47 +0100 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2017-11-10 15:49:28 +0900 |
commit | c4e6f58b9e4f8a163c87a2bf34a19819f0b15ca4 (patch) | |
tree | 824308455e2fbd4d21b051a99d5fb033fa3cf1e1 /src/tests | |
parent | 4717d0f2fbcbcab63998c2fe3667fc935f86a904 (diff) |
qemu: more debugging
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src/tests')
-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 |