H A D | cow.c | 134 static int child_memcmp_fn(char *mem, size_t size, in child_memcmp_fn() argument 141 memcpy(old, mem, size); in child_memcmp_fn() 149 return memcmp(old, mem, size); in child_memcmp_fn() 152 static int child_vmsplice_memcmp_fn(char *mem, size_t size, in child_vmsplice_memcmp_fn() argument 156 .iov_base = mem, in child_vmsplice_memcmp_fn() 168 memcpy(old, mem, size); in child_vmsplice_memcmp_fn() 181 if (munmap(mem, size) < 0) in child_vmsplice_memcmp_fn() 199 typedef int (*child_fn)(char *mem, size_t size, struct comm_pipes *comm_pipes); 201 static void do_test_cow_in_parent(char *mem, size_t size, bool do_mprotect, in do_test_cow_in_parent() argument 219 exit(fn(mem, siz in do_test_cow_in_parent() 255 test_cow_in_parent(char * mem,size_t size) test_cow_in_parent() argument 260 test_cow_in_parent_mprotect(char * mem,size_t size) test_cow_in_parent_mprotect() argument 265 test_vmsplice_in_child(char * mem,size_t size) test_vmsplice_in_child() argument 270 test_vmsplice_in_child_mprotect(char * mem,size_t size) test_vmsplice_in_child_mprotect() argument 275 do_test_vmsplice_in_parent(char * mem,size_t size,bool before_fork) do_test_vmsplice_in_parent() argument 370 test_vmsplice_before_fork(char * mem,size_t size) test_vmsplice_before_fork() argument 375 test_vmsplice_after_fork(char * mem,size_t size) test_vmsplice_after_fork() argument 381 do_test_iouring(char * mem,size_t size,bool use_fork) do_test_iouring() argument 532 test_iouring_ro(char * mem,size_t size) test_iouring_ro() argument 537 test_iouring_fork(char * mem,size_t size) test_iouring_fork() argument 551 do_test_ro_pin(char * mem,size_t size,enum ro_pin_test test,bool fast) do_test_ro_pin() argument 681 test_ro_pin_on_shared(char * mem,size_t size) test_ro_pin_on_shared() argument 686 test_ro_fast_pin_on_shared(char * mem,size_t size) test_ro_fast_pin_on_shared() argument 691 test_ro_pin_on_ro_previously_shared(char * mem,size_t size) test_ro_pin_on_ro_previously_shared() argument 696 test_ro_fast_pin_on_ro_previously_shared(char * mem,size_t size) test_ro_fast_pin_on_ro_previously_shared() argument 701 test_ro_pin_on_ro_exclusive(char * mem,size_t size) test_ro_pin_on_ro_exclusive() argument 706 test_ro_fast_pin_on_ro_exclusive(char * mem,size_t size) test_ro_fast_pin_on_ro_exclusive() argument 715 char *mem; do_run_with_base_page() local 773 char *mem, *mmap_mem, *tmp, *mremap_mem = MAP_FAILED; do_run_with_thp() local 973 char *mem, *dummy; run_with_hugetlb() local 1192 do_test_anon_thp_collapse(char * mem,size_t size,enum anon_thp_collapse_test test) do_test_anon_thp_collapse() argument 1325 test_anon_thp_collapse_unshared(char * mem,size_t size) test_anon_thp_collapse_unshared() argument 1330 test_anon_thp_collapse_fully_shared(char * mem,size_t size) test_anon_thp_collapse_fully_shared() argument 1335 test_anon_thp_collapse_lower_shared(char * mem,size_t size) test_anon_thp_collapse_lower_shared() argument 1340 test_anon_thp_collapse_upper_shared(char * mem,size_t size) test_anon_thp_collapse_upper_shared() argument 1409 test_cow(char * mem,const char * smem,size_t size) test_cow() argument 1425 test_ro_pin(char * mem,const char * smem,size_t size) test_ro_pin() argument 1430 test_ro_fast_pin(char * mem,const char * smem,size_t size) test_ro_fast_pin() argument 1437 char *mem, *smem, tmp; run_with_zeropage() local 1467 char *mem, *smem, *mmap_mem, *mmap_smem, tmp; run_with_huge_zeropage() local 1526 char *mem, *smem, tmp; run_with_memfd() local 1570 char *mem, *smem, tmp; run_with_tmpfile() local 1623 char *mem, *smem, tmp; run_with_memfd_hugetlb() local [all...] |