-
由 Qing Zhang 提交于
mainline inclusion from mainline-v6.0-rc1 commit 93a4fa62 category: feature bugzilla: https://gitee.com/openeuler/kernel/issues/I5OHOB CVE: NA -------------------------------- 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: NQing Zhang <zhangqing@loongson.cn> Signed-off-by: NHuacai Chen <chenhuacai@loongson.cn>
3f5e01c1