HomeFreeBSD

dtrace: expose dtrace_instr_size() to userland and implement it for riscv

Description

dtrace: expose dtrace_instr_size() to userland and implement it for riscv

dtrace_instr_size() is needed by the forthcoming RISC-V port of kinst,
as well as by libdtrace in D38825 for both amd64 and RISC-V.

Reviewed by: markj, mhorne
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D39489

(cherry picked from commit 080e56a6c98c7e7a241a4260d4c19d3cad5b22af)

Details

Provenance
christosAuthored on Apr 20 2023, 4:21 PM
markjCommitted on May 7 2023, 5:54 PM
Reviewer
markj
Differential Revision
D39489: dtrace: expose dtrace_instr_size() to userland and implement it for RISC-V
Parents
rGa2f6734d9d5d: dtrace: get rid of uchar_t types
Branches
Unknown
Tags
Unknown