diff options
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"}, + }) +} |
