/third_party/ltp/testcases/kernel/controllers/memcg/regression/ |
H A D | memcg_test_1.c | 48 p = mmap(NULL, size, PROT_READ | PROT_WRITE, in main() 52 perror("mmap failed"); in main()
|
/third_party/ltp/testcases/kernel/controllers/cpuset/cpuset_memory_pressure_test/ |
H A D | cpuset_memory_pressure.c | 40 fprintf(stderr, "usage: %s mmap-size-in-kB", basename(argv[0])); in main() 44 errx(EINVAL, "Invalid mmap size specified (must be a long " in main() 53 unsigned long *addr = mmap(NULL, pagesize * mmap_block, in main()
|
/third_party/ltp/testcases/kernel/syscalls/mmap/ |
H A D | mmap20.c | 9 * Test mmap(2) with MAP_SHARED_VALIDATE flag. 11 * Test expected EOPNOTSUPP errno when testing mmap(2) with MAP_SHARED_VALIDATE 19 #include "lapi/mmap.h" 47 addr = mmap(NULL, TEST_FILE_SIZE, PROT_READ | PROT_WRITE, in test_mmap() 51 tst_res(TFAIL | TERRNO, "mmap() is successful, but it should have failed"); in test_mmap() 53 tst_res(TPASS, "mmap() failed with errno set to EOPNOTSUPP"); in test_mmap() 55 tst_res(TFAIL | TERRNO, "mmap() failed with unexpected error"); in test_mmap()
|
H A D | mmap05.c | 11 * Verify that, mmap() call with 'PROT_NONE' and a file descriptor which is 53 addr = mmap(NULL, page_sz, PROT_NONE, MAP_FILE | MAP_SHARED, fd, 0); in run() 55 tst_res(TFAIL | TERRNO, "mmap() of %s failed", TEMPFILE); in run()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/mlockall/ |
H A D | 3-7.c | 44 foo = mmap(NULL, page_size, PROT_READ, MAP_SHARED, fd, 0); in main() 46 perror("An error occurs when calling mmap()"); in main()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/shm_open/ |
H A D | 20-3.c | 13 * The test use mmap to check the object is open for reading. 52 ptr = mmap(NULL, BUF_SIZE, PROT_NONE, MAP_SHARED, fd, 0); in main() 63 perror("mmap"); in main()
|
H A D | 28-2.c | 51 buf = mmap(NULL, BUF_SIZE, PROT_WRITE | PROT_READ, MAP_SHARED, fd, 0); in main() 53 perror("An error occurs when calling mmap()"); in main()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/mmap/ |
H A D | 21-1.c | 10 * The mmap() function shall fail if: 54 pa = mmap(NULL, size, PROT_READ | PROT_WRITE, flag, fd, 0); in main()
|
H A D | 32-1.c | 8 * If len is zero, mmap() shall fail and no mapping shall be established. 43 pa = mmap(NULL, 0, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); in main() 54 printf("Test FAILED: mmap() succedded unexpectedly\n"); in main()
|
/third_party/musl/libc-test/src/functionalext/supplement/mman/mman_gtest/ |
H A D | mman_msync_test.cpp | 27 void* map = mmap(nullptr, testDataSize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); in HWTEST_F()
|
/foundation/ai/neural_network_runtime/frameworks/native/neural_network_runtime/ |
H A D | nntensor.cpp | 160 m_data = mmap(nullptr, size, PROT_READ | PROT_WRITE, MAP_SHARED, fd, offset); in CreateData() 245 m_data = mmap(nullptr, length, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); in AllocateMemory()
|
/third_party/NuttX/drivers/usbdev/gadget/fconfig/src/ |
H A D | usb_handle.c | 300 if (handle->ops && handle->ops->mmap) in handle_mmap() 302 mem = handle->ops->mmap(handle, size); in handle_mmap()
|
/third_party/musl/src/thread/ |
H A D | sem_open.c | 91 (map = mmap(0, sizeof(sem_t), PROT_READ|PROT_WRITE, MAP_SHARED, fd, 0)) == MAP_FAILED) { in sem_open() 127 (map = mmap(0, sizeof(sem_t), PROT_READ|PROT_WRITE, MAP_SHARED, fd, 0)) == MAP_FAILED) { in sem_open()
|
/third_party/ltp/testcases/kernel/syscalls/move_pages/ |
H A D | move_pages_support.c | 278 shared = mmap(NULL, total_size, in alloc_shared_pages_on_node() 336 sem_mem = mmap(NULL, get_page_size(), in alloc_sem()
|
H A D | move_pages12.c | 75 #include "lapi/mmap.h" 167 ptr = mmap(NULL, tcases[n].tpages * hpsz, in do_test() 181 tst_brk(TBROK, "Failed to mmap at desired addr"); in do_test() 219 mem = mmap(NULL, size, PROT_READ | PROT_WRITE, in alloc_free_huge_on_node() 225 tst_brk(TBROK | TERRNO, "mmap(..., MAP_HUGETLB, ...) failed"); in alloc_free_huge_on_node()
|
/third_party/skia/third_party/externals/abseil-cpp/absl/container/ |
H A D | btree_test.cc | 1307 absl::btree_multimap<int, int> mmap({{1, 5}, {1, 10}}); in TEST() 1308 auto range = mmap.equal_range(1); in TEST() 1336 absl::btree_multimap<int, int> mmap; in TEST() local 1337 mmap.insert({{1, 5}, {1, 10}}); in TEST() 1338 auto range = mmap.equal_range(1); in TEST() 1411 absl::btree_multimap<int, MovableOnlyInstance> mmap; in TEST() local 1414 mmap.insert(std::move(p4)); in TEST() 1415 mmap.insert(mmap.find(1), std::move(p5)); in TEST() 1416 auto range = mmap in TEST() [all...] |
/third_party/NuttX/drivers/usbdev/gadget/fconfig/include/ |
H A D | usb_handle.h | 71 void *(*mmap)(struct usb_handle *handle, uint32_t size); member
|
/third_party/ltp/testcases/kernel/controllers/memcg/functional/ |
H A D | memcg_max_usage_in_bytes_test.sh | 23 start_memcg_process --mmap-anon -s $MEM_TO_ALLOC
|
/third_party/musl/porting/linux/user/src/hook/ |
H A D | musl_malloc_dispatch.h | 40 MallocMmapType mmap; member
|
/third_party/musl/src/hook/linux/ |
H A D | musl_malloc_dispatch.h | 62 MallocMmapType mmap; member
|
/third_party/musl/porting/linux/user/src/info/ |
H A D | fatal_message.c | 44 void *map = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_ANON | MAP_PRIVATE, -1, 0); in set_fatal_message() 46 MUSL_LOGW("mmap failed"); in set_fatal_message()
|
/third_party/musl/src/info/linux/ |
H A D | fatal_message.c | 46 void *map = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_ANON | MAP_PRIVATE, -1, 0); in set_fatal_message() 48 MUSL_LOGW("mmap failed"); in set_fatal_message()
|
/third_party/mesa3d/src/mapi/ |
H A D | u_execmem.c | 65 * overlay a heap, we just mmap a page and manage through an index. 80 exec_mem = mmap(NULL, EXEC_MAP_SIZE, PROT_EXEC | PROT_READ | PROT_WRITE, in init_map()
|
/third_party/ltp/testcases/kernel/mem/mmapstress/ |
H A D | mmapstress06.c | 88 if (mmap in main() 92 ERROR("large mmap failed"); in main() 93 printf("for this test to run, it needs a mmap space of\n"); in main()
|
/third_party/ltp/testcases/kernel/syscalls/ |
H A D | Makefile | 27 mq_timedsend mq_unlink mmap mremap open openat profil ptrace quotactl \
|