summaryrefslogtreecommitdiff
path: root/integrationtests
diff options
context:
space:
mode:
Diffstat (limited to 'integrationtests')
-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)
+}