Page MenuHomeFreeBSD

riscv: improve KTR_TRAP trace entries
ClosedPublic

Authored by mhorne on Jun 17 2023, 4:59 PM.
Tags
None
Referenced Files
F149890178: D40584.id123520.diff
Fri, Mar 27, 10:08 PM
F149807350: D40584.id123372.diff
Fri, Mar 27, 6:19 AM
Unknown Object (File)
Thu, Mar 26, 8:11 AM
Unknown Object (File)
Wed, Mar 25, 6:37 AM
Unknown Object (File)
Wed, Mar 25, 2:50 AM
Unknown Object (File)
Wed, Mar 25, 1:34 AM
Unknown Object (File)
Tue, Mar 24, 7:56 PM
Unknown Object (File)
Tue, Mar 24, 7:08 AM
Subscribers

Details

Summary

For more informative records of exceptions, include key details such as
the exception code and stval contents. Add a new KTR_TRAP trace record
for interrupts.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 52137
Build 49028: arc lint + arc unit

Event Timeline

sys/riscv/riscv/intr_machdep.c
167

KTR entries always contain a pointer to curthread (used to implement ktrdump -H), so including it here is redundant.

I wonder if the pointer to frame is ever useful?

sys/riscv/riscv/intr_machdep.c
167

Good point on curthread. For frame, probably not. It has a short lifetime and it's not like we can do much with it in ddb.

Drop curthread and trapframe arguments.

This revision is now accepted and ready to land.Jun 19 2023, 3:58 PM
This revision was automatically updated to reflect the committed changes.