summaryrefslogtreecommitdiffstats
path: root/arch/loongarch/Kconfig.debug
diff options
context:
space:
mode:
authorQing Zhang <zhangqing@loongson.cn>2022-08-06 16:10:02 +0800
committerHuacai Chen <chenhuacai@loongson.cn>2022-08-12 13:10:11 +0800
commit49232773d8233ed70c4998851bc84e465fc1c788 (patch)
treeeb361dbb849c68b079022e025e755cdb17a1f10c /arch/loongarch/Kconfig.debug
parentdce6098b22d58e5b646b1c67174c53f5a6a05605 (diff)
downloadlinux-49232773d8233ed70c4998851bc84e465fc1c788.tar.gz
linux-49232773d8233ed70c4998851bc84e465fc1c788.tar.bz2
linux-49232773d8233ed70c4998851bc84e465fc1c788.zip
LoongArch: Add guess unwinder support
Name "guess unwinder" comes from x86, it scans the stack and reports every kernel text address it finds. Unwinders can be used by dump_stack() and other stacktrace functions. Three stages when we do unwind, 1) unwind_start(), the prapare of unwinding, fill unwind_state. 2) unwind_done(), judge whether the unwind process is finished or not. 3) unwind_next_frame(), unwind the next frame. Add get_stack_info() to get stack info. At present we have irq stack and task stack. The next_sp is the key info between two types of stacks. Dividing unwinder helps to add new unwinders in the future. Signed-off-by: Qing Zhang <zhangqing@loongson.cn> Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
Diffstat (limited to 'arch/loongarch/Kconfig.debug')
-rw-r--r--arch/loongarch/Kconfig.debug9
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/loongarch/Kconfig.debug b/arch/loongarch/Kconfig.debug
index e69de29bb2d1..68634d4fa27b 100644
--- a/arch/loongarch/Kconfig.debug
+++ b/arch/loongarch/Kconfig.debug
@@ -0,0 +1,9 @@
+config UNWINDER_GUESS
+ bool "Guess unwinder"
+ help
+ This option enables the "guess" unwinder for unwinding kernel stack
+ traces. It scans the stack and reports every kernel text address it
+ finds. Some of the addresses it reports may be incorrect.
+
+ While this option often produces false positives, it can still be
+ useful in many cases.