Home
last modified time | relevance | path

Searched refs:getpagesize (Results 1 – 25 of 82) sorted by relevance

1234

/linux-6.1.9/tools/testing/selftests/drivers/dma-buf/
Dudmabuf.c53 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/
Dthuge-gen.c98 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()
Dmlock2-tests.c195 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()
Dvm_util.c13 const unsigned long pfn = (unsigned long)start / getpagesize(); in pagemap_get_entry()
/linux-6.1.9/tools/testing/selftests/bpf/prog_tests/
Dsockopt_sk.c34 optlen = getpagesize() * 2; in getsetsockopt()
99 optlen = getpagesize() * 2; in getsetsockopt()
203 skel->bss->page_size = getpagesize(); in run_test()
Ddynptr.c73 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()
Dkfunc_dynptr_param.c66 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()
Dmap_ptr.c14 int page_size = getpagesize(); in test_map_ptr()
/linux-6.1.9/tools/testing/selftests/net/
Dpsock_fanout.c193 .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()
Dtxring_overwrite.c105 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/
Dtest_uvdevice.c45 (__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/
Dtest_tcpnotify_user.c29 #define SOCKET_BUFFER_SIZE (getpagesize() < 8192L ? getpagesize() : 8192L)
/linux-6.1.9/tools/testing/selftests/clone3/
Dclone3.c174 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/
Damx_test.c333 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()
Dhyperv_clock.c221 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()
Dhyperv_features.c124 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/
Dsegv_errors.c43 p = mmap(NULL, getpagesize(), 0, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0); in test_segv_errors()
Dpkey_siginfo.c67 pgsize = getpagesize(); in segv_handler()
255 r.size = getpagesize(); in test()
Dstack_expansion_ldst.c176 page_size = getpagesize(); in test()
/linux-6.1.9/tools/testing/selftests/powerpc/tm/
Dtm-vmxcopy.c39 unsigned long pgsize = getpagesize(); in test_vmxcopy()
/linux-6.1.9/tools/testing/selftests/kvm/lib/s390x/
Dprocessor.c160 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/
Dset_memory_region_test.c122 MEM_REGION_SIZE / getpagesize(), 0); in spawn_vm()
272 MEM_REGION_SIZE / getpagesize(), 0); in test_delete_memory_region()
Dmemslot_modification_stress_test.c70 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/
Dload_unaligned_zeropad.c125 page_size = getpagesize(); in test_body()
/linux-6.1.9/tools/testing/selftests/powerpc/copyloops/
Dexc_validate.c85 page_size = getpagesize(); in test_copy_exception()

1234