From 8bd5f17ae2cd662b21fcd45a849c4b701a3aa40f Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Thu, 21 May 2026 11:45:09 +0300 Subject: g7 classify fd-from-air eventfd users --- integrationtests/attach_tracepoints_test.go | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'integrationtests') 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"}, + }) +} -- cgit v1.2.3