forked from crash-utility/crash
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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. TEST: a lkdtm DIRECT EXCEPTION vmcore crash> bt -e PID: 1 TASK: ff600000000e0000 CPU: 1 COMMAND: "sh" KERNEL-MODE EXCEPTION FRAME AT: ff200000000138d8 PC: ffffffff805303c0 [lkdtm_EXCEPTION+6] RA: ffffffff8052fe36 [lkdtm_do_action+16] SP: ff20000000013cf0 CAUSE: 000000000000000f epc : ffffffff805303c0 ra : ffffffff8052fe36 sp : ff20000000013cf0 gp : ffffffff814ef848 tp : ff600000000e0000 t0 : 6500000000000000 t1 : 000000000000006c t2 : 6550203a6d74646b s0 : ff20000000013d00 s1 : 000000000000000a a0 : ffffffff814aef40 a1 : c0000000ffffefff a2 : 0000000000000010 a3 : 0000000000000001 a4 : 5d53ea10ca096e00 a5 : ffffffff805303ba a6 : 0000000000000008 a7 : 0000000000000038 s2 : ff60000001324000 s3 : ffffffff814aef40 s4 : ff20000000013e30 s5 : 000000000000000a s6 : ff20000000013e30 s7 : ff600000000ce000 s8 : 0000555560f0f8a8 s9 : 00007ffff497f6b4 s10: 00007ffff497f6b0 s11: 0000555560fa30e0 t3 : ffffffff81502197 t4 : ffffffff81502197 t5 : ffffffff81502198 t6 : ff20000000013b28 status: 0000000200000120 badaddr: 0000000000000000 cause: 000000000000000f orig_a0: 0000000000000000 USER-MODE EXCEPTION FRAME AT: ff20000000013ee0 PC: 007fff8780431aff RA: 007fff877b168400 SP: 007ffff497f5b000 ORIG_A0: 0000000000000100 SYSCALLNO: 0000000000004000 epc : 007fff8780431aff ra : 007fff877b168400 sp : 007ffff497f5b000 gp : 00555560f5134800 tp : 007fff8774378000 t0 : 0000000000100000 t1 : 00555560e427bc00 t2 : 0000000000271000 s0 : 007ffff497f5e000 s1 : 0000000000000a00 a0 : 0000000000000100 a1 : 00555560faa68000 a2 : 0000000000000a00 a3 : 4000000000000000 a4 : 20000000000000a8 a5 : 0000000000000054 a6 : 0000000000000400 a7 : 0000000000004000 s2 : 00555560faa68000 s3 : 007fff878b33f800 s4 : 0000000000000a00 s5 : 00555560faa68000 s6 : 0000000000000a00 s7 : 00555560f5131400 s8 : 00555560f0f8a800 s9 : 007ffff497f6b400 s10: 007ffff497f6b000 s11: 00555560fa30e000 t3 : 007fff877af1fe00 t4 : 00555560fa6f2000 t5 : 0000000000000100 t6 : 9e1fea5bf8683300 status: 00000200004020b9 badaddr: 0000000000000000 cause: 0000000000000800 orig_a0: 0000000000000100 crash> Signed-off-by: Song Shuai <[email protected]>
- Loading branch information
Showing
2 changed files
with
181 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters