Home
last modified time | relevance | path

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

12

/Linux-v4.19/tools/testing/selftests/kvm/lib/
Dvmx.c30 vm_vaddr_t vmx_gva = vm_vaddr_alloc(vm, getpagesize(), 0x10000, 0, 0); in vcpu_alloc_vmx()
34 vmx->vmxon = (void *)vm_vaddr_alloc(vm, getpagesize(), 0x10000, 0, 0); in vcpu_alloc_vmx()
39 vmx->vmcs = (void *)vm_vaddr_alloc(vm, getpagesize(), 0x10000, 0, 0); in vcpu_alloc_vmx()
44 vmx->msr = (void *)vm_vaddr_alloc(vm, getpagesize(), 0x10000, 0, 0); in vcpu_alloc_vmx()
47 memset(vmx->msr_hva, 0, getpagesize()); in vcpu_alloc_vmx()
50 vmx->shadow_vmcs = (void *)vm_vaddr_alloc(vm, getpagesize(), 0x10000, 0, 0); in vcpu_alloc_vmx()
55 vmx->vmread = (void *)vm_vaddr_alloc(vm, getpagesize(), 0x10000, 0, 0); in vcpu_alloc_vmx()
58 memset(vmx->vmread_hva, 0, getpagesize()); in vcpu_alloc_vmx()
60 vmx->vmwrite = (void *)vm_vaddr_alloc(vm, getpagesize(), 0x10000, 0, 0); in vcpu_alloc_vmx()
63 memset(vmx->vmwrite_hva, 0, getpagesize()); in vcpu_alloc_vmx()
Dx86.c591 vm->gdt = vm_vaddr_alloc(vm, getpagesize(), in kvm_setup_gdt()
595 dt->limit = getpagesize(); in kvm_setup_gdt()
603 vm->tss = vm_vaddr_alloc(vm, getpagesize(), in kvm_setup_tss_64bit()
657 stack_vaddr = vm_vaddr_alloc(vm, DEFAULT_STACK_PGS * getpagesize(), in vm_vcpu_add_default()
666 regs.rsp = stack_vaddr + (DEFAULT_STACK_PGS * getpagesize()); in vm_vcpu_add_default()
/Linux-v4.19/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.c82 offset = addr / getpagesize() * sizeof(pfn); in get_pageflags()
228 unsigned long page_size = getpagesize(); in lock_check()
266 unsigned long page_size = getpagesize(); in unlock_lock_check()
296 unsigned long page_size = getpagesize(); in test_mlock_lock()
333 unsigned long page_size = getpagesize(); in onfault_check()
381 unsigned long page_size = getpagesize(); in unlock_onfault_check()
405 unsigned long page_size = getpagesize(); in test_mlock_onfault()
447 unsigned long page_size = getpagesize(); in test_lock_onfault_of_present()
495 unsigned long page_size = getpagesize(); in test_munlockall()
573 unsigned long page_size = getpagesize(); in test_vma_management()
Dcompaction_test.c184 page_size = getpagesize(); in main()
/Linux-v4.19/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()
396 if (munmap(rings[1], RING_NUM_FRAMES * getpagesize()) || in test_datapath()
397 munmap(rings[0], RING_NUM_FRAMES * getpagesize())) { in test_datapath()
Dpsock_tpacket.c646 ring->req.tp_block_size = getpagesize() << 2; in __v1_v2_fill()
667 ring->req3.tp_block_size = getpagesize() << 2; in __v3_fill()
/Linux-v4.19/tools/testing/selftests/kvm/
Ddirty_log_test.c151 value_ptr = host_test_mem + page * getpagesize(); in vm_dirty_log_verify()
272 TEST_MEM_PAGES * getpagesize(), 0); in main()
278 *psize = getpagesize(); in main()
/Linux-v4.19/tools/testing/selftests/powerpc/mm/
Dsegv_errors.c43 p = mmap(NULL, getpagesize(), 0, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0); in test_segv_errors()
Dsubpage_prot.c160 if (getpagesize() != 0x10000) { in test_anon()
/Linux-v4.19/tools/testing/selftests/powerpc/tm/
Dtm-vmxcopy.c39 unsigned long pgsize = getpagesize(); in test_vmxcopy()
/Linux-v4.19/tools/testing/selftests/powerpc/primitives/
Dload_unaligned_zeropad.c137 page_size = getpagesize(); in test_body()
/Linux-v4.19/tools/testing/selftests/powerpc/copyloops/
Dexc_validate.c85 page_size = getpagesize(); in test_copy_exception()
/Linux-v4.19/tools/virtio/linux/
Dkernel.h22 #define PAGE_SIZE getpagesize()
/Linux-v4.19/include/uapi/linux/
Da.out.h125 #define SEGMENT_SIZE getpagesize()
/Linux-v4.19/arch/sparc/kernel/
Dsys_sparc_32.c37 SYSCALL_DEFINE0(getpagesize) in SYSCALL_DEFINE0() argument
Dsys_sparc_64.c42 SYSCALL_DEFINE0(getpagesize) in SYSCALL_DEFINE0() argument
/Linux-v4.19/tools/testing/selftests/bpf/
Dtrace_helpers.c96 page_size = getpagesize(); in perf_event_mmap_header()
/Linux-v4.19/tools/testing/selftests/powerpc/benchmarks/
Dcontext_switch.c324 shmid = shmget(IPC_PRIVATE, getpagesize(), SHM_R | SHM_W); in futex_setup()
/Linux-v4.19/tools/virtio/
Dvringh_test.c157 mapsize = (mapsize + getpagesize() - 1) & ~(getpagesize() - 1); in parallel_test()
/Linux-v4.19/tools/testing/selftests/powerpc/alignment/
Dalignment_handler.c541 bufsize = getpagesize(); in main()
/Linux-v4.19/tools/bpf/bpftool/
Dcommon.c442 result = getpagesize(); in get_page_size()
/Linux-v4.19/tools/perf/util/
Djitdump.c251 size_t sz = getpagesize(); in jit_get_next_entry()
/Linux-v4.19/samples/bpf/
Dxdpsock_user.c418 lassert(posix_memalign(&bufs, getpagesize(), /* PAGE_SIZE aligned */ in xdp_umem_configure()
/Linux-v4.19/tools/vm/
Dpage-types.c1270 page_size = getpagesize(); in main()

12