Searched refs:area_dst (Results 1 – 4 of 4) sorted by relevance
/linux/tools/testing/selftests/mm/ |
H A D | uffd-unit-tests.c | 327 if (test_pin && pin_pages(&args, area_dst, page_size)) in pagemap_test_fork() 334 value = pagemap_get_entry(fd, area_dst); in pagemap_test_fork() 365 if (uffd_register(uffd, area_dst, nr_pages * page_size, in uffd_wp_unpopulated_test() 372 wp_range(uffd, (uint64_t)area_dst, page_size, true); in uffd_wp_unpopulated_test() 373 value = pagemap_get_entry(pagemap_fd, area_dst); in uffd_wp_unpopulated_test() 377 wp_range(uffd, (uint64_t)area_dst, page_size, false); in uffd_wp_unpopulated_test() 378 value = pagemap_get_entry(pagemap_fd, area_dst); in uffd_wp_unpopulated_test() 382 wp_range(uffd, (uint64_t)area_dst, page_size, true); in uffd_wp_unpopulated_test() 383 if (madvise(area_dst, page_size, MADV_DONTNEED)) in uffd_wp_unpopulated_test() 385 value = pagemap_get_entry(pagemap_fd, area_dst); in uffd_wp_unpopulated_test() [all …]
|
H A D | uffd-stress.c | 110 pthread_mutex_lock(area_mutex(area_dst, page_nr)); in locking_thread() 111 count = *area_count(area_dst, page_nr); in locking_thread() 116 *area_count(area_dst, page_nr) = count_verify[page_nr] = count; in locking_thread() 117 pthread_mutex_unlock(area_mutex(area_dst, page_nr)); in locking_thread() 166 wp_range(uffd, (unsigned long)area_dst + start_nr * page_size, in background_thread() 291 if (uffd_register(uffd, area_dst, mem_size, in userfaultfd_stress() 325 uffd_test_ops->release_pages(area_dst); in userfaultfd_stress() 337 wp_range(uffd, (unsigned long)area_dst, in userfaultfd_stress() 341 if (uffd_unregister(uffd, area_dst, mem_size)) in userfaultfd_stress() 351 if (*area_count(area_dst, nr) != count_verify[nr]) in userfaultfd_stress() [all …]
|
H A D | uffd-common.c | 14 char *area_src, *area_src_alias, *area_dst, *area_dst_alias, *area_remap; variable 293 munmap_area((void **)&area_dst); in uffd_test_ctx_clear() 310 ret |= uffd_test_ops->allocate_area((void **)&area_dst, false); in uffd_test_ctx_init() 366 uffd_test_ops->release_pages(area_dst); in uffd_test_ctx_init() 463 area = (uint8_t *)(area_dst + in uffd_handle_page_fault() 496 offset = (char *)(unsigned long)msg->arg.pagefault.address - area_dst; in uffd_handle_page_fault() 562 area_remap = area_dst; /* save for later unmap */ in uffd_poll_thread() 563 area_dst = (char *)(unsigned long)msg.arg.remap.to; in uffd_poll_thread() 606 uffdio_copy.dst = (unsigned long) area_dst + offset; in __copy_page() 643 uffdio_move.dst = (unsigned long) area_dst + offset; in move_page()
|
H A D | uffd-common.h | 102 extern char *area_src, *area_src_alias, *area_dst, *area_dst_alias, *area_remap;
|