diff options
| author | Paul Buetow <paul@buetow.org> | 2026-05-21 11:45:09 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-05-21 11:45:09 +0300 |
| commit | 8bd5f17ae2cd662b21fcd45a849c4b701a3aa40f (patch) | |
| tree | 338b145f35995aa5db1726f93f862a79a9de7a2a /integrationtests | |
| parent | c58aa139f5e7252aefb1bcacb5fa8b9ea8cdcdef (diff) | |
g7 classify fd-from-air eventfd users
Diffstat (limited to 'integrationtests')
| -rw-r--r-- | integrationtests/attach_tracepoints_test.go | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/integrationtests/attach_tracepoints_test.go b/integrationtests/attach_tracepoints_test.go index 7121422..f66ecca 100644 --- a/integrationtests/attach_tracepoints_test.go +++ b/integrationtests/attach_tracepoints_test.go @@ -121,3 +121,24 @@ func TestAttachTraceKindsPidfdOnly(t *testing.T) { {Tracepoint: "enter_pidfd_getfd", Comm: "ioworkload"}, }) } + +func TestAttachTraceKindsEventfdOnly(t *testing.T) { + enableParallelIfRequested(t) + h := newTestHarness(t) + + result, pid, err := h.RunWithIorArgs("polling-epoll", defaultDuration, []string{ + "-trace-kinds", "eventfd", + }) + if err != nil { + t.Fatalf("run scenario polling-epoll with trace-kinds=eventfd: %v", err) + } + + AssertNoUnexpectedPID(t, result, pid) + AssertNoUnexpectedComm(t, result, "ioworkload") + AssertEventsPresent(t, result, []ExpectedEvent{ + {Tracepoint: "enter_epoll_create1", Comm: "ioworkload", MinCount: 1}, + }) + AssertEventsAbsent(t, result, []ExpectedEvent{ + {Tracepoint: "enter_epoll_wait", Comm: "ioworkload"}, + }) +} |
