From nobody Tue Jan 14 14:43:40 2025 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 4YXX1n4m2Yz5km0V; Tue, 14 Jan 2025 14:43:41 +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 4YXX1m5XBDz3gXY; Tue, 14 Jan 2025 14:43:40 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1736865820; 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=Kks3cjLkLiXrh7VSQlEz7eFGD04K7doulpuCbGc2i+E=; b=nNCIpUA24W7sk+EF3DQE+Mi9gEaaWnBawTOUAaCX721qMb5X7jB2gmH6iRj6G7tnwyfs7N xtwFTnsprWXQJNxqabrzDmUMxVeyxN/DwAGtyasgQJNrVjyY8HJ5mEQ14fPFwkd+Ilsfq9 /4OyP6C1iEV2tmrl15kTVv1VeNYCYSZPC09yqAk5iJGUGayMqRv0LfS8Wkgv68JVwgW9J1 GPjnUlDHG2tv/rvKUS1ajgldm0qCiRzLehNLu68fbLfQ6yvLykE3XPm+Ojc46bBfG2D2rc TNz90K8IdpNc7IksSOpQik7q9R9YFox/ZRG1XvnKIMJ0sUg47iXynvemonGm0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1736865820; 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=Kks3cjLkLiXrh7VSQlEz7eFGD04K7doulpuCbGc2i+E=; b=EnZTodd4BExvW0lbygFVyMivMgeS508bJ4cnskSFqg7wukPOkn4Lrartzye+j3GfPgRhpp qjDMGuvl9E4iQS6LPJ1aaNhtkMEhJce++vlmuPBk5ijasU6nlJYyQoUrLhoBdjtp7lcOHI i1fQLjZxlkPXnqxYVKuWdvemxGoJPMB9YzCFzZkTDhncku5LJ8XUc+LlmOOE/MIHnIvOs1 /naqeaibAv9zu9nnI5HMLTIjPzDznzcyUijfcDffcs4aMEwocYCbGasJmQaZm2HOB67HKJ +qdrXr3giN2JXyUSQ6Y3412YkBoOT0Wm+C4g3oZPT09OY5rGAz3mS3OyoSZ1Qw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1736865820; a=rsa-sha256; cv=none; b=lQozMmvuPqfzwe2/glJ4EvrEqNpdfMOvPMKZUmlTdhmoHy+IhaajK8Tmw9gNbYSfLbhO/N Qwx3EnX2LRNlnjL23Sw+sW49n6/ffS7b8+vmTA7858q/JZiGc6qMU9qPpMlkXqrGURAm2p jSZ/ZDbm/BjmardbiQO2+byvxbQqTqV+WQx4/Bg7PVXKn5kJk0ZHoFbqiVC+9RDmRjGLzY Pi9ZB3M1HGoxLYNDz1Bd2iqFCC3kmY9f3K+Lor6nqfkCBYdhpBd0uMRYGr2JR4s/su7K8B 1jPAliX8TP8h75Fp3Ge0gODcHuqC1kRQOpWneXoc3ieM6WhXtqMq+zz74OUNNA== 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 4YXX1m4ybnz1KYL; Tue, 14 Jan 2025 14:43:40 +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 50EEhet5014468; Tue, 14 Jan 2025 14:43:40 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 50EEheL2014465; Tue, 14 Jan 2025 14:43:40 GMT (envelope-from git) Date: Tue, 14 Jan 2025 14:43:40 GMT Message-Id: <202501141443.50EEheL2014465@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Mark Johnston Subject: git: 0325afa63942 - stable/14 - ktrace: Make -t t trace struct arrays as well as structs 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: markj X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 0325afa639424ba3960b5487867d07b19c3995b1 Auto-Submitted: auto-generated The branch stable/14 has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=0325afa639424ba3960b5487867d07b19c3995b1 commit 0325afa639424ba3960b5487867d07b19c3995b1 Author: Mark Johnston AuthorDate: 2025-01-07 14:31:15 +0000 Commit: Mark Johnston CommitDate: 2025-01-14 14:15:00 +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 (cherry picked from commit 596ee234ef4537e71f030e13598ecbe73ee697bb) --- 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 5cc6df52d69a..bab58c99c71f 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 b52ae1b981ec..fb96a3461db6 100644 --- a/usr.bin/ktrace/subr.c +++ b/usr.bin/ktrace/subr.c @@ -77,7 +77,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;