git: 596ee234ef45 - main - ktrace: Make -t t trace struct arrays as well as structs

From: Mark Johnston <markj_at_FreeBSD.org>
Date: Tue, 07 Jan 2025 14:32:32 UTC
The branch main has been updated by markj:

URL: https://cgit.FreeBSD.org/src/commit/?id=596ee234ef4537e71f030e13598ecbe73ee697bb

commit 596ee234ef4537e71f030e13598ecbe73ee697bb
Author:     Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2025-01-07 14:31:15 +0000
Commit:     Mark Johnston <markj@FreeBSD.org>
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;