diff options
| author | Paul Buetow <paul@buetow.org> | 2026-05-20 11:38:19 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-05-20 11:38:19 +0300 |
| commit | 9310b54d439d4a1a8d4d337987aa63884df0af76 (patch) | |
| tree | c6fb38085891a04ce81672f977af316a2e96b2fd /integrationtests | |
| parent | 5fd613562e2aa2ab3aac3349f44db88330046c1c (diff) | |
feat: add syscall aggregate sampling infrastructure (task 17)
Diffstat (limited to 'integrationtests')
| -rw-r--r-- | integrationtests/sampling_test.go | 23 |
1 files changed, 23 insertions, 0 deletions
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", + }, + }) +} |
