From 9310b54d439d4a1a8d4d337987aa63884df0af76 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Wed, 20 May 2026 11:38:19 +0300 Subject: feat: add syscall aggregate sampling infrastructure (task 17) --- integrationtests/sampling_test.go | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 integrationtests/sampling_test.go (limited to 'integrationtests/sampling_test.go') diff --git a/integrationtests/sampling_test.go b/integrationtests/sampling_test.go new file mode 100644 index 0000000..7bfbc75 --- /dev/null +++ b/integrationtests/sampling_test.go @@ -0,0 +1,23 @@ +package integrationtests + +import "testing" + +func TestPerSyscallSamplingAggregateOnlySuppressesRingbufEvents(t *testing.T) { + enableParallelIfRequested(t) + h := newTestHarness(t) + result, pid, err := h.RunWithIorArgs("open-basic", defaultDuration, []string{ + "-syscall-sampling-syscalls", "openat=0", + }) + if err != nil { + t.Fatalf("run scenario open-basic with sampling: %v", err) + } + + AssertNoUnexpectedPID(t, result, pid) + AssertNoUnexpectedComm(t, result, "ioworkload") + AssertEventsAbsent(t, result, []ExpectedEvent{ + { + Tracepoint: "enter_openat", + Comm: "ioworkload", + }, + }) +} -- cgit v1.2.3