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