HomeFreeBSD

dtrace/profile: Set t_dtrace_trapframe for profile probes

Description

dtrace/profile: Set t_dtrace_trapframe for profile probes

profile provider probes fire in the context of a timer interrupt. Thus,
the "regs" action can make use of the interrupt trap frame to get
register values when the interrupt happened in kernel mode. Make that
trap frame available when possible so that "regs" works more or less as
it already does with the fbt and kinst providers.

MFC after: 1 week

(cherry picked from commit 7d35b389729ef5a3efcac75ad265139ada3f8e69)

Details

Provenance
markjAuthored on Jan 7 2024, 4:35 PM
Parents
rG9895c3a22783: Increase the size of riscv GENERICSD images to 6 GB
Branches
Unknown
Tags
Unknown