rg; s=dkim; t=1770052802; 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=8ixec5M5D+8/Zh3hiGoJCKpJasskCrghydTkS3tcUCA=; b=jwi8KNnlS1F9ERQjPhfDrq3HWnfe3XVMht32yamGdA+UaYH3vp3WoIy4N5EykLzNLCdFd2 DU+LsJWi8TeGQQQtdkD6NrvANj1oID58sPx2bTPG4eS2AVJFcrSg9GHzuNvyDv+dtgoQen RURzyIUSbPJBeA1rvMJQO72EV3imnGHgcNEuUZE9vN1n0sZzf1pwUVT6m+AfWStFW5JdlF jwDkrTJbOSk3Xf3mxO1PvDg+9RR83Z2911Is0P3o3zW7r/P8V6N5oXqoHAInL7dnylQO/i ocMAWhWzKjQdr0Li7Qr+lLddNIWau/IBg1GZnu3/iGWhDYRjgilBtmNjgKaRCQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1770052802; a=rsa-sha256; cv=none; b=vF78ceZhQvGsMi1GbfjXzRX2796o4v1abXOn7HK2Mw3Z0U3gadvivw0391P2GAzvum04JP CirtbgCcBCvQaI0NjQQz4FfoQNk3SCjcpO1NKj+Cfaf0FHjgD5ZsRC3/MrYJy2s0ChRZ7W FV40oXhAmA9Sp3xfgY3TcYpmkaT7pIT1LHWT41yc2mvGvB0kap43LFYe5WAPCLWI1M8GFI z/opxxPeqiAWmGoFK764BPSX0oURySaGz0l0qYw4JNXqFrCRLx1Ur20YZxKTNtXK68Ys1f whAwQTkjzL5US34jt0N636yt3B3bTKapz5KYotvLEF/Hm4SZnOVZ1qqnyKK1rw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1770052802; 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=8ixec5M5D+8/Zh3hiGoJCKpJasskCrghydTkS3tcUCA=; b=G/uMqVOP1PDuqe3CDq/zNGIuaAKdEQCpxC6e5eJgz67/wJRdxirCtMiN5GMeBNKsL2+c2r gHIcN9TjJ8J5Qo6Fp4ciVsx9S/xokpvg8oKfH3Sq7VYYKDaglKm+xItbuFc2nWY0SFyM7/ GGdFJDM0QXZxO+FE112AYYAQni9H1MEXwA/anmMHu/xqEdPSd+fJCF2CCjwqgRWiYSWAuk gOpHVIyQQxeA8zGdOCE44HoB3fuaxMVan48khzCpasOg2+3X363uiUqH+hSq3b6Hz4PzCX vAK6GKrcgONTmrbm7GEkhmtQby+4Rmmaz9SlmgYUiGY/7xigbvWjAJP21D8yLw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4f4YJy01N7zc0d for ; Mon, 02 Feb 2026 17:20:02 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 2191a by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Mon, 02 Feb 2026 17:20:02 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: John Baldwin Subject: git: f7144a9c4a11 - main - sdt: Use the "cc" operand modifier for the address of probes for GCC 15+ 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: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jhb X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: f7144a9c4a11214a71a3091ce1b232a8243b83ea Auto-Submitted: auto-generated Date: Mon, 02 Feb 2026 17:20:02 +0000 Message-Id: <6980dcc2.2191a.ebc239a@gitrepo.freebsd.org> The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=f7144a9c4a11214a71a3091ce1b232a8243b83ea commit f7144a9c4a11214a71a3091ce1b232a8243b83ea Author: John Baldwin AuthorDate: 2026-02-02 17:19:51 +0000 Commit: John Baldwin CommitDate: 2026-02-02 17:19:51 +0000 sdt: Use the "cc" operand modifier for the address of probes for GCC 15+ This is required for GCC on RISC-V. The GCC 15 docs claim that "cc" is similar to "c" except that it "tries harder". NB: I have not yet found a way to make the DTrace probes compile on RISC-V with older versions of GCC. Reviewed by: markj Differential Revision: https://reviews.freebsd.org/D54964 --- sys/sys/sdt.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sys/sys/sdt.h b/sys/sys/sdt.h index f705be915684..0be4e9ba6240 100644 --- a/sys/sys/sdt.h +++ b/sys/sys/sdt.h @@ -194,8 +194,12 @@ SET_DECLARE(sdt_argtypes_set, struct sdt_argtype); #define _SDT_ASM_PROBE_CONSTRAINT "i" #endif #ifndef _SDT_ASM_PROBE_OPERAND +#if !defined(__clang__) && __GNUC_PREREQ__(15, 0) +#define _SDT_ASM_PROBE_OPERAND "cc" +#else #define _SDT_ASM_PROBE_OPERAND "c" #endif +#endif /* * The asm below generates records corresponding to the structure's layout, so