3 config TRACE_IRQFLAGS_SUPPORT
6 source "lib/Kconfig.debug"
9 bool "Early printk" if EMBEDDED && DEBUG_KERNEL
13 Write kernel log output directly into the VGA buffer or to a serial
16 This is useful for kernel debugging when your machine crashes very
17 early before the console code is initialized. For normal operation
18 it is not recommended because it looks ugly and doesn't cooperate
19 with klogd/syslogd or the X server. You should normally N here,
20 unless you want to debug such a crash.
22 config DEBUG_STACKOVERFLOW
23 bool "Check for stack overflows"
24 depends on DEBUG_KERNEL
26 This option will cause messages to be printed if free stack space
27 drops below a certain limit.
29 config DEBUG_STACK_USAGE
30 bool "Stack utilization instrumentation"
31 depends on DEBUG_KERNEL
33 Enables the display of the minimum amount of free stack which each
34 task has ever had available in the sysrq-T and sysrq-P debug output.
36 This option will slow down process creation somewhat.
38 comment "Page alloc debug is incompatible with Software Suspend on i386"
39 depends on DEBUG_KERNEL && HIBERNATION
42 config DEBUG_PAGEALLOC
43 bool "Debug page memory allocations"
44 depends on DEBUG_KERNEL && !HIBERNATION && !HUGETLBFS
47 Unmap pages from the kernel linear mapping after free_pages().
48 This results in a large slowdown, but helps to find certain types
49 of memory corruptions.
52 bool "Write protect kernel read-only data structures"
53 depends on DEBUG_KERNEL
55 Mark the kernel read-only data as write-protected in the pagetables,
56 in order to catch accidental (and incorrect) writes to such const
57 data. This option may have a slight performance impact because a
58 portion of the kernel code won't be covered by a 2MB TLB anymore.
62 bool "Use 4Kb for kernel stacks instead of 8Kb"
63 depends on DEBUG_KERNEL
66 If you say Y here the kernel will use a 4Kb stacksize for the
67 kernel stack attached to each process/thread. This facilitates
68 running more threads on a system and also reduces the pressure
69 on the VM subsystem for higher order allocations. This option
70 will also use IRQ stacks to compensate for the reduced stackspace.
72 config X86_FIND_SMP_CONFIG
74 depends on X86_LOCAL_APIC || X86_VOYAGER
79 depends on X86_LOCAL_APIC && !X86_VISWS
84 bool "Enable doublefault exception handler" if EMBEDDED
87 This option allows trapping of rare doublefault exceptions that
88 would otherwise cause a system to silently reboot. Disabling this
89 option saves about 4k and might cause you much additional grey
93 bool "Enable IOMMU debugging"
94 depends on IOMMU && DEBUG_KERNEL
97 Force the IOMMU to on even when you have less than 4GB of
98 memory and add debugging code. On overflow always panic. And
99 allow to enable IOMMU leak tracing. Can be disabled at boot
100 time with iommu=noforce. This will also enable scatter gather
101 list merging. Currently not recommended for production
102 code. When you use it make sure you have a big enough
103 IOMMU/AGP aperture. Most of the options enabled by this can
104 be set more finegrained using the iommu= command line
105 options. See Documentation/x86_64/boot-options.txt for more
109 bool "IOMMU leak tracing"
110 depends on DEBUG_KERNEL
111 depends on IOMMU_DEBUG
113 Add a simple leak tracer to the IOMMU code. This is useful when you
114 are debugging a buggy device driver that leaks IOMMU mappings.
116 #config X86_REMOTE_DEBUG
117 # bool "kgdb debugging stub"