/third_party/musl/libc-test/src/functionalext/supplement/mman/ |
H A D | mprotect.c | 30 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 D | mmap.c | 113 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 D | readahead01.c | 37 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 D | migrate_pages02.c | 144 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 D | memalign.c | 22 * @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 D | aligned_alloc.c | 26 int pagesize = getpagesize(); in aligned_alloc_0100()
|
/third_party/ltp/testcases/kernel/syscalls/cacheflush/ |
H A D | cacheflush01.c | 41 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 D | mprotect01.c | 125 self->len = getpagesize() + 1; in setup1() 130 self->addr = malloc(getpagesize()); in setup2() 143 self->len = getpagesize(); in setup3()
|
H A D | mprotect04.c | 91 page_sz = getpagesize(); in setup() 185 uintptr_t page_sz = getpagesize(); in get_func()
|
/third_party/libunwind/libunwind/tests/ |
H A D | Gtest-dyn1.c | 179 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 D | writev07.c | 127 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 D | common.h | 42 bufptr = SAFE_MEMALIGN(getpagesize(), bs); in io_append() 143 pg = getpagesize(); in dirty_freeblocks()
|
/third_party/ltp/testcases/kernel/syscalls/bpf/ |
H A D | bpf_prog07.c | 64 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 D | mmap18.c | 26 * 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 D | mmap001.c | 99 memsize *= getpagesize(); /* N PAGES */ in main() 106 memsize *= getpagesize(); in main()
|
/third_party/musl/src/legacy/ |
H A D | getpagesize.c | 5 int getpagesize(void) in getpagesize() function
|
/third_party/ltp/lib/ |
H A D | tst_tmpdir.c | 334 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 D | in6_02.c | 206 * 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 D | getpagesize01.c | 15 * 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 D | splice.h | 36 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 D | legacy_getpagesize_test.cpp | 13 * @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 D | tkillpoison.c | 12 int PS = getpagesize(); in main()
|
H A D | tsoft.c | 15 PS = getpagesize(); in main()
|
/third_party/ltp/testcases/kernel/mce-test/tsrc/ |
H A D | tkillpoison.c | 12 int PS = getpagesize(); in main()
|
H A D | tsoft.c | 15 PS = getpagesize(); in main()
|