Home
last modified time | relevance | path

Searched refs:getpagesize (Results 1 - 25 of 226) sorted by relevance

12345678910

/third_party/musl/libc-test/src/functionalext/supplement/mman/
H A Dmprotect.c30 size_t align = getpagesize(); in mprotect_0100()
32 int ret = mprotect(buffer, getpagesize(), PROT_READ); in mprotect_0100()
43 size_t align = getpagesize(); in mprotect_0200()
45 int ret = mprotect(buffer, getpagesize(), PROT_WRITE); in mprotect_0200()
56 size_t align = getpagesize(); in mprotect_0300()
58 int ret = mprotect(buffer, getpagesize(), PROT_EXEC); in mprotect_0300()
69 size_t align = getpagesize(); in mprotect_0400()
71 int ret = mprotect(buffer, getpagesize(), PROT_NONE); in mprotect_0400()
82 size_t align = getpagesize(); in mprotect_0500()
84 int ret = mprotect(buffer, getpagesize(), PROT_REA in mprotect_0500()
[all...]
H A Dmmap.c113 start = mmap(NULL, getpagesize(), PROT_READ | PROT_WRITE, MAP_SHARED | MAP_ANON, -1, 0); in mmap_0300()
115 mm = munmap(start, getpagesize()); in mmap_0300()
354 start = mmap(NULL, statbuff.st_size, PROT_READ | PROT_WRITE, MAP_SHARED | MAP_ANON, fd, getpagesize() - 1); in mmap_1000()
390 int get = getpagesize() - 1; in mmap_1100()
/third_party/ltp/testcases/kernel/syscalls/readahead/
H A Dreadahead01.c37 TST_EXP_FAIL(readahead(-1, 0, getpagesize()), EBADF); in test_bad_fd()
45 TST_EXP_FAIL(readahead(fd, 0, getpagesize()), EBADF); in test_bad_fd()
56 TST_EXP_FAIL(readahead(fd[0], 0, getpagesize()), EINVAL); in test_invalid_fd()
62 TST_EXP_FAIL(readahead(fd[0], 0, getpagesize()), EINVAL); in test_invalid_fd()
/third_party/ltp/testcases/kernel/syscalls/migrate_pages/
H A Dmigrate_pages02.c144 private = SAFE_MMAP(NULL, getpagesize(), PROT_READ | PROT_WRITE, in test_migrate_current_process()
153 SAFE_MUNMAP(private, getpagesize()); in test_migrate_current_process()
156 shared = SAFE_MMAP(NULL, getpagesize(), PROT_READ | PROT_WRITE, in test_migrate_current_process()
169 private = SAFE_MMAP(NULL, getpagesize(), in test_migrate_current_process()
191 SAFE_MUNMAP(shared, getpagesize()); in test_migrate_current_process()
205 private = SAFE_MMAP(NULL, getpagesize(), in test_migrate_other_process()
261 int pagesize = getpagesize(); in setup()
/third_party/musl/libc-test/src/functionalext/supplement/malloc/
H A Dmemalign.c22 * @tc.desc : Each parameter is valid, and align is obtained by getpagesize(), which can allocate a memory block
28 int align = getpagesize(); in memalign_0100()
60 int align = getpagesize() - 1; in memalign_0300()
76 int align = getpagesize(); in memalign_0400()
H A Daligned_alloc.c26 int pagesize = getpagesize(); in aligned_alloc_0100()
/third_party/ltp/testcases/kernel/syscalls/cacheflush/
H A Dcacheflush01.c41 addr = SAFE_MALLOC(getpagesize()); in setup()
48 TST_EXP_PASS(tst_syscall(__NR_cacheflush, addr, getpagesize(), tc->cache), in test_cacheflush()
/third_party/ltp/testcases/kernel/syscalls/mprotect/
H A Dmprotect01.c125 self->len = getpagesize() + 1; in setup1()
130 self->addr = malloc(getpagesize()); in setup2()
143 self->len = getpagesize(); in setup3()
H A Dmprotect04.c91 page_sz = getpagesize(); in setup()
185 uintptr_t page_sz = getpagesize(); in get_func()
/third_party/libunwind/libunwind/tests/
H A DGtest-dyn1.c179 mem = malloc (getpagesize ()); in main()
187 mprotect ((void *) ((long) mem & ~(getpagesize () - 1)), in main()
188 2*getpagesize(), PROT_READ | PROT_WRITE | PROT_EXEC); in main()
/third_party/ltp/testcases/kernel/syscalls/writev/
H A Dwritev07.c127 test_partially_valid_iovec(getpagesize()); in test_writev()
128 test_partially_valid_iovec(getpagesize() + 1); in test_writev()
/third_party/ltp/testcases/kernel/io/ltp-aiodio/
H A Dcommon.h42 bufptr = SAFE_MEMALIGN(getpagesize(), bs); in io_append()
143 pg = getpagesize(); in dirty_freeblocks()
/third_party/ltp/testcases/kernel/syscalls/bpf/
H A Dbpf_prog07.c64 BPF_MOV64_IMM(BPF_REG_2, getpagesize()), in load_prog()
123 .max_entries = getpagesize() in run()
/third_party/ltp/testcases/kernel/syscalls/mmap/
H A Dmmap18.c26 * Kernel default 'stack_guard_gap' size is '256 * getpagesize()'.
79 page_size = getpagesize(); in setup()
203 size_t pthread_stack = LTP_ALIGN(PTHREAD_STACK_MIN, getpagesize()); in run_test()
H A Dmmap001.c99 memsize *= getpagesize(); /* N PAGES */ in main()
106 memsize *= getpagesize(); in main()
/third_party/musl/src/legacy/
H A Dgetpagesize.c5 int getpagesize(void) in getpagesize() function
/third_party/ltp/lib/
H A Dtst_tmpdir.c334 msync((void *)tst_futexes, getpagesize(), MS_SYNC); in tst_rmdir()
335 munmap((void *)tst_futexes, getpagesize()); in tst_rmdir()
/third_party/ltp/testcases/network/lib6/
H A Din6_02.c206 * will be detected with getpagesize() calls. in if_nameindex_test()
208 freenicount = getpagesize(); in if_nameindex_test()
223 if (dsize_after > dsize_before + getpagesize()) { in if_nameindex_test()
/third_party/ltp/testcases/kernel/syscalls/getpagesize/
H A Dgetpagesize01.c15 * Verify that getpagesize(2) returns the number of bytes in a
26 TST_EXP_VAL(getpagesize(), pagesize_sysconf); in run()
/third_party/ltp/testcases/kernel/syscalls/splice/
H A Dsplice.h36 return MIN(pipe_max_unpriv * getpagesize(), default_len_data); in get_max_limit()
/third_party/musl/libc-test/src/functionalext/supplement/legacy/legacy_gtest/
H A Dlegacy_getpagesize_test.cpp13 * @tc.desc: Verify that the page size returned by the getpagesize function is equal to the natural page size of the
19 long naturalPageSize = getpagesize(); in HWTEST_F()
/third_party/ltp/testcases/kernel/mce-test/hwpoison/
H A Dtkillpoison.c12 int PS = getpagesize(); in main()
H A Dtsoft.c15 PS = getpagesize(); in main()
/third_party/ltp/testcases/kernel/mce-test/tsrc/
H A Dtkillpoison.c12 int PS = getpagesize(); in main()
H A Dtsoft.c15 PS = getpagesize(); in main()

Completed in 9 milliseconds

12345678910