diff options
author | Catalin Marinas <catalin.marinas@arm.com> | 2009-02-12 07:56:34 -0500 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2009-02-19 06:30:18 -0500 |
commit | adf8b37bafc1495393201a2ae4235846371870d0 (patch) | |
tree | b1f8a3df5ec6c94b1a90fecc28894a1d6241163d /arch/arm/Kconfig.debug | |
parent | c4c5716e16c4ee971dec446a7e4801fbb8a1066b (diff) |
[ARM] 5386/2: unwind: Add Makefile and Kconfig entries for ARM stack unwinding
This patch also makes the frame pointer default to y only if
!ARM_UNWIND. LOCKDEP no longer selects FRAME_POINTER if ARM_UNWIND is
enabled.
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/Kconfig.debug')
-rw-r--r-- | arch/arm/Kconfig.debug | 21 |
1 files changed, 16 insertions, 5 deletions
diff --git a/arch/arm/Kconfig.debug b/arch/arm/Kconfig.debug index 192ee01a9ba2..35f8db35f442 100644 --- a/arch/arm/Kconfig.debug +++ b/arch/arm/Kconfig.debug | |||
@@ -2,18 +2,29 @@ menu "Kernel hacking" | |||
2 | 2 | ||
3 | source "lib/Kconfig.debug" | 3 | source "lib/Kconfig.debug" |
4 | 4 | ||
5 | # RMK wants arm kernels compiled with frame pointers so hardwire this to y. | 5 | # 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 | 6 | # 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 | 7 | # traces, you can get a slightly smaller kernel by setting this option to |
8 | # n, but then RMK will have to kill you ;). | 8 | # n, but then RMK will have to kill you ;). |
9 | config FRAME_POINTER | 9 | config FRAME_POINTER |
10 | bool | 10 | bool |
11 | default y | 11 | default y if !ARM_UNWIND |
12 | help | 12 | help |
13 | If you say N here, the resulting kernel will be slightly smaller and | 13 | If you say N here, the resulting kernel will be slightly smaller and |
14 | faster. However, when a problem occurs with the kernel, the | 14 | faster. However, if neither FRAME_POINTER nor ARM_UNWIND are enabled, |
15 | information that is reported is severely limited. Most people | 15 | when a problem occurs with the kernel, the information that is |
16 | should say Y here. | 16 | reported is severely limited. |
17 | |||
18 | config ARM_UNWIND | ||
19 | bool "Enable stack unwinding support" | ||
20 | depends on AEABI && EXPERIMENTAL | ||
21 | default y | ||
22 | help | ||
23 | This option enables stack unwinding support in the kernel | ||
24 | using the information automatically generated by the | ||
25 | compiler. The resulting kernel image is slightly bigger but | ||
26 | the performance is not affected. Currently, this feature | ||
27 | only works with EABI compilers. If unsure say Y. | ||
17 | 28 | ||
18 | config DEBUG_USER | 29 | config DEBUG_USER |
19 | bool "Verbose user fault messages" | 30 | bool "Verbose user fault messages" |