[Crash-utility] Re: [PATCH 0/3] RISCV64: enhance bt command

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi, Song

On 12/14/23 13:07, devel-request@xxxxxxxxxxxxxxxxxxxxxxxxxxx wrote:
Date: Wed, 13 Dec 2023 17:45:05 +0800
From: Song Shuai<songshuaishuai@xxxxxxxxxxx>
Subject:  [PATCH 0/3] RISCV64: enhance bt command
To:k-hagio-ab@xxxxxxx,xianting.tian@xxxxxxxxxxxxxxxxx
Cc:devel@xxxxxxxxxxxxxxxxxxxxxxxxxxx, Song Shuai
	<songshuaishuai@xxxxxxxxxxx>
Message-ID:<20231213094508.693236-1-songshuaishuai@xxxxxxxxxxx>

hi,

This series enhances the bt command for RISCV64 by making bt aware of
- possible kernel and user exception frames (bt -e)
- per-cpu IRQ stacks (bt for vmcore crashed in irq stack, bt -E)
- per-cpu overflow stacks (bt for vmcore caused by kernel stack overflow)

This series is based on the "RISCV64: Fix 'bt' output when no ra on
the stack top" patch sent a few days ago. You can get them all from my Github repo:

https://github.com/sugarfillet/crash/commits/rv64-bt-enhance/

Could you please provide the patched kexec-tools(link) for riscv64?(if possible, please give the test steps)

It can help me to do some tests quickly.


Thanks.

Lianbo


The detailed test report can be found in each patch's commit-msg and
all these tests passed on the RV64 Qemu-virt and with RISC-V Linux v6.6.

Here is the abstract of these three patches:

Patch1 :
      RISCV64: Add support for 'bt -e' option
With this patch we can search the stack for possible kernel and user
     mode exception frames via 'bt -e' command.
Patch2 :
      RISCV64: Add per-cpu IRQ stacks support
This patch introduces per-cpu IRQ stacks for RISCV64 to let
     "bt" do backtrace on it and 'bt -E' search eframes on it,
     and the 'help -m' command displays the addresses of each
     per-cpu IRQ stack.
Patch3:
      RISCV64: Add per-cpu overflow stacks support
The patch introduces per-cpu overflow stacks for RISCV64 to let
     "bt" do backtrace on it and the 'help -m' command dispalys the
     addresss of each per-cpu overflow stack.

Song Shuai (3):
    RISCV64: Add support for 'bt -e' option
    RISCV64: Add per-cpu IRQ stacks support
    RISCV64: Add per-cpu overflow stacks support

  defs.h    |  30 +++-
  help.c    |   2 +-
  riscv64.c | 492 +++++++++++++++++++++++++++++++++++++++++++++++++++---
  3 files changed, 494 insertions(+), 30 deletions(-)

-- 2.20.1
--
Crash-utility mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxxxxxx
https://${domain_name}/admin/lists/devel.lists.crash-utility.osci.io/
Contribution Guidelines: https://github.com/crash-utility/crash/wiki




[Index of Archives]     [Fedora Development]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]     [Fedora Tools]

 

Powered by Linux