xref: /openbmc/linux/arch/loongarch/Kconfig.debug (revision 4f2c0a4acffbec01079c28f839422e64ddeff004)
1*49aef111SQing Zhangchoice
2*49aef111SQing Zhang	prompt "Choose kernel unwinder"
3*49aef111SQing Zhang	default UNWINDER_PROLOGUE if KALLSYMS
4*49aef111SQing Zhang	help
5*49aef111SQing Zhang	  This determines which method will be used for unwinding kernel stack
6*49aef111SQing Zhang	  traces for panics, oopses, bugs, warnings, perf, /proc/<pid>/stack,
7*49aef111SQing Zhang	  lockdep, and more.
8*49aef111SQing Zhang
949232773SQing Zhangconfig UNWINDER_GUESS
1049232773SQing Zhang	bool "Guess unwinder"
1149232773SQing Zhang	help
1249232773SQing Zhang	  This option enables the "guess" unwinder for unwinding kernel stack
1349232773SQing Zhang	  traces.  It scans the stack and reports every kernel text address it
1449232773SQing Zhang	  finds.  Some of the addresses it reports may be incorrect.
1549232773SQing Zhang
1649232773SQing Zhang	  While this option often produces false positives, it can still be
1749232773SQing Zhang	  useful in many cases.
18*49aef111SQing Zhang
19*49aef111SQing Zhangconfig UNWINDER_PROLOGUE
20*49aef111SQing Zhang	bool "Prologue unwinder"
21*49aef111SQing Zhang	depends on KALLSYMS
22*49aef111SQing Zhang	help
23*49aef111SQing Zhang	  This option enables the "prologue" unwinder for unwinding kernel stack
24*49aef111SQing Zhang	  traces.  It unwind the stack frame based on prologue code analyze.  Symbol
25*49aef111SQing Zhang	  information is needed, at least the address and length of each function.
26*49aef111SQing Zhang	  Some of the addresses it reports may be incorrect (but better than the
27*49aef111SQing Zhang	  Guess unwinder).
28*49aef111SQing Zhang
29*49aef111SQing Zhangendchoice
30