HomeFreeBSD

riscv: improve KTR_TRAP trace entries

Description

riscv: improve KTR_TRAP trace entries

For more informative records of exceptions, include key details such as
the exception code and stval register contents. Remove the curthread
argument as it is redundant (saved with every ktr entry), and the
trapframe as it is somewhat meaningless.

Add a new KTR_TRAP trace record for interrupts.

Reviewed by: markj, jhb
MFC after: 3 days
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D40584

(cherry picked from commit 7756232199adf60343ae0b940e2b27fe363905bc)

Details

Provenance
mhorneAuthored on Jun 20 2023, 2:52 PM
Reviewer
markj
Differential Revision
D40584: riscv: improve KTR_TRAP trace entries
Parents
rGeb08efb821fd: amdtemp: Fix missing 49 degree offset on current EPYC CPUs
Branches
Unknown
Tags
Unknown