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 | |
| 14 | config KPROBES |
| 15 | bool "Kprobes" |
| 16 | depends on DEBUG_KERNEL |
| 17 | help |
| 18 | Kprobes allows you to trap at almost any kernel address and |
| 19 | execute a callback function. register_kprobe() establishes |
| 20 | a probepoint and specifies the callback. Kprobes is useful |
| 21 | for kernel debugging, non-intrusive instrumentation and testing. |
| 22 | If in doubt, say "N". |
| 23 | |
| 24 | config DEBUG_DCFLUSH |
| 25 | bool "D-cache flush debugging" |
| 26 | depends on DEBUG_KERNEL |
| 27 | |
| 28 | config STACK_DEBUG |
| 29 | depends on DEBUG_KERNEL |
| 30 | bool "Stack Overflow Detection Support" |
| 31 | |
| 32 | config DEBUG_BOOTMEM |
| 33 | depends on DEBUG_KERNEL |
| 34 | bool "Debug BOOTMEM initialization" |
| 35 | |
David S. Miller | 5642530 | 2005-09-25 16:46:57 -0700 | [diff] [blame] | 36 | config DEBUG_PAGEALLOC |
| 37 | bool "Page alloc debugging" |
| 38 | depends on DEBUG_KERNEL && !SOFTWARE_SUSPEND |
| 39 | help |
| 40 | Unmap pages from the kernel linear mapping after free_pages(). |
| 41 | This results in a large slowdown, but helps to find certain types |
| 42 | of memory corruptions. |
| 43 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 44 | config MCOUNT |
| 45 | bool |
| 46 | depends on STACK_DEBUG |
| 47 | default y |
| 48 | |
| 49 | config FRAME_POINTER |
| 50 | bool |
| 51 | depends on MCOUNT |
| 52 | default y |
| 53 | |
| 54 | endmenu |