18c2ecf20Sopenharmony_cichoice
28c2ecf20Sopenharmony_ci	prompt "Choose kernel unwinder"
38c2ecf20Sopenharmony_ci	default UNWINDER_PROLOGUE if KALLSYMS
48c2ecf20Sopenharmony_ci	help
58c2ecf20Sopenharmony_ci	  This determines which method will be used for unwinding kernel stack
68c2ecf20Sopenharmony_ci	  traces for panics, oopses, bugs, warnings, perf, /proc/<pid>/stack,
78c2ecf20Sopenharmony_ci	  livepatch, lockdep, and more.
88c2ecf20Sopenharmony_ci
98c2ecf20Sopenharmony_ciconfig UNWINDER_GUESS
108c2ecf20Sopenharmony_ci	bool "Guess unwinder"
118c2ecf20Sopenharmony_ci	help
128c2ecf20Sopenharmony_ci	  This option enables the "guess" unwinder for unwinding kernel stack
138c2ecf20Sopenharmony_ci	  traces.  It scans the stack and reports every kernel text address it
148c2ecf20Sopenharmony_ci	  finds.  Some of the addresses it reports may be incorrect.
158c2ecf20Sopenharmony_ci
168c2ecf20Sopenharmony_ciconfig UNWINDER_PROLOGUE
178c2ecf20Sopenharmony_ci	bool "Prologue unwinder"
188c2ecf20Sopenharmony_ci	depends on KALLSYMS
198c2ecf20Sopenharmony_ci	help
208c2ecf20Sopenharmony_ci	  This option enables the "prologue" unwinder for unwinding kernel stack
218c2ecf20Sopenharmony_ci	  traces.  It unwind the stack frame based on prologue code analyze.  Symbol
228c2ecf20Sopenharmony_ci	  information is needed, at least the address and length of each function.
238c2ecf20Sopenharmony_ci	  Some of the addresses it reports may be incorrect.
248c2ecf20Sopenharmony_ci
258c2ecf20Sopenharmony_ciendchoice
268c2ecf20Sopenharmony_ci
278c2ecf20Sopenharmony_ciconfig DEBUG_ZBOOT
288c2ecf20Sopenharmony_ci	bool "Enable compressed kernel support debugging"
298c2ecf20Sopenharmony_ci	depends on DEBUG_KERNEL && SYS_SUPPORTS_ZBOOT
308c2ecf20Sopenharmony_ci	default n
318c2ecf20Sopenharmony_ci	help
328c2ecf20Sopenharmony_ci	  If you want to add compressed kernel support to a new board, and the
338c2ecf20Sopenharmony_ci	  board supports uart16550 compatible serial port, please select
348c2ecf20Sopenharmony_ci	  SYS_SUPPORTS_ZBOOT_UART16550 for your board and enable this option to
358c2ecf20Sopenharmony_ci	  debug it.
368c2ecf20Sopenharmony_ci
378c2ecf20Sopenharmony_ci	  If your board doesn't support uart16550 compatible serial port, you
388c2ecf20Sopenharmony_ci	  can try to select SYS_SUPPORTS_ZBOOT and use the other methods to
398c2ecf20Sopenharmony_ci	  debug it. for example, add a new serial port support just as
408c2ecf20Sopenharmony_ci	  arch/loongarch/boot/compressed/uart-16550.c does.
418c2ecf20Sopenharmony_ci
428c2ecf20Sopenharmony_ci	  After the compressed kernel support works, please disable this option
438c2ecf20Sopenharmony_ci	  to reduce the kernel image size and speed up the booting procedure a
448c2ecf20Sopenharmony_ci	  little.
458c2ecf20Sopenharmony_ci
468c2ecf20Sopenharmony_ciconfig SPINLOCK_TEST
478c2ecf20Sopenharmony_ci	tristate "Enable spinlock timing tests in debugfs"
488c2ecf20Sopenharmony_ci	default n
498c2ecf20Sopenharmony_ci	help
508c2ecf20Sopenharmony_ci	  Add several files to the debugfs to test spinlock speed.
51