From nobody Tue May 23 14:19:50 2023 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4QQc071GCZz4CXJM; Tue, 23 May 2023 14:19:51 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4QQc066H2dz430x; Tue, 23 May 2023 14:19:50 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1684851590; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=RrNwjqS55bMMhWW/dsHj+4eD/rBxkaJ9BNwN4uoIVV8=; b=NI3JwMkfh+FVIipkrjNHuID4UkcPrcbtQg4ltYU078/BQkK5/CmJwtpTA+MTfFWszrMbNd 6ReI8n7pApqGIrgXiovEQ5+7Ig5YL5lI2RDhTzWw76sW/DPT+2LGSGOdtAag/Y50xuUZBF nInqIDL94yUZt7PaNezvWCdxsiUekYSxf+Ane/Z/PH0XN/Ljehtr/ArztAXnj3p9ye3vnj MOzdyIo+z20kAbActljRBnz+iZ+o8VCJ11JVY9baSCTFlUl3GRgQTVWPM47qNpLRM/nSUi ClwaRZ1g46mTobhqk4mHeTH/YZobpOq7aY/Lnn0Z2t3jth2AH4Rjfyb4nCW3sQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1684851590; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=RrNwjqS55bMMhWW/dsHj+4eD/rBxkaJ9BNwN4uoIVV8=; b=N4vu1cd1HS2VPthj4PDdBAa9+PP0iN6DHUp5Qd2j5XsfnCKqyR9kDRZR4E3ib5oEj+KnN1 6RIScrx5HOlZDM8I+fRkeGeZM8nTTx2tz/bFror4Hjf1zpIRsFkhfRKLtC8dnwFyHVzkR9 ixFGoUqPYrOi44CGfxks32MK0x/ak32wmy1gemIKTtnGSSfJ5bHOovrsugggUJ9dYRJy2l RdK3BRvXi1UkWk4727M0Z6t4AAfIuPV5L+cV5knzHMauzQdwYyXX4S5zi8F7yGLNdiSTnt St4YwEWURls5g+gJ6b9fOwzQlqMOtORHSvo/uqSKONYgqDj/nTYxemG4bn430A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1684851590; a=rsa-sha256; cv=none; b=ybdM6q9URct5EMxD3hciLm8rPl1k/o+tZjLqKkZP5Nnbe5foiwHMt0o3LB7YBJK7Y1IBaV GCQ+QqIAGju1LQghyvRIu42aEjRA5Rr/OOYp3/wrhVxLTgNiKmFtin68S2mKH4oavjaqdh UVidthSJRlEOqiPl/lSF/m0TuGKzJqPgm2SqCcl4KA+Yfdbe8dzhGMVv+J0eYum/X2ye8c 4kaGw5jwVIC2Ki2QcTgEs9KtDE4ssdRW+AvKN6Yz/0jTPkwtsC09ZDnxU6HBkObIwM1n2Z Um12rIWmUJRYZUL5S7gncZ3XGYK55cjawFS5dJFjdh23qPFtX8HqIR/nBKqYSQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4QQc0650KCz13PK; Tue, 23 May 2023 14:19:50 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 34NEJopB099922; Tue, 23 May 2023 14:19:50 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 34NEJocl099921; Tue, 23 May 2023 14:19:50 GMT (envelope-from git) Date: Tue, 23 May 2023 14:19:50 GMT Message-Id: <202305231419.34NEJocl099921@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Christos Margiolis Subject: git: db05f9fbfb1a - main - dtrace: implement dtrace_instr_size() for arm64 List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: christos X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: db05f9fbfb1a92caccaf37154666a99373028588 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by christos: URL: https://cgit.FreeBSD.org/src/commit/?id=db05f9fbfb1a92caccaf37154666a99373028588 commit db05f9fbfb1a92caccaf37154666a99373028588 Author: Christos Margiolis AuthorDate: 2023-05-23 14:19:15 +0000 Commit: Christos Margiolis CommitDate: 2023-05-23 14:19:15 +0000 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 --- cddl/lib/libdtrace/Makefile | 4 ++++ sys/cddl/dev/dtrace/aarch64/instr_size.c | 14 ++++++++++++++ sys/modules/dtrace/dtrace/Makefile | 2 +- 3 files changed, 19 insertions(+), 1 deletion(-) diff --git a/cddl/lib/libdtrace/Makefile b/cddl/lib/libdtrace/Makefile index 468603633658..5232293e0be5 100644 --- a/cddl/lib/libdtrace/Makefile +++ b/cddl/lib/libdtrace/Makefile @@ -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 diff --git a/sys/cddl/dev/dtrace/aarch64/instr_size.c b/sys/cddl/dev/dtrace/aarch64/instr_size.c new file mode 100644 index 000000000000..35964c0f0f78 --- /dev/null +++ b/sys/cddl/dev/dtrace/aarch64/instr_size.c @@ -0,0 +1,14 @@ +/* + * SPDX-License-Identifier: CDDL 1.0 + * + * Copyright 2023 Christos Margiolis + */ + +#include +#include + +int +dtrace_instr_size(uint8_t *instr __unused) +{ + return (INSN_SIZE); +} diff --git a/sys/modules/dtrace/dtrace/Makefile b/sys/modules/dtrace/dtrace/Makefile index 1513418281ad..04829bd1d2c4 100644 --- a/sys/modules/dtrace/dtrace/Makefile +++ b/sys/modules/dtrace/dtrace/Makefile @@ -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