2 * SYSCALL_DEFINE5(remap_file_pages, unsigned long, start, unsigned long, size,
3 unsigned long, prot, unsigned long, pgoff, unsigned long, flags)
13 static void sanitise_remap_file_pages(int childno
)
18 map
= common_set_mmap_ptr_len(childno
);
20 /* We just want to remap a part of the mapping. */
21 size
= rand() % map
->size
;
22 shm
->syscall
[childno
].a2
= size
;
24 /* "The prot argument must be specified as 0" */
25 shm
->syscall
[childno
].a3
= 0;
27 /* Pick a random pgoff. */
28 shm
->syscall
[childno
].a4
= rand() & (size
/ page_size
);
31 struct syscallentry syscall_remap_file_pages
= {
32 .name
= "remap_file_pages",
43 .values
= { MAP_NONBLOCK
},
46 .sanitise
= sanitise_remap_file_pages
,