lkml.org 
[lkml]   [2012]   [Feb]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 1/5] unwind, kconfig: Adding UNWIND* options
Date
Adding following config options:

CONFIG_UNWIND
- governs wether the unwind code is compiled in

CONFIG_UNWIND_EH_FRAME
- source of unwind data - eh_frame_hdr/eh_frame

CONFIG_UNWIND_DEBUG_FRAME
- source of unwind data - .debug.frame
---
arch/x86/Kconfig.debug | 2 ++
kernel/Kconfig.unwind | 26 ++++++++++++++++++++++++++
2 files changed, 28 insertions(+), 0 deletions(-)
create mode 100644 kernel/Kconfig.unwind

diff --git a/arch/x86/Kconfig.debug b/arch/x86/Kconfig.debug
index e46c214..4705ba1 100644
--- a/arch/x86/Kconfig.debug
+++ b/arch/x86/Kconfig.debug
@@ -299,4 +299,6 @@ config DEBUG_NMI_SELFTEST

If unsure, say N.

+source "kernel/Kconfig.unwind"
+
endmenu
diff --git a/kernel/Kconfig.unwind b/kernel/Kconfig.unwind
new file mode 100644
index 0000000..273dc68
--- /dev/null
+++ b/kernel/Kconfig.unwind
@@ -0,0 +1,26 @@
+
+config UNWIND
+ bool "Use compiler information to display backtrace dump"
+ ---help---
+ Adding code allowing to use compiled debug information
+ for stack unwinding (results in MUCH bigger kernel
+ and many more panics).
+
+choice
+ prompt "Unwind information source"
+ default UNWIND_EH_FRAME
+ depends on UNWIND
+ ---help---
+ source of unwind information
+
+config UNWIND_EH_FRAME
+ bool "exception frame section"
+ ---help---
+ eh_frame section
+
+config UNWIND_DEBUG_FRAME
+ bool "NOT IMPLEMENTED debug frame section"
+ ---help---
+ debug_frame section
+
+endchoice
--
1.7.1


\
 
 \ /
  Last update: 2012-02-10 12:29    [W:0.049 / U:8.132 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site