/tools/testing/selftests/mm/ |
D | mremap_dontunmap.c | 45 unsigned long num_pages = 1; in kernel_support_for_mremap_dontunmap() local 46 void *source_mapping = mmap(NULL, num_pages * page_size, PROT_NONE, in kernel_support_for_mremap_dontunmap() 53 mremap(source_mapping, num_pages * page_size, num_pages * page_size, in kernel_support_for_mremap_dontunmap() 58 BUG_ON(munmap(dest_mapping, num_pages * page_size) == -1, in kernel_support_for_mremap_dontunmap() 62 BUG_ON(munmap(source_mapping, num_pages * page_size) == -1, in kernel_support_for_mremap_dontunmap() 78 unsigned long num_pages = size / page_size; in check_region_contains_byte() local 82 for (i = 0; i < num_pages; ++i) { in check_region_contains_byte() 97 unsigned long num_pages = 5; in mremap_dontunmap_simple() local 100 mmap(NULL, num_pages * page_size, PROT_READ | PROT_WRITE, in mremap_dontunmap_simple() 104 memset(source_mapping, 'a', num_pages * page_size); in mremap_dontunmap_simple() [all …]
|
/tools/testing/scatterlist/ |
D | main.c | 10 unsigned num_pages; member 40 printf("%u input PFNs:", test->num_pages); in fail() 41 for (i = 0; i < test->num_pages; i++) in fail() 87 int left_pages = test->pfn_app ? test->num_pages : 0; in main() 92 set_pages(pages, test->pfn, test->num_pages); in main() 96 &append, pages, test->num_pages, 0, test->size, in main() 100 &append.sgt, pages, test->num_pages, 0, in main() 109 set_pages(pages, test->pfn_app, test->num_pages); in main() 111 &append, pages, test->num_pages, 0, test->size, in main()
|
/tools/testing/selftests/cachestat/ |
D | test_cachestat.c | 119 bool test_fsync, unsigned long num_pages, in test_cachestat() argument 123 int filesize = num_pages * PS; in test_cachestat() 160 if (cs.nr_cache + cs.nr_evicted != num_pages) { in test_cachestat() 215 unsigned long num_pages = compute_len / PS; in test_cachestat_shmem() local 244 if (cs.nr_cache + cs.nr_evicted != num_pages) { in test_cachestat_shmem()
|
/tools/testing/selftests/kvm/ |
D | dirty_log_test.c | 232 void *bitmap, uint32_t num_pages, in dirty_log_collect_dirty_pages() argument 239 void *bitmap, uint32_t num_pages, in clear_log_collect_dirty_pages() argument 243 kvm_vm_clear_dirty_log(vcpu->vm, slot, bitmap, 0, num_pages); in clear_log_collect_dirty_pages() 317 uint32_t num_pages, uint32_t *fetch_index) in dirty_ring_collect_one() argument 328 TEST_ASSERT(cur->offset < num_pages, "Offset overflow: " in dirty_ring_collect_one() 329 "0x%llx >= 0x%x", cur->offset, num_pages); in dirty_ring_collect_one() 355 void *bitmap, uint32_t num_pages, in dirty_ring_collect_dirty_pages() argument 374 slot, bitmap, num_pages, in dirty_ring_collect_dirty_pages() 429 void *bitmap, uint32_t num_pages, 493 void *bitmap, uint32_t num_pages, in log_mode_collect_dirty_pages() argument [all …]
|
/tools/testing/selftests/bpf/prog_tests/ |
D | sockopt.c | 977 int num_pages = test->set_optlen / PAGE_SIZE; in run_test() local 980 test->set_optlen = num_pages * sysconf(_SC_PAGESIZE) + remainder; in run_test() 999 int num_pages = test->get_optlen / PAGE_SIZE; in run_test() local 1002 test->get_optlen = num_pages * sysconf(_SC_PAGESIZE) + remainder; in run_test()
|
/tools/testing/selftests/kvm/include/ |
D | kvm_util_base.h | 357 uint64_t first_page, uint32_t num_pages) in kvm_vm_clear_dirty_log() argument 363 .num_pages = num_pages in kvm_vm_clear_dirty_log()
|
/tools/testing/selftests/kvm/lib/ |
D | kvm_util.c | 2014 static unsigned int vm_calc_num_pages(unsigned int num_pages, in vm_calc_num_pages() argument 2022 return num_pages * (1 << (page_shift - new_page_shift)); in vm_calc_num_pages() 2024 return num_pages / n + !!(ceil && num_pages % n); in vm_calc_num_pages()
|
/tools/include/uapi/linux/ |
D | kvm.h | 635 __u32 num_pages; member
|