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

Details

Provenance
mhorneAuthored on Jun 20 2023, 2:52 PM
Reviewer
markj
Differential Revision
D40584: riscv: improve KTR_TRAP trace entries
Parents
rG474d9290eb9e: ossl: Don't try to initialize the cipher for Chacha20+Poly1305.
Branches
Unknown
Tags
Unknown