summaryrefslogtreecommitdiff
path: root/arch/loongarch/include/asm/stacktrace.h
diff options
context:
space:
mode:
authorQing Zhang <zhangqing@loongson.cn>2022-08-06 16:10:04 +0800
committerHuacai Chen <chenhuacai@loongson.cn>2022-08-12 13:10:11 +0800
commit93a4fa622eb061f75f87f0cf9609ab4e69c67d01 (patch)
treed49f5b01e8a2299424b31d9344101dc5b5a561d7 /arch/loongarch/include/asm/stacktrace.h
parent49aef111e2dae176a7708b532118f33f24289248 (diff)
downloadlwn-93a4fa622eb061f75f87f0cf9609ab4e69c67d01.tar.gz
lwn-93a4fa622eb061f75f87f0cf9609ab4e69c67d01.zip
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>
Diffstat (limited to 'arch/loongarch/include/asm/stacktrace.h')
0 files changed, 0 insertions, 0 deletions