summaryrefslogtreecommitdiff
path: root/integrationtests/mmap_test.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-05-20 07:23:45 +0300
committerPaul Buetow <paul@buetow.org>2026-05-20 07:23:45 +0300
commitdf1225efe494cc81513cf98e93891376e45f9615 (patch)
tree8fe131ba9ae5737022f26fcd60e662c1660329c6 /integrationtests/mmap_test.go
parent11a8642b7035ff558fb84d7761e93525c84e4908 (diff)
task 07: add KindMem and separate address-space byte accounting
Diffstat (limited to 'integrationtests/mmap_test.go')
-rw-r--r--integrationtests/mmap_test.go24
1 files changed, 24 insertions, 0 deletions
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)
+}