linux/arch/loongarch
Qing Zhang 49232773d8 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>
2022-08-12 13:10:11 +08:00
..
boot
configs LoongArch: Add Loongson-3 default config file 2022-06-03 20:09:29 +08:00
include LoongArch: Add guess unwinder support 2022-08-12 13:10:11 +08:00
kernel LoongArch: Add guess unwinder support 2022-08-12 13:10:11 +08:00
lib LoongArch: Remove useless header compiler.h 2022-07-29 18:22:32 +08:00
mm LoongArch: Re-tab the assembly files 2022-07-29 18:22:32 +08:00
pci LoongArch: Add PCI controller support 2022-08-12 13:10:11 +08:00
vdso LoongArch: Add vDSO syscall __vdso_getcpu() 2022-08-12 13:10:11 +08:00
Kbuild
Kconfig LoongArch: Add PCI controller support 2022-08-12 13:10:11 +08:00
Kconfig.debug LoongArch: Add guess unwinder support 2022-08-12 13:10:11 +08:00
Makefile LoongArch: Add PCI controller support 2022-08-12 13:10:11 +08:00