H A D | cow.c | 100 static int child_memcmp_fn(char *mem, size_t size, in child_memcmp_fn() argument 107 memcpy(old, mem, size); in child_memcmp_fn() 115 return memcmp(old, mem, size); in child_memcmp_fn() 118 static int child_vmsplice_memcmp_fn(char *mem, size_t size, in child_vmsplice_memcmp_fn() argument 122 .iov_base = mem, in child_vmsplice_memcmp_fn() 134 memcpy(old, mem, size); in child_vmsplice_memcmp_fn() 147 if (munmap(mem, size) < 0) in child_vmsplice_memcmp_fn() 165 typedef int (*child_fn)(char *mem, size_t size, struct comm_pipes *comm_pipes); 167 static void do_test_cow_in_parent(char *mem, size_t size, bool do_mprotect, in do_test_cow_in_parent() argument 185 exit(fn(mem, siz in do_test_cow_in_parent() 221 test_cow_in_parent(char * mem,size_t size) test_cow_in_parent() argument 226 test_cow_in_parent_mprotect(char * mem,size_t size) test_cow_in_parent_mprotect() argument 231 test_vmsplice_in_child(char * mem,size_t size) test_vmsplice_in_child() argument 236 test_vmsplice_in_child_mprotect(char * mem,size_t size) test_vmsplice_in_child_mprotect() argument 241 do_test_vmsplice_in_parent(char * mem,size_t size,bool before_fork) do_test_vmsplice_in_parent() argument 336 test_vmsplice_before_fork(char * mem,size_t size) test_vmsplice_before_fork() argument 341 test_vmsplice_after_fork(char * mem,size_t size) test_vmsplice_after_fork() argument 347 do_test_iouring(char * mem,size_t size,bool use_fork) do_test_iouring() argument 498 test_iouring_ro(char * mem,size_t size) test_iouring_ro() argument 503 test_iouring_fork(char * mem,size_t size) test_iouring_fork() argument 517 do_test_ro_pin(char * mem,size_t size,enum ro_pin_test test,bool fast) do_test_ro_pin() argument 647 test_ro_pin_on_shared(char * mem,size_t size) test_ro_pin_on_shared() argument 652 test_ro_fast_pin_on_shared(char * mem,size_t size) test_ro_fast_pin_on_shared() argument 657 test_ro_pin_on_ro_previously_shared(char * mem,size_t size) test_ro_pin_on_ro_previously_shared() argument 662 test_ro_fast_pin_on_ro_previously_shared(char * mem,size_t size) test_ro_fast_pin_on_ro_previously_shared() argument 667 test_ro_pin_on_ro_exclusive(char * mem,size_t size) test_ro_pin_on_ro_exclusive() argument 672 test_ro_fast_pin_on_ro_exclusive(char * mem,size_t size) test_ro_fast_pin_on_ro_exclusive() argument 681 char *mem; do_run_with_base_page() local 739 char *mem, *mmap_mem, *tmp, *mremap_mem = MAP_FAILED; do_run_with_thp() local 929 char *mem, *dummy; run_with_hugetlb() local 1135 do_test_anon_thp_collapse(char * mem,size_t size,enum anon_thp_collapse_test test) do_test_anon_thp_collapse() argument 1268 test_anon_thp_collapse_unshared(char * mem,size_t size) test_anon_thp_collapse_unshared() argument 1273 test_anon_thp_collapse_fully_shared(char * mem,size_t size) test_anon_thp_collapse_fully_shared() argument 1278 test_anon_thp_collapse_lower_shared(char * mem,size_t size) test_anon_thp_collapse_lower_shared() argument 1283 test_anon_thp_collapse_upper_shared(char * mem,size_t size) test_anon_thp_collapse_upper_shared() argument 1352 test_cow(char * mem,const char * smem,size_t size) test_cow() argument 1368 test_ro_pin(char * mem,const char * smem,size_t size) test_ro_pin() argument 1373 test_ro_fast_pin(char * mem,const char * smem,size_t size) test_ro_fast_pin() argument 1380 char *mem, *smem, tmp; run_with_zeropage() local 1410 char *mem, *smem, *mmap_mem, *mmap_smem, tmp; run_with_huge_zeropage() local 1469 char *mem, *smem, tmp; run_with_memfd() local 1513 char *mem, *smem, tmp; run_with_tmpfile() local 1566 char *mem, *smem, tmp; run_with_memfd_hugetlb() local [all...] |