diff options
-rw-r--r-- | arch/i386/Kconfig | 2 | ||||
-rw-r--r-- | arch/x86/Kconfig.debug (renamed from arch/i386/Kconfig.debug) | 51 | ||||
-rw-r--r-- | arch/x86_64/Kconfig | 2 | ||||
-rw-r--r-- | arch/x86_64/Kconfig.debug | 61 |
4 files changed, 43 insertions, 73 deletions
diff --git a/arch/i386/Kconfig b/arch/i386/Kconfig index b4437ce0f973..d24e3e207ea5 100644 --- a/arch/i386/Kconfig +++ b/arch/i386/Kconfig | |||
@@ -1272,7 +1272,7 @@ source "fs/Kconfig" | |||
1272 | 1272 | ||
1273 | source "kernel/Kconfig.instrumentation" | 1273 | source "kernel/Kconfig.instrumentation" |
1274 | 1274 | ||
1275 | source "arch/i386/Kconfig.debug" | 1275 | source "arch/x86/Kconfig.debug" |
1276 | 1276 | ||
1277 | source "security/Kconfig" | 1277 | source "security/Kconfig" |
1278 | 1278 | ||
diff --git a/arch/i386/Kconfig.debug b/arch/x86/Kconfig.debug index f03531eacdfb..970b2defe7df 100644 --- a/arch/i386/Kconfig.debug +++ b/arch/x86/Kconfig.debug | |||
@@ -1,14 +1,14 @@ | |||
1 | menu "Kernel hacking" | 1 | menu "Kernel hacking" |
2 | 2 | ||
3 | config TRACE_IRQFLAGS_SUPPORT | 3 | config TRACE_IRQFLAGS_SUPPORT |
4 | bool | 4 | def_bool y |
5 | default y | ||
6 | 5 | ||
7 | source "lib/Kconfig.debug" | 6 | source "lib/Kconfig.debug" |
8 | 7 | ||
9 | config EARLY_PRINTK | 8 | config EARLY_PRINTK |
10 | bool "Early printk" if EMBEDDED && DEBUG_KERNEL | 9 | bool "Early printk" if EMBEDDED && DEBUG_KERNEL |
11 | default y | 10 | default y |
11 | depends on X86_32 | ||
12 | help | 12 | help |
13 | Write kernel log output directly into the VGA buffer or to a serial | 13 | Write kernel log output directly into the VGA buffer or to a serial |
14 | port. | 14 | port. |
@@ -37,10 +37,12 @@ config DEBUG_STACK_USAGE | |||
37 | 37 | ||
38 | comment "Page alloc debug is incompatible with Software Suspend on i386" | 38 | comment "Page alloc debug is incompatible with Software Suspend on i386" |
39 | depends on DEBUG_KERNEL && HIBERNATION | 39 | depends on DEBUG_KERNEL && HIBERNATION |
40 | depends on X86_32 | ||
40 | 41 | ||
41 | config DEBUG_PAGEALLOC | 42 | config DEBUG_PAGEALLOC |
42 | bool "Debug page memory allocations" | 43 | bool "Debug page memory allocations" |
43 | depends on DEBUG_KERNEL && !HIBERNATION && !HUGETLBFS | 44 | depends on DEBUG_KERNEL && !HIBERNATION && !HUGETLBFS |
45 | depends on X86_32 | ||
44 | help | 46 | help |
45 | Unmap pages from the kernel linear mapping after free_pages(). | 47 | Unmap pages from the kernel linear mapping after free_pages(). |
46 | This results in a large slowdown, but helps to find certain types | 48 | This results in a large slowdown, but helps to find certain types |
@@ -59,6 +61,7 @@ config DEBUG_RODATA | |||
59 | config 4KSTACKS | 61 | config 4KSTACKS |
60 | bool "Use 4Kb for kernel stacks instead of 8Kb" | 62 | bool "Use 4Kb for kernel stacks instead of 8Kb" |
61 | depends on DEBUG_KERNEL | 63 | depends on DEBUG_KERNEL |
64 | depends on X86_32 | ||
62 | help | 65 | help |
63 | If you say Y here the kernel will use a 4Kb stacksize for the | 66 | If you say Y here the kernel will use a 4Kb stacksize for the |
64 | kernel stack attached to each process/thread. This facilitates | 67 | kernel stack attached to each process/thread. This facilitates |
@@ -67,22 +70,50 @@ config 4KSTACKS | |||
67 | will also use IRQ stacks to compensate for the reduced stackspace. | 70 | will also use IRQ stacks to compensate for the reduced stackspace. |
68 | 71 | ||
69 | config X86_FIND_SMP_CONFIG | 72 | config X86_FIND_SMP_CONFIG |
70 | bool | 73 | def_bool y |
71 | depends on X86_LOCAL_APIC || X86_VOYAGER | 74 | depends on X86_LOCAL_APIC || X86_VOYAGER |
72 | default y | 75 | depends on X86_32 |
73 | 76 | ||
74 | config X86_MPPARSE | 77 | config X86_MPPARSE |
75 | bool | 78 | def_bool y |
76 | depends on X86_LOCAL_APIC && !X86_VISWS | 79 | depends on X86_LOCAL_APIC && !X86_VISWS |
77 | default y | 80 | depends on X86_32 |
78 | 81 | ||
79 | config DOUBLEFAULT | 82 | config DOUBLEFAULT |
80 | default y | 83 | default y |
81 | bool "Enable doublefault exception handler" if EMBEDDED | 84 | bool "Enable doublefault exception handler" if EMBEDDED |
85 | depends on X86_32 | ||
86 | help | ||
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 | ||
90 | hair. | ||
91 | |||
92 | config IOMMU_DEBUG | ||
93 | bool "Enable IOMMU debugging" | ||
94 | depends on IOMMU && DEBUG_KERNEL | ||
95 | depends on X86_64 | ||
82 | help | 96 | help |
83 | This option allows trapping of rare doublefault exceptions that | 97 | Force the IOMMU to on even when you have less than 4GB of |
84 | would otherwise cause a system to silently reboot. Disabling this | 98 | memory and add debugging code. On overflow always panic. And |
85 | option saves about 4k and might cause you much additional grey | 99 | allow to enable IOMMU leak tracing. Can be disabled at boot |
86 | hair. | 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 | ||
106 | details. | ||
107 | |||
108 | config IOMMU_LEAK | ||
109 | bool "IOMMU leak tracing" | ||
110 | depends on DEBUG_KERNEL | ||
111 | depends on IOMMU_DEBUG | ||
112 | help | ||
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. | ||
115 | |||
116 | #config X86_REMOTE_DEBUG | ||
117 | # bool "kgdb debugging stub" | ||
87 | 118 | ||
88 | endmenu | 119 | endmenu |
diff --git a/arch/x86_64/Kconfig b/arch/x86_64/Kconfig index 308970aa5382..e2542e5b536c 100644 --- a/arch/x86_64/Kconfig +++ b/arch/x86_64/Kconfig | |||
@@ -835,7 +835,7 @@ source fs/Kconfig | |||
835 | 835 | ||
836 | source "kernel/Kconfig.instrumentation" | 836 | source "kernel/Kconfig.instrumentation" |
837 | 837 | ||
838 | source "arch/x86_64/Kconfig.debug" | 838 | source "arch/x86/Kconfig.debug" |
839 | 839 | ||
840 | source "security/Kconfig" | 840 | source "security/Kconfig" |
841 | 841 | ||
diff --git a/arch/x86_64/Kconfig.debug b/arch/x86_64/Kconfig.debug deleted file mode 100644 index 775d211a5cf9..000000000000 --- a/arch/x86_64/Kconfig.debug +++ /dev/null | |||
@@ -1,61 +0,0 @@ | |||
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 | 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 | |||
19 | config IOMMU_DEBUG | ||
20 | depends on IOMMU && DEBUG_KERNEL | ||
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 | |||
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 | |||
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 | |||
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 | |||
58 | #config X86_REMOTE_DEBUG | ||
59 | # bool "kgdb debugging stub" | ||
60 | |||
61 | endmenu | ||