mbox series

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

Message ID 20210111124014.182957-1-wangkefeng.wang@huawei.com (mailing list archive)
Headers show
Series riscv: improve the stacktrace report | expand

Message

Kefeng Wang Jan. 11, 2021, 12:40 p.m. UTC
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(-)

Comments

Palmer Dabbelt Jan. 14, 2021, 5:17 a.m. UTC | #1
On Mon, 11 Jan 2021 04:40:11 PST (-0800), wangkefeng.wang@huawei.com wrote:
> 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(-)

Thanks, these are on for-next.