diff options
author | Ingo Molnar <mingo@elte.hu> | 2009-01-07 05:05:10 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-01-07 05:18:59 -0500 |
commit | da4276b8299a6544dc41ac2485d3ffca5811b3fb (patch) | |
tree | 8225c30e900cadb4b5dee86a4f70b189cceb3c12 | |
parent | 0936912274af78a21fd8d54c3f94a50a285cf7f9 (diff) |
x86: offer frame pointers in all build modes
CONFIG_FRAME_POINTERS=y results in much better debug info for the
kernel (clear and precise backtraces), with the only drawback being
a ~1% increase in kernel size.
So offer it unconditionally and enable it by default.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
-rw-r--r-- | arch/x86/Kconfig | 1 | ||||
-rw-r--r-- | lib/Kconfig.debug | 16 |
2 files changed, 9 insertions, 8 deletions
diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index 862adb9bf0d..73f7fe8fd4d 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig | |||
@@ -27,6 +27,7 @@ config X86 | |||
27 | select HAVE_IOREMAP_PROT | 27 | select HAVE_IOREMAP_PROT |
28 | select HAVE_KPROBES | 28 | select HAVE_KPROBES |
29 | select ARCH_WANT_OPTIONAL_GPIOLIB | 29 | select ARCH_WANT_OPTIONAL_GPIOLIB |
30 | select ARCH_WANT_FRAME_POINTERS | ||
30 | select HAVE_KRETPROBES | 31 | select HAVE_KRETPROBES |
31 | select HAVE_FTRACE_MCOUNT_RECORD | 32 | select HAVE_FTRACE_MCOUNT_RECORD |
32 | select HAVE_DYNAMIC_FTRACE | 33 | select HAVE_DYNAMIC_FTRACE |
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug index 2e75478e9c6..2d0f1449017 100644 --- a/lib/Kconfig.debug +++ b/lib/Kconfig.debug | |||
@@ -566,14 +566,14 @@ config DEBUG_NOTIFIERS | |||
566 | config FRAME_POINTER | 566 | config FRAME_POINTER |
567 | bool "Compile the kernel with frame pointers" | 567 | bool "Compile the kernel with frame pointers" |
568 | depends on DEBUG_KERNEL && \ | 568 | depends on DEBUG_KERNEL && \ |
569 | (X86 || CRIS || M68K || M68KNOMMU || FRV || UML || S390 || \ | 569 | (CRIS || M68K || M68KNOMMU || FRV || UML || S390 || \ |
570 | AVR32 || SUPERH || BLACKFIN || MN10300) | 570 | AVR32 || SUPERH || BLACKFIN || MN10300) || \ |
571 | default y if DEBUG_INFO && UML | 571 | ARCH_WANT_FRAME_POINTERS |
572 | help | 572 | default y if (DEBUG_INFO && UML) || ARCH_WANT_FRAME_POINTERS |
573 | If you say Y here the resulting kernel image will be slightly larger | 573 | help |
574 | and slower, but it might give very useful debugging information on | 574 | If you say Y here the resulting kernel image will be slightly |
575 | some architectures or if you use external debuggers. | 575 | larger and slower, but it gives very useful debugging information |
576 | If you don't debug the kernel, you can say N. | 576 | in case of kernel bugs. (precise oopses/stacktraces/warnings) |
577 | 577 | ||
578 | config BOOT_PRINTK_DELAY | 578 | config BOOT_PRINTK_DELAY |
579 | bool "Delay each boot printk message by N milliseconds" | 579 | bool "Delay each boot printk message by N milliseconds" |