-
- Downloads
LoongArch: Add STACKTRACE support
1. Use common arch_stack_walk() infrastructure to avoid duplicated code and avoid taking care of the stack storage and filtering. 2. Add sched_ra (means sched return address) and sched_cfa (means sched call frame address) to thread_info, and store them in switch_to(). 3. Add __get_wchan() implementation. Now we can print the process stack and wait channel by cat /proc/*/stack and /proc/*/wchan. Signed-off-by:Qing Zhang <zhangqing@loongson.cn> Signed-off-by:
Huacai Chen <chenhuacai@loongson.cn>
Showing
- arch/loongarch/Kconfig 5 additions, 0 deletionsarch/loongarch/Kconfig
- arch/loongarch/include/asm/processor.h 9 additions, 0 deletionsarch/loongarch/include/asm/processor.h
- arch/loongarch/include/asm/switch_to.h 9 additions, 5 deletionsarch/loongarch/include/asm/switch_to.h
- arch/loongarch/kernel/Makefile 1 addition, 0 deletionsarch/loongarch/kernel/Makefile
- arch/loongarch/kernel/asm-offsets.c 2 additions, 0 deletionsarch/loongarch/kernel/asm-offsets.c
- arch/loongarch/kernel/process.c 28 additions, 1 deletionarch/loongarch/kernel/process.c
- arch/loongarch/kernel/stacktrace.c 37 additions, 0 deletionsarch/loongarch/kernel/stacktrace.c
- arch/loongarch/kernel/switch.S 2 additions, 0 deletionsarch/loongarch/kernel/switch.S
arch/loongarch/kernel/stacktrace.c
0 → 100644
Please register or sign in to comment