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