/linux-6.1.9/tools/testing/selftests/drivers/dma-buf/ |
D | udmabuf.c | 53 size = getpagesize() * NUM_PAGES; in main() 64 create.offset = getpagesize()/2; in main() 65 create.size = getpagesize(); in main() 75 create.size = getpagesize()/2; in main()
|
/linux-6.1.9/tools/testing/selftests/vm/ |
D | thuge-gen.c | 98 if (ps == getpagesize()) in show() 137 return read_sysfs(ps != getpagesize(), in read_free() 157 assert(size == getpagesize() || (before - after) == NUM_PAGES); in test_mmap() 189 assert(size == getpagesize() || (before - after) == NUM_PAGES); in test_shmget() 198 unsigned long largest = getpagesize(); in sanity_checks() 245 test_shmget(getpagesize(), 0); in main()
|
D | mlock2-tests.c | 195 unsigned long page_size = getpagesize(); in test_mlock_lock() 243 unsigned long page_size = getpagesize(); in unlock_onfault_check() 258 unsigned long page_size = getpagesize(); in test_mlock_onfault() 300 unsigned long page_size = getpagesize(); in test_lock_onfault_of_present() 336 unsigned long page_size = getpagesize(); in test_munlockall() 414 unsigned long page_size = getpagesize(); in test_vma_management()
|
D | vm_util.c | 13 const unsigned long pfn = (unsigned long)start / getpagesize(); in pagemap_get_entry()
|
/linux-6.1.9/tools/testing/selftests/bpf/prog_tests/ |
D | sockopt_sk.c | 34 optlen = getpagesize() * 2; in getsetsockopt() 99 optlen = getpagesize() * 2; in getsetsockopt() 203 skel->bss->page_size = getpagesize(); in run_test()
|
D | dynptr.c | 73 bpf_map__set_max_entries(skel->maps.ringbuf, getpagesize()); in verify_fail() 100 bpf_map__set_max_entries(skel->maps.ringbuf, getpagesize()); in verify_success()
|
D | kfunc_dynptr_param.c | 66 bpf_map__set_max_entries(skel->maps.ringbuf, getpagesize()); in verify_fail() 109 bpf_map__set_max_entries(skel->maps.ringbuf, getpagesize()); in verify_success()
|
D | map_ptr.c | 14 int page_size = getpagesize(); in test_map_ptr()
|
/linux-6.1.9/tools/testing/selftests/net/ |
D | psock_fanout.c | 193 .tp_block_size = getpagesize(), in sock_fanout_open_ring() 194 .tp_frame_size = getpagesize(), in sock_fanout_open_ring() 229 header = ring + (count * getpagesize()); in sock_fanout_read_ring() 447 if (munmap(rings[1], RING_NUM_FRAMES * getpagesize()) || in test_datapath() 448 munmap(rings[0], RING_NUM_FRAMES * getpagesize())) { in test_datapath()
|
D | txring_overwrite.c | 105 req.tp_block_size = getpagesize(); in setup_tx() 107 req.tp_frame_size = getpagesize(); in setup_tx()
|
/linux-6.1.9/tools/testing/selftests/drivers/s390x/uvdevice/ |
D | test_uvdevice.c | 45 (__u64)mmap(NULL, (size_t)getpagesize(), PROT_NONE, MAP_ANONYMOUS, -1, 0); in FIXTURE_SETUP() 52 munmap((void *)self->fault_page, (size_t)getpagesize()); in FIXTURE_TEARDOWN() 176 (__u64)mmap(NULL, (size_t)getpagesize(), PROT_NONE, MAP_ANONYMOUS, -1, 0); in FIXTURE_SETUP() 183 munmap((void *)self->fault_page, (size_t)getpagesize()); in FIXTURE_TEARDOWN()
|
/linux-6.1.9/tools/testing/selftests/bpf/ |
D | test_tcpnotify_user.c | 29 #define SOCKET_BUFFER_SIZE (getpagesize() < 8192L ? getpagesize() : 8192L)
|
/linux-6.1.9/tools/testing/selftests/clone3/ |
D | clone3.c | 174 test_clone3(0, getpagesize() + 8, -E2BIG, CLONE3_ARGS_NO_TEST); in main() 195 test_clone3(CLONE_NEWPID, getpagesize() + 8, -E2BIG, in main()
|
/linux-6.1.9/tools/testing/selftests/kvm/x86_64/ |
D | amx_test.c | 333 memset(addr_gva2hva(vm, amx_cfg), 0x0, getpagesize()); in main() 337 memset(addr_gva2hva(vm, tiledata), rand() | 1, 2 * getpagesize()); in main() 341 memset(addr_gva2hva(vm, xsavedata), 0, 3 * getpagesize()); in main()
|
D | hyperv_clock.c | 221 memset(addr_gva2hva(vm, tsc_page_gva), 0x0, getpagesize()); in main() 222 TEST_ASSERT((addr_gva2gpa(vm, tsc_page_gva) & (getpagesize() - 1)) == 0, in main()
|
D | hyperv_features.c | 124 memset(addr_gva2hva(vm, msr_gva), 0x0, getpagesize()); in guest_test_msrs_access() 485 memset(addr_gva2hva(vm, hcall_page), 0x0, 2 * getpagesize()); in guest_test_hcalls_access() 488 memset(addr_gva2hva(vm, hcall_params), 0x0, getpagesize()); in guest_test_hcalls_access()
|
/linux-6.1.9/tools/testing/selftests/powerpc/mm/ |
D | segv_errors.c | 43 p = mmap(NULL, getpagesize(), 0, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0); in test_segv_errors()
|
D | pkey_siginfo.c | 67 pgsize = getpagesize(); in segv_handler() 255 r.size = getpagesize(); in test()
|
D | stack_expansion_ldst.c | 176 page_size = getpagesize(); in test()
|
/linux-6.1.9/tools/testing/selftests/powerpc/tm/ |
D | tm-vmxcopy.c | 39 unsigned long pgsize = getpagesize(); in test_vmxcopy()
|
/linux-6.1.9/tools/testing/selftests/kvm/lib/s390x/ |
D | processor.c | 160 size_t stack_size = DEFAULT_STACK_PGS * getpagesize(); in vm_arch_vcpu_add() 177 regs.gprs[15] = stack_vaddr + (DEFAULT_STACK_PGS * getpagesize()) - 160; in vm_arch_vcpu_add()
|
/linux-6.1.9/tools/testing/selftests/kvm/ |
D | set_memory_region_test.c | 122 MEM_REGION_SIZE / getpagesize(), 0); in spawn_vm() 272 MEM_REGION_SIZE / getpagesize(), 0); in test_delete_memory_region()
|
D | memslot_modification_stress_test.c | 70 uint64_t pages = max_t(int, vm->page_size, getpagesize()) / vm->page_size; in add_remove_memslot()
|
/linux-6.1.9/tools/testing/selftests/powerpc/primitives/ |
D | load_unaligned_zeropad.c | 125 page_size = getpagesize(); in test_body()
|
/linux-6.1.9/tools/testing/selftests/powerpc/copyloops/ |
D | exc_validate.c | 85 page_size = getpagesize(); in test_copy_exception()
|