blob: 36788c2c310d10a4c03cce65d6799f0caa5bef95 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001menu "Kernel hacking"
2
3source "lib/Kconfig.debug"
4
5config DEBUG_STACKOVERFLOW
6 bool "Check for stack overflows"
7 depends on DEBUG_KERNEL
8
9config DEBUG_STACK_USAGE
10 bool "Stack utilization instrumentation"
11 depends on DEBUG_KERNEL
12 help
13 Enables the display of the minimum amount of free stack which each
14 task has ever had available in the sysrq-T and sysrq-P debug output.
15
16 This option will slow down process creation somewhat.
17
18config DEBUG_PAGEALLOC
19 bool "Page alloc debugging"
20 depends on DEBUG_KERNEL
21 help
22 Unmap pages from the kernel linear mapping after free_pages().
23 This results in a large slowdown, but helps to find certain types
24 of memory corruptions.
25
26config FRAME_POINTER
27 bool "Compile the kernel with frame pointers"
28 help
29 If you say Y here the resulting kernel image will be slightly larger
30 and slower, but it will give very useful debugging information.
31 If you don't debug the kernel, you can say N, but we may not be able
32 to solve problems without frame pointers.
33
34endmenu