diff options
| author | Paul Buetow <paul@buetow.org> | 2026-05-20 07:23:45 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-05-20 07:23:45 +0300 |
| commit | df1225efe494cc81513cf98e93891376e45f9615 (patch) | |
| tree | 8fe131ba9ae5737022f26fcd60e662c1660329c6 /integrationtests | |
| parent | 11a8642b7035ff558fb84d7761e93525c84e4908 (diff) | |
task 07: add KindMem and separate address-space byte accounting
Diffstat (limited to 'integrationtests')
| -rw-r--r-- | integrationtests/mmap_test.go | 24 |
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) +} |
