Home
last modified time | relevance | path

Searched refs:area_dst (Results 1 - 5 of 5) sorted by relevance

/kernel/linux/linux-6.6/tools/testing/selftests/mm/
H A Duffd-unit-tests.c318 if (test_pin && pin_pages(&args, area_dst, page_size)) in pagemap_test_fork()
325 value = pagemap_get_entry(fd, area_dst); in pagemap_test_fork()
356 if (uffd_register(uffd, area_dst, nr_pages * page_size, in uffd_wp_unpopulated_test()
363 wp_range(uffd, (uint64_t)area_dst, page_size, true); in uffd_wp_unpopulated_test()
364 value = pagemap_get_entry(pagemap_fd, area_dst); in uffd_wp_unpopulated_test()
368 wp_range(uffd, (uint64_t)area_dst, page_size, false); in uffd_wp_unpopulated_test()
369 value = pagemap_get_entry(pagemap_fd, area_dst); in uffd_wp_unpopulated_test()
373 wp_range(uffd, (uint64_t)area_dst, page_size, true); in uffd_wp_unpopulated_test()
374 if (madvise(area_dst, page_size, MADV_DONTNEED)) in uffd_wp_unpopulated_test()
376 value = pagemap_get_entry(pagemap_fd, area_dst); in uffd_wp_unpopulated_test()
[all...]
H A Duffd-stress.c8 * memory across the two virtual areas (from area_src to area_dst)
14 * page of the area_dst (while the physical page may still be in
28 * complete. area_src and area_dst are then swapped. All threads are
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()
215 * UFFDIO_COPY without writing zero pages into area_dst in stress()
287 if (uffd_register(uffd, area_dst, mem_siz in userfaultfd_stress()
[all...]
H A Duffd-common.c14 char *area_src, *area_src_alias, *area_dst, *area_dst_alias, *area_remap; variable
291 munmap_area((void **)&area_dst); in uffd_test_ctx_clear()
304 ret |= uffd_test_ops->allocate_area((void **)&area_dst, false); in uffd_test_ctx_init()
338 * for area_dst to make sure it's fully empty. Otherwise we could have in uffd_test_ctx_init()
339 * some area_dst pages be errornously initialized with zero pages, in uffd_test_ctx_init()
346 * area_dst could have been faulted in via one huge THP that will be in uffd_test_ctx_init()
347 * shared between area_src and area_dst. It could cause some of the in uffd_test_ctx_init()
348 * area_dst won't be trapped by missing userfaults. in uffd_test_ctx_init()
352 * pages within area_dst. in uffd_test_ctx_init()
354 uffd_test_ops->release_pages(area_dst); in uffd_test_ctx_init()
[all...]
H A Duffd-common.h94 extern char *area_src, *area_src_alias, *area_dst, *area_dst_alias, *area_remap;
/kernel/linux/linux-5.10/tools/testing/selftests/vm/
H A Duserfaultfd.c8 * memory across the two virtual areas (from area_src to area_dst)
14 * page of the area_dst (while the physical page may still be in
28 * complete. area_src and area_dst are then swapped. All threads are
89 static char *area_src, *area_src_alias, *area_dst, *area_dst_alias; variable
406 count = *area_count(area_dst, page_nr); in locking_thread()
424 if (!my_bcmp(area_dst + page_nr * page_size, zeropage, in locking_thread()
436 /* pthread_mutex_lock(area_mutex(area_dst, page_nr)); */ in locking_thread()
437 while (!bcmp(area_dst + page_nr * page_size, zeropage, in locking_thread()
444 /* pthread_mutex_unlock(area_mutex(area_dst, page_nr)); */ in locking_thread()
448 page_nr, cpu, area_dst in locking_thread()
[all...]

Completed in 5 milliseconds