• Qing Zhang's avatar
    LoongArch: Add STACKTRACE support · 93a4fa62
    Qing Zhang authored
    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: default avatarQing Zhang <zhangqing@loongson.cn>
    Signed-off-by: default avatarHuacai Chen <chenhuacai@loongson.cn>
    93a4fa62
Kconfig 12.3 KB