Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit da4276b8 authored by Ingo Molnar's avatar Ingo Molnar
Browse files

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: default avatarIngo Molnar <mingo@elte.hu>
parent 09369122
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -27,6 +27,7 @@ config X86
	select HAVE_IOREMAP_PROT
	select HAVE_IOREMAP_PROT
	select HAVE_KPROBES
	select HAVE_KPROBES
	select ARCH_WANT_OPTIONAL_GPIOLIB
	select ARCH_WANT_OPTIONAL_GPIOLIB
	select ARCH_WANT_FRAME_POINTERS
	select HAVE_KRETPROBES
	select HAVE_KRETPROBES
	select HAVE_FTRACE_MCOUNT_RECORD
	select HAVE_FTRACE_MCOUNT_RECORD
	select HAVE_DYNAMIC_FTRACE
	select HAVE_DYNAMIC_FTRACE
+8 −8
Original line number Original line Diff line number Diff line
@@ -566,14 +566,14 @@ config DEBUG_NOTIFIERS
config FRAME_POINTER
config FRAME_POINTER
	bool "Compile the kernel with frame pointers"
	bool "Compile the kernel with frame pointers"
	depends on DEBUG_KERNEL && \
	depends on DEBUG_KERNEL && \
		(X86 || CRIS || M68K || M68KNOMMU || FRV || UML || S390 || \
		(CRIS || M68K || M68KNOMMU || FRV || UML || S390 || \
		 AVR32 || SUPERH || BLACKFIN || MN10300)
		 AVR32 || SUPERH || BLACKFIN || MN10300) || \
	default y if DEBUG_INFO && UML
		ARCH_WANT_FRAME_POINTERS
	help
	default y if (DEBUG_INFO && UML) || ARCH_WANT_FRAME_POINTERS
	  If you say Y here the resulting kernel image will be slightly larger
	help
	  and slower, but it might give very useful debugging information on
	  If you say Y here the resulting kernel image will be slightly
	  some architectures or if you use external debuggers.
	  larger and slower, but it gives very useful debugging information
	  If you don't debug the kernel, you can say N.
	  in case of kernel bugs. (precise oopses/stacktraces/warnings)


config BOOT_PRINTK_DELAY
config BOOT_PRINTK_DELAY
	bool "Delay each boot printk message by N milliseconds"
	bool "Delay each boot printk message by N milliseconds"