https://github.com/torvalds/linux
Revision 49232773d8233ed70c4998851bc84e465fc1c788 authored by Qing Zhang on 06 August 2022, 08:10:02 UTC, committed by Huacai Chen on 12 August 2022, 05:10:11 UTC
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>
1 parent dce6098
History
Tip revision: 49232773d8233ed70c4998851bc84e465fc1c788 authored by Qing Zhang on 06 August 2022, 08:10:02 UTC
LoongArch: Add guess unwinder support
Tip revision: 4923277
File Mode Size
Kconfig -rw-r--r-- 71.9 KB
Makefile -rw-r--r-- 1.2 KB
calibrate.c -rw-r--r-- 8.6 KB
do_mounts.c -rw-r--r-- 15.5 KB
do_mounts.h -rw-r--r-- 908 bytes
do_mounts_initrd.c -rw-r--r-- 3.9 KB
do_mounts_rd.c -rw-r--r-- 7.7 KB
init_task.c -rw-r--r-- 6.1 KB
initramfs.c -rw-r--r-- 17.2 KB
main.c -rw-r--r-- 39.6 KB
noinitramfs.c -rw-r--r-- 862 bytes
version.c -rw-r--r-- 1.1 KB

back to top