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