--- zzzz-none-000/linux-3.10.107/lib/Kconfig.debug 2017-06-27 09:49:32.000000000 +0000 +++ vr9-7490-729/linux-3.10.107/lib/Kconfig.debug 2021-11-10 11:53:56.000000000 +0000 @@ -419,6 +419,23 @@ allocation as well as poisoning memory on free to catch use of freed memory. This can make kmalloc/kfree-intensive workloads much slower. +config DEBUG_SLAB_DOUBLE_FREE + bool "SLAB double free check enabled" + depends on DEBUG_KERNEL && SLAB && !DEBUG_SLAB + default y + help + Say Y here if you hit BUG or BUG_ON in slab.c, to find the problem. + This makes kmalloc/kfree-intensive workloads only a little bit slower. + +config DEBUG_SLAB_AVM_LITE + + bool "SLAB store caller and time for memoryleak-analyzing on oom" + depends on DEBUG_KERNEL && SLAB && DEBUG_SLAB_DOUBLE_FREE && AVM_KERNEL + default y + help + Say Y if you want per-caller-and-time-history for kmallocs + the overhead (cpu-run/memory) is VERY small + config DEBUG_SLAB_LEAK bool "Memory leak debugging" depends on DEBUG_SLAB @@ -733,6 +750,17 @@ DEBUG_INFO build and compile times are reduced too. Only works with newer gcc versions. +config GDB_SCRIPTS + bool "Provide GDB scripts for kernel debugging" + select DEBUG_INFO + help + This creates the required links to GDB helper scripts in the + build directory. If you load vmlinux into gdb, the helper + scripts will be automatically imported by gdb as well, and + additional functions are available to analyze a Linux kernel + instance. See Documentation/gdb-kernel-debugging.txt for further + details. + config DEBUG_VM bool "Debug VM" depends on DEBUG_KERNEL