Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | menu "Kernel hacking" |
| 2 | |
| 3 | source "lib/Kconfig.debug" |
| 4 | |
Arjan van de Ven | 67df197 | 2006-01-06 00:12:04 -0800 | [diff] [blame] | 5 | config DEBUG_RODATA |
| 6 | bool "Write protect kernel read-only data structures" |
| 7 | depends on DEBUG_KERNEL |
| 8 | help |
| 9 | Mark the kernel read-only data as write-protected in the pagetables, |
| 10 | in order to catch accidental (and incorrect) writes to such const data. |
| 11 | This option may have a slight performance impact because a portion |
| 12 | of the kernel code won't be covered by a 2MB TLB anymore. |
| 13 | If in doubt, say "N". |
| 14 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 15 | config IOMMU_DEBUG |
Andi Kleen | a813ce4 | 2006-06-26 13:57:22 +0200 | [diff] [blame] | 16 | depends on IOMMU && DEBUG_KERNEL |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 17 | bool "Enable IOMMU debugging" |
| 18 | help |
| 19 | Force the IOMMU to on even when you have less than 4GB of |
| 20 | memory and add debugging code. On overflow always panic. And |
| 21 | allow to enable IOMMU leak tracing. Can be disabled at boot |
| 22 | time with iommu=noforce. This will also enable scatter gather |
| 23 | list merging. Currently not recommended for production |
| 24 | code. When you use it make sure you have a big enough |
| 25 | IOMMU/AGP aperture. Most of the options enabled by this can |
| 26 | be set more finegrained using the iommu= command line |
| 27 | options. See Documentation/x86_64/boot-options.txt for more |
| 28 | details. |
| 29 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 30 | config IOMMU_LEAK |
| 31 | bool "IOMMU leak tracing" |
| 32 | depends on DEBUG_KERNEL |
| 33 | depends on IOMMU_DEBUG |
| 34 | help |
| 35 | Add a simple leak tracer to the IOMMU code. This is useful when you |
| 36 | are debugging a buggy device driver that leaks IOMMU mappings. |
| 37 | |
Eric Sandeen | 4961f10 | 2006-06-26 14:00:05 +0200 | [diff] [blame] | 38 | config DEBUG_STACKOVERFLOW |
| 39 | bool "Check for stack overflows" |
| 40 | depends on DEBUG_KERNEL |
| 41 | help |
| 42 | This option will cause messages to be printed if free stack space |
| 43 | drops below a certain limit. |
| 44 | |
Eric Sandeen | 8501a2f | 2006-06-26 14:00:08 +0200 | [diff] [blame^] | 45 | config DEBUG_STACK_USAGE |
| 46 | bool "Stack utilization instrumentation" |
| 47 | depends on DEBUG_KERNEL |
| 48 | help |
| 49 | Enables the display of the minimum amount of free stack which each |
| 50 | task has ever had available in the sysrq-T and sysrq-P debug output. |
| 51 | |
| 52 | This option will slow down process creation somewhat. |
| 53 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 54 | #config X86_REMOTE_DEBUG |
| 55 | # bool "kgdb debugging stub" |
| 56 | |
| 57 | endmenu |