From nobody Wed Apr 17 13:46:10 2024 X-Original-To: dev-commits-src-all@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 4VKMcy2PM4z5GwVq; Wed, 17 Apr 2024 13:46:10 +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 4VKMcy1j17z4mQl; Wed, 17 Apr 2024 13:46:10 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1713361570; 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=Vm0MxyT20f6bsNJeV9iNDzTjLnuguHKkyJt2ZtD5Vx4=; b=vKJwjqQAhNS8CgR38XBHHtDpBOB6SjrJ10V9lJSnJKIu31hZWuyeB/FgE33V/s1aUqYLpB CG5vty7N/cWztOFzvoBWusKm7+plsnMJqR0wu83nKt5Yo882MoGkyIWCZyH7RKS7RU3Y+s fzlOBck4jk77+55dn0uu1guFJMeoE58n6AUOC9PXkvb7Ma0QHbP3qBlS5mcWOyg2hJGNXx w3wC6+nFpzCa6GI1e9/++nZWQcOaKnqI4IhuVlEWYaC1y1olA8xwBjWjahKbuPZv0dEqoK Aog3CriOryfVJ9t6ikRuNNrwBFI43iPAJzTb+UjeQK4kGY6HZMNDjGOHqtxfdA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1713361570; a=rsa-sha256; cv=none; b=dRypsxKUluCDmYBYBkmS1Fwjfq8mnV7KxHvnJfF35OXRm1Zyx4P9jUOIWS1e/0JlOiIJ5t Uq8bHKYFCTFWV+dbGtG2tnNxKZipRhGtJEAhEfvcC9WQ3ApzOlRpQbR0t+KvywQr0p9lsC EbP7EN6n7l1BolHw3Vx/8t6nl1mW9phhWVECaKn0Tjw5A3l0I0QuK3SzogZ64VLeh0m2dg wDOgdFfIGsplgNec5GSw+nyCsvWWvijxXUrkqdUgZG0EV9r6x4gtlEbnPgEm3ai/J7tgsp b8NqR0CnZaPYpcN/lY8xLhMo25cROwsDKkJ8k7C+eyu/QiemJVlMOTJzLxqdzA== 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=1713361570; 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=Vm0MxyT20f6bsNJeV9iNDzTjLnuguHKkyJt2ZtD5Vx4=; b=Xq+CLBEImVwxUIdcK2v6oO13RWZPFAhWrmS3T30X/FcHAkx/7sd0sBxP12k72lD0FXUBTV JH4ldjBsesgtZG4zVrMaFqg9KO+MBWm6lfUsh+CqzNdyRpCSKPOY35J2WuZBR2pgxyvdiW 8uXKyGa4yHT3sT5YSDqNiqMhWWiPz9pKsoQQFU2xBEiP69Ll5i6C4S073TOulX4OuVU90i o0S3CtsBAmB9CSfbp3uxY7Zx844Pl/wd2zONyAKaKNNW1ttHjzDMQLY0rPcTzW22pPBo5e ummZKjeUuzGQBUTcjjArs2XixgNOGasoTVW3iusw8clGuqSmP98Oy0fYYZ+eXA== 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 4VKMcy1J4BzSq2; Wed, 17 Apr 2024 13:46:10 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 43HDkAMP019870; Wed, 17 Apr 2024 13:46:10 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 43HDkATp019867; Wed, 17 Apr 2024 13:46:10 GMT (envelope-from git) Date: Wed, 17 Apr 2024 13:46:10 GMT Message-Id: <202404171346.43HDkATp019867@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Michael Tuexen Subject: git: c5e78e553c66 - stable/14 - dtrace: allow NULL interface pointer for ifinfo_t translator List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: tuexen X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: c5e78e553c6638fb24e7186690056fac9d78b2c9 Auto-Submitted: auto-generated The branch stable/14 has been updated by tuexen: URL: https://cgit.FreeBSD.org/src/commit/?id=c5e78e553c6638fb24e7186690056fac9d78b2c9 commit c5e78e553c6638fb24e7186690056fac9d78b2c9 Author: Michael Tuexen AuthorDate: 2024-02-16 11:28:48 +0000 Commit: Michael Tuexen CommitDate: 2024-04-17 13:45:40 +0000 dtrace: allow NULL interface pointer for ifinfo_t translator This is similar to other translators and will be used in static probes where the interface is not known. Reviewed by: markj Sponsored by: Netflix, Inc. Differential Revision: https://reviews.freebsd.org/D43728 (cherry picked from commit e00fd24262945fdc7f16198c8abd977f743e66e4) --- cddl/lib/libdtrace/ip.d | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cddl/lib/libdtrace/ip.d b/cddl/lib/libdtrace/ip.d index 172d7d54bc36..2fe98858efc2 100644 --- a/cddl/lib/libdtrace/ip.d +++ b/cddl/lib/libdtrace/ip.d @@ -262,8 +262,8 @@ inline int IFF_LOOPBACK = 0x8; #pragma D binding "1.5" translator translator ifinfo_t < struct ifnet *p > { - if_name = p->if_xname; - if_local = (p->if_flags & IFF_LOOPBACK) == 0 ? 0 : 1; + if_name = p == NULL ? "" : p->if_xname; + if_local = p == NULL ? 0 : (p->if_flags & IFF_LOOPBACK) == 0 ? 0 : 1; if_addr = (uintptr_t)p; };