Home
last modified time | relevance | path

Searched refs:num_pages (Results 1 – 6 of 6) sorted by relevance

/tools/testing/selftests/vm/
Dmremap_dontunmap.c48 unsigned long num_pages = 1; in kernel_support_for_mremap_dontunmap() local
49 void *source_mapping = mmap(NULL, num_pages * page_size, PROT_NONE, in kernel_support_for_mremap_dontunmap()
56 mremap(source_mapping, num_pages * page_size, num_pages * page_size, in kernel_support_for_mremap_dontunmap()
61 BUG_ON(munmap(dest_mapping, num_pages * page_size) == -1, in kernel_support_for_mremap_dontunmap()
65 BUG_ON(munmap(source_mapping, num_pages * page_size) == -1, in kernel_support_for_mremap_dontunmap()
81 unsigned long num_pages = size / page_size; in check_region_contains_byte() local
85 for (i = 0; i < num_pages; ++i) { in check_region_contains_byte()
100 unsigned long num_pages = 5; in mremap_dontunmap_simple() local
103 mmap(NULL, num_pages * page_size, PROT_READ | PROT_WRITE, in mremap_dontunmap_simple()
107 memset(source_mapping, 'a', num_pages * page_size); in mremap_dontunmap_simple()
[all …]
/tools/testing/scatterlist/
Dmain.c10 unsigned num_pages; member
39 printf("%u input PFNs:", test->num_pages); in fail()
40 for (i = 0; i < test->num_pages; i++) in fail()
84 set_pages(pages, test->pfn, test->num_pages); in main()
86 sg = __sg_alloc_table_from_pages(&st, pages, test->num_pages, 0, in main()
/tools/testing/selftests/kvm/
Ddirty_log_test.c169 void *bitmap, uint32_t num_pages) in dirty_log_collect_dirty_pages() argument
175 void *bitmap, uint32_t num_pages) in clear_log_collect_dirty_pages() argument
178 kvm_vm_clear_dirty_log(vm, slot, bitmap, 0, num_pages); in clear_log_collect_dirty_pages()
189 void *bitmap, uint32_t num_pages);
241 void *bitmap, uint32_t num_pages) in log_mode_collect_dirty_pages() argument
247 mode->collect_dirty_pages(vm, slot, bitmap, num_pages); in log_mode_collect_dirty_pages()
/tools/testing/selftests/kvm/lib/
Dkvm_util.c319 uint64_t first_page, uint32_t num_pages) in kvm_vm_clear_dirty_log() argument
323 .num_pages = num_pages }; in kvm_vm_clear_dirty_log()
1827 static unsigned int vm_calc_num_pages(unsigned int num_pages, in vm_calc_num_pages() argument
1835 return num_pages * (1 << (page_shift - new_page_shift)); in vm_calc_num_pages()
1837 return num_pages / n + !!(ceil && num_pages % n); in vm_calc_num_pages()
/tools/testing/selftests/kvm/include/
Dkvm_util.h76 uint64_t first_page, uint32_t num_pages);
/tools/include/uapi/linux/
Dkvm.h537 __u32 num_pages; member