dtrace: implement dtrace_instr_size() for arm64
Reviewed by: markj Approved by; markj (mentor) Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D39955
This commit is contained in:
parent
27ff920e6a
commit
db05f9fbfb
@ -131,6 +131,10 @@ SRCS+= instr_size.c
|
||||
DSRCS+= regs_riscv.d
|
||||
.endif
|
||||
|
||||
.if ${MACHINE_CPUARCH} == "aarch64"
|
||||
SRCS+= instr_size.c
|
||||
.endif
|
||||
|
||||
YFLAGS+=-d
|
||||
|
||||
LIBADD= ctf elf proc pthread rtld_db
|
||||
|
14
sys/cddl/dev/dtrace/aarch64/instr_size.c
Normal file
14
sys/cddl/dev/dtrace/aarch64/instr_size.c
Normal file
@ -0,0 +1,14 @@
|
||||
/*
|
||||
* SPDX-License-Identifier: CDDL 1.0
|
||||
*
|
||||
* Copyright 2023 Christos Margiolis <christos@FreeBSD.org>
|
||||
*/
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/dtrace.h>
|
||||
|
||||
int
|
||||
dtrace_instr_size(uint8_t *instr __unused)
|
||||
{
|
||||
return (INSN_SIZE);
|
||||
}
|
@ -24,7 +24,7 @@ CFLAGS+= -I${SYSDIR}/cddl/contrib/opensolaris/uts/intel \
|
||||
-I${SYSDIR}/cddl/dev/dtrace/x86
|
||||
.endif
|
||||
|
||||
.if ${MACHINE_CPUARCH} == "riscv"
|
||||
.if ${MACHINE_CPUARCH} == "riscv" || ${MACHINE_CPUARCH} == "aarch64"
|
||||
SRCS+= instr_size.c
|
||||
.endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user