/external/ltp/testcases/kernel/syscalls/cacheflush/ |
D | cacheflush01.c | 128 addr = malloc(getpagesize()); in main() 134 TEST(ltp_syscall(__NR_cacheflush, addr, getpagesize(), ICACHE)); in main() 141 TEST(ltp_syscall(__NR_cacheflush, addr, getpagesize(), DCACHE)); in main() 148 TEST(ltp_syscall(__NR_cacheflush, addr, getpagesize(), BCACHE)); in main()
|
/external/ltp/testcases/kernel/syscalls/munlock/ |
D | munlock02.c | 112 TC[0].len = 8 * getpagesize(); in main() 155 TC[0].len = 8 * getpagesize(); in setup() 173 address += 2 * getpagesize(); in setup() 174 munmap(address, 4 * getpagesize()); in setup()
|
/external/ltp/testcases/kernel/syscalls/readahead/ |
D | readahead01.c | 89 TEST(readahead(-1, 0, getpagesize())); in test_bad_fd() 101 TEST(readahead(fd, 0, getpagesize())); in test_bad_fd() 115 TEST(readahead(fd[0], 0, getpagesize())); in test_invalid_fd() 125 TEST(readahead(fd[0], 0, getpagesize())); in test_invalid_fd()
|
/external/linux-kselftest/tools/testing/selftests/vm/ |
D | thuge-gen.c | 97 if (ps == getpagesize()) in show() 136 return read_sysfs(ps != getpagesize(), in read_free() 156 assert(size == getpagesize() || (before - after) == NUM_PAGES); in test_mmap() 188 assert(size == getpagesize() || (before - after) == NUM_PAGES); in test_shmget() 197 unsigned long largest = getpagesize(); in sanity_checks() 244 test_shmget(getpagesize(), 0); in main()
|
D | mlock2-tests.c | 100 offset = addr / getpagesize() * sizeof(pfn); in get_pageflags() 286 unsigned long page_size = getpagesize(); in lock_check() 324 unsigned long page_size = getpagesize(); in unlock_lock_check() 354 unsigned long page_size = getpagesize(); in test_mlock_lock() 391 unsigned long page_size = getpagesize(); in onfault_check() 439 unsigned long page_size = getpagesize(); in unlock_onfault_check() 463 unsigned long page_size = getpagesize(); in test_mlock_onfault() 505 unsigned long page_size = getpagesize(); in test_lock_onfault_of_present() 553 unsigned long page_size = getpagesize(); in test_munlockall() 631 unsigned long page_size = getpagesize(); in test_vma_management()
|
/external/google-breakpad/src/client/mac/handler/testcases/ |
D | DynamicImagesTests.cc | 58 std::vector<uint8_t> buf(getpagesize()); in ReadTaskMemoryTest() 63 getpagesize(), in ReadTaskMemoryTest() 68 CPTAssert(0 == memcmp(&buf[0], (const void*)addr, getpagesize())); in ReadTaskMemoryTest()
|
/external/ltp/testcases/kernel/syscalls/migrate_pages/ |
D | migrate_pages02.c | 177 testp = SAFE_MALLOC(NULL, getpagesize()); in test_migrate_current_process() 187 testp2 = mmap(NULL, getpagesize(), PROT_READ | PROT_WRITE, in test_migrate_current_process() 206 testp = SAFE_MALLOC(NULL, getpagesize()); in test_migrate_current_process() 219 munmap(testp2, getpagesize()); in test_migrate_current_process() 232 munmap(testp2, getpagesize()); in test_migrate_current_process() 262 testp = SAFE_MALLOC(NULL, getpagesize()); in test_migrate_other_process() 339 int pagesize = getpagesize(); in setup()
|
D | migrate_pages01.c | 112 p = mmap(NULL, getpagesize(), PROT_NONE, in test_invalid_mem() 120 if (munmap(p, getpagesize()) < 0) in test_invalid_mem()
|
/external/ltp/testcases/kernel/syscalls/mprotect/ |
D | mprotect01.c | 123 self->len = getpagesize() + 1; in setup1() 128 self->addr = malloc(getpagesize()); in setup2() 143 self->len = getpagesize(); in setup3()
|
D | mprotect04.c | 89 copy_sz = getpagesize() * 2; in setup() 101 page_sz = getpagesize(); in testfunc_protnone() 187 uintptr_t page_sz = getpagesize(); in get_func()
|
/external/linux-kselftest/tools/testing/selftests/net/ |
D | psock_fanout.c | 146 .tp_block_size = getpagesize(), in sock_fanout_open_ring() 147 .tp_frame_size = getpagesize(), in sock_fanout_open_ring() 182 header = ring + (count * getpagesize()); in sock_fanout_read_ring() 293 if (munmap(rings[1], RING_NUM_FRAMES * getpagesize()) || in test_datapath() 294 munmap(rings[0], RING_NUM_FRAMES * getpagesize())) { in test_datapath()
|
/external/ltp/testcases/kernel/syscalls/getpagesize/ |
D | getpagesize01.c | 67 TEST(getpagesize()); in main() 74 size = getpagesize(); in main()
|
/external/libunwind/tests/ |
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()
|
/external/ltp/testcases/kernel/controllers/memcg/control/ |
D | mem_process.c | 64 printf("%d\n", getpagesize()); in process_options() 81 int pagesize = getpagesize(); in touch_memory()
|
/external/bison/lib/ |
D | unistd.in.h | 816 # define getpagesize rpl_getpagesize 818 _GL_FUNCDECL_RPL (getpagesize, int, (void)); 819 _GL_CXXALIAS_RPL (getpagesize, int, (void)); 822 # if !defined getpagesize 867 # define getpagesize() _gl_getpagesize () 871 getpagesize () 881 _GL_CXXALIAS_SYS_CAST (getpagesize, int, (void)); 884 _GL_CXXALIASWARN (getpagesize); 887 # undef getpagesize 889 _GL_WARN_ON_USE (getpagesize, "getpagesize is unportable - "
|
/external/ltp/lib/ |
D | tst_tmpdir.c | 204 msync((void *)tst_futexes, getpagesize(), MS_SYNC); in tst_rmdir() 205 munmap((void *)tst_futexes, getpagesize()); in tst_rmdir()
|
D | get_high_address.c | 39 return (char *)sbrk(0) + (4 * getpagesize()); in get_high_address()
|
/external/bison/darwin-lib/ |
D | unistd.h | 1128 # define getpagesize rpl_getpagesize 1130 _GL_FUNCDECL_RPL (getpagesize, int, (void)); 1131 _GL_CXXALIAS_RPL (getpagesize, int, (void)); 1134 # if !defined getpagesize 1179 # define getpagesize() _gl_getpagesize () 1183 getpagesize () 1193 _GL_CXXALIAS_SYS_CAST (getpagesize, int, (void)); 1196 _GL_CXXALIASWARN (getpagesize); 1199 # undef getpagesize 1201 _GL_WARN_ON_USE (getpagesize, "getpagesize is unportable - "
|
/external/bison/linux-lib/ |
D | unistd.h | 1128 # define getpagesize rpl_getpagesize 1130 _GL_FUNCDECL_RPL (getpagesize, int, (void)); 1131 _GL_CXXALIAS_RPL (getpagesize, int, (void)); 1134 # if !defined getpagesize 1179 # define getpagesize() _gl_getpagesize () 1183 getpagesize () 1193 _GL_CXXALIAS_SYS_CAST (getpagesize, int, (void)); 1196 _GL_CXXALIASWARN (getpagesize); 1199 # undef getpagesize 1201 _GL_WARN_ON_USE (getpagesize, "getpagesize is unportable - "
|
/external/ltp/testcases/kernel/syscalls/mmap/ |
D | mmap001.c | 98 memsize *= getpagesize(); /* N PAGES */ in main() 105 memsize *= getpagesize(); in main()
|
/external/ltp/testcases/kernel/controllers/memcg/functional/ |
D | memcg_getpagesize.c | 28 printf("%d\n", getpagesize()); in main()
|
/external/ltp/tools/pounder21/src/ramsnake/ |
D | snake.c | 162 ram_size = ram_size & ~(getpagesize() - 1); in main() 173 ram_size = ram_size & ~(getpagesize() - 1); in main()
|
/external/ltp/testcases/kernel/syscalls/cma/ |
D | process_vm01.c | 186 len = getpagesize(); in cma_alloc_sane_params() 380 p = mmap(NULL, getpagesize(), PROT_NONE, in cma_test_invalid_protection() 399 if (munmap(p, getpagesize()) < 0) in cma_test_invalid_protection()
|
/external/ltp/testcases/network/lib6/ |
D | in6_02.c | 228 freenicount = getpagesize(); in initest() 243 if (dsize_after > dsize_before + getpagesize()) { in initest()
|
/external/ltp/testcases/kernel/controllers/memcg/regression/ |
D | memcg_test_2.c | 32 int size = getpagesize() * 2; in sigusr_handler()
|