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_STACK_USAGE |
| 6 | bool "Enable stack utilization instrumentation" |
| 7 | depends on DEBUG_KERNEL |
| 8 | help |
| 9 | Enables the display of the minimum amount of free stack which each |
| 10 | task has ever had available in the sysrq-T and sysrq-P debug output. |
| 11 | |
| 12 | This option will slow down process creation somewhat. |
| 13 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 14 | config DEBUG_DCFLUSH |
| 15 | bool "D-cache flush debugging" |
| 16 | depends on DEBUG_KERNEL |
| 17 | |
| 18 | config STACK_DEBUG |
| 19 | depends on DEBUG_KERNEL |
| 20 | bool "Stack Overflow Detection Support" |
| 21 | |
| 22 | config DEBUG_BOOTMEM |
| 23 | depends on DEBUG_KERNEL |
| 24 | bool "Debug BOOTMEM initialization" |
| 25 | |
David S. Miller | 5642530 | 2005-09-25 16:46:57 -0700 | [diff] [blame] | 26 | config DEBUG_PAGEALLOC |
Andrew Morton | 4a2f0ac | 2006-03-25 03:07:22 -0800 | [diff] [blame^] | 27 | bool "Debug page memory allocations" |
David S. Miller | 5642530 | 2005-09-25 16:46:57 -0700 | [diff] [blame] | 28 | depends on DEBUG_KERNEL && !SOFTWARE_SUSPEND |
| 29 | help |
| 30 | Unmap pages from the kernel linear mapping after free_pages(). |
| 31 | This results in a large slowdown, but helps to find certain types |
| 32 | of memory corruptions. |
| 33 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 34 | config MCOUNT |
| 35 | bool |
| 36 | depends on STACK_DEBUG |
| 37 | default y |
| 38 | |
| 39 | config FRAME_POINTER |
| 40 | bool |
| 41 | depends on MCOUNT |
| 42 | default y |
| 43 | |
| 44 | endmenu |