[PATCH RESEND 0/3] riscv: improve the stacktrace report

Kefeng Wang wangkefeng.wang at huawei.com
Mon Jan 11 07:40:11 EST 2021


Make show_regs() to dump the stack to improve riscv crash report,
and also fix the wrong value when stack unwind if FRAME_POINTER
enabled.

Chen Huang (1):
  riscv/stacktrace: Fix stack output without ra on the stack top

Kefeng Wang (2):
  riscv: Add dump stack in show_regs
  riscv: Improve __show_regs

 arch/riscv/include/asm/bug.h        |  1 +
 arch/riscv/include/asm/stacktrace.h |  2 ++
 arch/riscv/kernel/process.c         | 16 ++++++++++++++--
 arch/riscv/kernel/stacktrace.c      | 22 +++++++++++++++++-----
 arch/riscv/kernel/traps.c           |  3 ++-
 5 files changed, 36 insertions(+), 8 deletions(-)

-- 
2.26.2




More information about the linux-riscv mailing list