From nobody Tue Jan 07 14:32:32 2025 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 4YSD684fRvz5kf1N; Tue, 07 Jan 2025 14:32:32 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4YSD682SDdz4JLH; Tue, 7 Jan 2025 14:32:32 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1736260352; 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=lO7SoIpAYvgvvGTIKFOkMQCw/EtgVs+gzw4oMeTcSUA=; b=gkCUPRoCQuoa7NAStVFFcnWZLL/hDgJA7GpUmk6L1RLZcsnydwxkJbivZJmtfwHI5A5D7Q BthEj3HignvJ/jCUItSLU4rYG5dkMN2kE8kFjBc7ApY6L0EYZkKKeFcHY+bOkaoNDI3jCS N9iPLY+8DyLPTRk9rRo3TxU1Ktkeg/BZ/xeHYOZi0zXIhWurqWbUo79kehSckG4hHVZsy2 bSWmp5NvyxDaa8Hdp+K1LgPo0ZlBBk/ilCQluahiGU/cKCgkt6CQuqI9Zrh5VuqplV+6ig bfgpE3Xd6NwxmjIVzYhkWubM1yM6eZBP7V9gLTJLbNYxorsK7fbgS9YldpKgJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1736260352; 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=lO7SoIpAYvgvvGTIKFOkMQCw/EtgVs+gzw4oMeTcSUA=; b=vSPvc/S3EUf/O1GbnDOlS/hdCVGghVuoEVuCj0H4713M5ZV6GCgLKir2+nTIgtqfMlPBkI SLd8wW6ckybV0fE6A+He3UX6YIC4CYzaB2LoT9hkJAWmrS8fvvDihscKMbXrPpkL9DSNBp TsOzNc3xT59qm59EC2CeKEBC7GYvLvHMIpghBT4Kh0n12K1q5Lqlq4FPgDS9b0HCzEPJvO wXYrN+TSpi2nQeImOii8wEKxSPWfWO3eaDT1ZMlkHEqBOYuFZnby3H0J4XmOIzWZxWUTEw 9sPtHQCDfjaQOMsSTaYMek80aE4xRRGVf9JqWw5ICCkr06OVpPnj44cw2easKw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1736260352; a=rsa-sha256; cv=none; b=hpPvrg6JxrN0o/gh3JhNta0kif+LHju9yIsrqzmljp97azvN8fTiv/xIxO1y1LD40lOsqH E67AdNDOwGdX8ZVtstvTeolxRrlKUHxy73J4oQ+hHB2MxW1EvKX42R2ex/I5gS5ChYJO1e pMapeUips8ztgzgNaSQN67py2xTBTY2sN36VLCdwyJeXsPbYeSsYrtkENGfYxvV5Hk63/g N9DbC15DTusO4nD8syVASmbRHKgmh6UWTtaGJpLRINTpzcG/pPYSyXhJLfYjikL/7tVt6B drBHGpHKaYC+o5rXQ9LarSTYik76y8gpPUWz639Hrx0jE0uuzzzmCvgVYW6abg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none 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 4YSD6824gvz1Cg1; Tue, 07 Jan 2025 14:32:32 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 507EWWPW015658; Tue, 7 Jan 2025 14:32:32 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 507EWWfh015655; Tue, 7 Jan 2025 14:32:32 GMT (envelope-from git) Date: Tue, 7 Jan 2025 14:32:32 GMT Message-Id: <202501071432.507EWWfh015655@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mark Johnston Subject: git: 596ee234ef45 - main - ktrace: Make -t t trace struct arrays as well as structs 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: markj X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 596ee234ef4537e71f030e13598ecbe73ee697bb Auto-Submitted: auto-generated The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=596ee234ef4537e71f030e13598ecbe73ee697bb commit 596ee234ef4537e71f030e13598ecbe73ee697bb Author: Mark Johnston AuthorDate: 2025-01-07 14:31:15 +0000 Commit: Mark Johnston CommitDate: 2025-01-07 14:32:20 +0000 ktrace: Make -t t trace struct arrays as well as structs Otherwise there is no specific -t option which captures struct arrays. MFC after: 1 week --- usr.bin/ktrace/ktrace.1 | 2 +- usr.bin/ktrace/subr.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.bin/ktrace/ktrace.1 b/usr.bin/ktrace/ktrace.1 index 6542bb88dffd..c2f046dc5287 100644 --- a/usr.bin/ktrace/ktrace.1 +++ b/usr.bin/ktrace/ktrace.1 @@ -132,7 +132,7 @@ trace capability check failures .It Cm s trace signal processing .It Cm t -trace various structures +trace various structures and arrays of structures .It Cm u userland traces generated by .Xr utrace 2 diff --git a/usr.bin/ktrace/subr.c b/usr.bin/ktrace/subr.c index 6762fe9620cb..1db4c214414b 100644 --- a/usr.bin/ktrace/subr.c +++ b/usr.bin/ktrace/subr.c @@ -70,7 +70,7 @@ getpoints(char *s) facs |= KTRFAC_PSIG; break; case 't': - facs |= KTRFAC_STRUCT; + facs |= KTRFAC_STRUCT | KTRFAC_STRUCT_ARRAY; break; case 'u': facs |= KTRFAC_USER;