aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile4
-rw-r--r--lib/Kconfig.debug13
2 files changed, 17 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index dceb4f19f786..e1dfb90c6092 100644
--- a/Makefile
+++ b/Makefile
@@ -557,6 +557,10 @@ KBUILD_CFLAGS += -g
557KBUILD_AFLAGS += -gdwarf-2 557KBUILD_AFLAGS += -gdwarf-2
558endif 558endif
559 559
560ifdef CONFIG_DEBUG_INFO_REDUCED
561KBUILD_CFLAGS += $(call cc-option, -femit-struct-debug-baseonly)
562endif
563
560ifdef CONFIG_FUNCTION_TRACER 564ifdef CONFIG_FUNCTION_TRACER
561KBUILD_CFLAGS += -pg 565KBUILD_CFLAGS += -pg
562endif 566endif
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug
index 25c3ed594c54..2af5d84ec824 100644
--- a/lib/Kconfig.debug
+++ b/lib/Kconfig.debug
@@ -595,6 +595,19 @@ config DEBUG_INFO
595 595
596 If unsure, say N. 596 If unsure, say N.
597 597
598config DEBUG_INFO_REDUCED
599 bool "Reduce debugging information"
600 depends on DEBUG_INFO
601 help
602 If you say Y here gcc is instructed to generate less debugging
603 information for structure types. This means that tools that
604 need full debugging information (like kgdb or systemtap) won't
605 be happy. But if you merely need debugging information to
606 resolve line numbers there is no loss. Advantage is that
607 build directory object sizes shrink dramatically over a full
608 DEBUG_INFO build and compile times are reduced too.
609 Only works with newer gcc versions.
610
598config DEBUG_VM 611config DEBUG_VM
599 bool "Debug VM" 612 bool "Debug VM"
600 depends on DEBUG_KERNEL 613 depends on DEBUG_KERNEL