summaryrefslogtreecommitdiff
path: root/integrationtests/attach_tracepoints_test.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-05-21 11:39:18 +0300
committerPaul Buetow <paul@buetow.org>2026-05-21 11:39:18 +0300
commitc58aa139f5e7252aefb1bcacb5fa8b9ea8cdcdef (patch)
tree09ae5323e06a3a0b5ade451f1b8e4b9efccb4561 /integrationtests/attach_tracepoints_test.go
parenta0d6f222864301c11afd9c1d3306e6bfe8446d5d (diff)
n7 classify pidfd and misc tail syscalls
Diffstat (limited to 'integrationtests/attach_tracepoints_test.go')
-rw-r--r--integrationtests/attach_tracepoints_test.go21
1 files changed, 21 insertions, 0 deletions
diff --git a/integrationtests/attach_tracepoints_test.go b/integrationtests/attach_tracepoints_test.go
index 2dcb28d..7121422 100644
--- a/integrationtests/attach_tracepoints_test.go
+++ b/integrationtests/attach_tracepoints_test.go
@@ -100,3 +100,24 @@ func TestAttachTraceSyscallsWithExclusion(t *testing.T) {
{Tracepoint: "enter_openat", Comm: "ioworkload"},
})
}
+
+func TestAttachTraceKindsPidfdOnly(t *testing.T) {
+ enableParallelIfRequested(t)
+ h := newTestHarness(t)
+
+ result, pid, err := h.RunWithIorArgs("pidfd-getfd-success", defaultDuration, []string{
+ "-trace-kinds", "pidfd",
+ })
+ if err != nil {
+ t.Fatalf("run scenario pidfd-getfd-success with trace-kinds=pidfd: %v", err)
+ }
+
+ AssertNoUnexpectedPID(t, result, pid)
+ AssertNoUnexpectedComm(t, result, "ioworkload")
+ AssertEventsPresent(t, result, []ExpectedEvent{
+ {Tracepoint: "enter_pidfd_open", Comm: "ioworkload", MinCount: 1},
+ })
+ AssertEventsAbsent(t, result, []ExpectedEvent{
+ {Tracepoint: "enter_pidfd_getfd", Comm: "ioworkload"},
+ })
+}