From df1225efe494cc81513cf98e93891376e45f9615 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Wed, 20 May 2026 07:23:45 +0300 Subject: task 07: add KindMem and separate address-space byte accounting --- integrationtests/mmap_test.go | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'integrationtests') diff --git a/integrationtests/mmap_test.go b/integrationtests/mmap_test.go index 89cce66..3ef84c5 100644 --- a/integrationtests/mmap_test.go +++ b/integrationtests/mmap_test.go @@ -44,3 +44,27 @@ func TestMmapMsyncInvalidFlags(t *testing.T) { }, }) } + +func TestMmapMremapMunmap(t *testing.T) { + result, _ := runScenarioResult(t, "mmap-mremap-munmap", []ExpectedEvent{ + { + Tracepoint: "enter_mremap", + Comm: "ioworkload", + MinCount: 1, + }, + { + Tracepoint: "enter_munmap", + Comm: "ioworkload", + MinCount: 1, + }, + }) + + assertEventBytesEqual(t, result, ExpectedEvent{ + Tracepoint: "enter_mremap", + Comm: "ioworkload", + }, 0) + assertEventBytesEqual(t, result, ExpectedEvent{ + Tracepoint: "enter_munmap", + Comm: "ioworkload", + }, 0) +} -- cgit v1.2.3