diff options
Diffstat (limited to 'arch/arm/Kconfig.debug')
-rw-r--r-- | arch/arm/Kconfig.debug | 41 |
1 files changed, 21 insertions, 20 deletions
diff --git a/arch/arm/Kconfig.debug b/arch/arm/Kconfig.debug index 91344af75f39..81cbe40c159c 100644 --- a/arch/arm/Kconfig.debug +++ b/arch/arm/Kconfig.debug | |||
@@ -2,6 +2,20 @@ menu "Kernel hacking" | |||
2 | 2 | ||
3 | source "lib/Kconfig.debug" | 3 | source "lib/Kconfig.debug" |
4 | 4 | ||
5 | config STRICT_DEVMEM | ||
6 | bool "Filter access to /dev/mem" | ||
7 | depends on MMU | ||
8 | ---help--- | ||
9 | If this option is disabled, you allow userspace (root) access to all | ||
10 | of memory, including kernel and userspace memory. Accidental | ||
11 | access to this is obviously disastrous, but specific access can | ||
12 | be used by people debugging the kernel. | ||
13 | |||
14 | If this option is switched on, the /dev/mem file only allows | ||
15 | userspace access to memory mapped peripherals. | ||
16 | |||
17 | If in doubt, say Y. | ||
18 | |||
5 | # RMK wants arm kernels compiled with frame pointers or stack unwinding. | 19 | # RMK wants arm kernels compiled with frame pointers or stack unwinding. |
6 | # If you know what you are doing and are willing to live without stack | 20 | # If you know what you are doing and are willing to live without stack |
7 | # traces, you can get a slightly smaller kernel by setting this option to | 21 | # traces, you can get a slightly smaller kernel by setting this option to |
@@ -9,7 +23,7 @@ source "lib/Kconfig.debug" | |||
9 | config FRAME_POINTER | 23 | config FRAME_POINTER |
10 | bool | 24 | bool |
11 | depends on !THUMB2_KERNEL | 25 | depends on !THUMB2_KERNEL |
12 | default y if !ARM_UNWIND | 26 | default y if !ARM_UNWIND || FUNCTION_GRAPH_TRACER |
13 | help | 27 | help |
14 | If you say N here, the resulting kernel will be slightly smaller and | 28 | If you say N here, the resulting kernel will be slightly smaller and |
15 | faster. However, if neither FRAME_POINTER nor ARM_UNWIND are enabled, | 29 | faster. However, if neither FRAME_POINTER nor ARM_UNWIND are enabled, |
@@ -17,7 +31,7 @@ config FRAME_POINTER | |||
17 | reported is severely limited. | 31 | reported is severely limited. |
18 | 32 | ||
19 | config ARM_UNWIND | 33 | config ARM_UNWIND |
20 | bool "Enable stack unwinding support" | 34 | bool "Enable stack unwinding support (EXPERIMENTAL)" |
21 | depends on AEABI && EXPERIMENTAL | 35 | depends on AEABI && EXPERIMENTAL |
22 | default y | 36 | default y |
23 | help | 37 | help |
@@ -27,6 +41,11 @@ config ARM_UNWIND | |||
27 | the performance is not affected. Currently, this feature | 41 | the performance is not affected. Currently, this feature |
28 | only works with EABI compilers. If unsure say Y. | 42 | only works with EABI compilers. If unsure say Y. |
29 | 43 | ||
44 | config OLD_MCOUNT | ||
45 | bool | ||
46 | depends on FUNCTION_TRACER && FRAME_POINTER | ||
47 | default y | ||
48 | |||
30 | config DEBUG_USER | 49 | config DEBUG_USER |
31 | bool "Verbose user fault messages" | 50 | bool "Verbose user fault messages" |
32 | help | 51 | help |
@@ -44,24 +63,6 @@ config DEBUG_USER | |||
44 | 8 - SIGSEGV faults | 63 | 8 - SIGSEGV faults |
45 | 16 - SIGBUS faults | 64 | 16 - SIGBUS faults |
46 | 65 | ||
47 | config DEBUG_ERRORS | ||
48 | bool "Verbose kernel error messages" | ||
49 | depends on DEBUG_KERNEL | ||
50 | help | ||
51 | This option controls verbose debugging information which can be | ||
52 | printed when the kernel detects an internal error. This debugging | ||
53 | information is useful to kernel hackers when tracking down problems, | ||
54 | but mostly meaningless to other people. It's safe to say Y unless | ||
55 | you are concerned with the code size or don't want to see these | ||
56 | messages. | ||
57 | |||
58 | config DEBUG_STACK_USAGE | ||
59 | bool "Enable stack utilization instrumentation" | ||
60 | depends on DEBUG_KERNEL | ||
61 | help | ||
62 | Enables the display of the minimum amount of free stack which each | ||
63 | task has ever had available in the sysrq-T output. | ||
64 | |||
65 | # These options are only for real kernel hackers who want to get their hands dirty. | 66 | # These options are only for real kernel hackers who want to get their hands dirty. |
66 | config DEBUG_LL | 67 | config DEBUG_LL |
67 | bool "Kernel low-level debugging functions" | 68 | bool "Kernel low-level debugging functions" |