summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorAndrew Boie <andrew.p.boie@intel.com>2016-06-14 10:55:57 -0700
committerInaky Perez-Gonzalez <inaky.perez-gonzalez@intel.com>2016-06-16 18:15:59 +0000
commit63cea248960d4551d5d88edc58963a8d9186cda5 (patch)
tree6eb149fa38c404b8b933e7317e386634f9bdd52c /misc
parentc66ed19dea13286573ba683715cf0cbc57a84a74 (diff)
misc: add config to omit frame pointer
Change-Id: Ia69c14addded7563a24f15d4a3408fcc2c8e673a Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
Diffstat (limited to 'misc')
-rw-r--r--misc/Kconfig14
1 files changed, 14 insertions, 0 deletions
diff --git a/misc/Kconfig b/misc/Kconfig
index aa38f77f7..0aa789849 100644
--- a/misc/Kconfig
+++ b/misc/Kconfig
@@ -229,6 +229,20 @@ config DEBUG_TRACING_KERNEL_OBJECTS
This option enable the feature for tracing kernel objects. This option
is for debug purposes and increase the memory footprint of the kernel.
+config OMIT_FRAME_POINTER
+ bool
+ prompt "Omit frame pointer"
+ default n
+ help
+ Prevent the compiler from putting the stack frame pointer into a
+ register. Saves a few instructions in function prologues/epilogues and
+ frees up a register for general-purpose use, which can provide good
+ performance improvements on register-constrained architectures like
+ x86. Omitting frame pointers impedes debugging as local variables are
+ harder to locate and it is much more difficult to produce a stack
+ trace. Recommended only for production builds which do not need to be
+ debugged.
+
source "misc/debug/Kconfig"
endmenu