/third_party/mesa3d/src/compiler/spirv/ |
H A D | spirv2nir.c | 152 const void *map = mmap(NULL, len, PROT_READ, MAP_PRIVATE, fd, 0); in main() 155 fprintf(stderr, "Failed to mmap the file: errno=%d, %s\n", in main()
|
/third_party/ltp/lib/ |
H A D | tst_memutils.c | 68 map_blocks[i] = mmap(NULL, blocksize, PROT_READ | PROT_WRITE, in tst_pollute_memory()
|
/third_party/mesa3d/src/intel/vulkan/ |
H A D | anv_gem_stubs.c | 63 return mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED, in anv_gem_mmap()
|
/third_party/ltp/testcases/kernel/mem/mmapstress/ |
H A D | mmapstress02.c | 120 /* Write a page of garbage into the file, so we can mmap it without in main() 129 if (mmap(mmapaddr, pagesize, PROT_NONE, in main() 131 CLEANERROR("couldn't mmap file"); in main()
|
/third_party/ltp/testcases/kernel/syscalls/futex/ |
H A D | futex_wake04.c | 30 #include "lapi/mmap.h" 93 addr = mmap(NULL, hpsz, PROT_WRITE | PROT_READ, in wakeup_thread2()
|
/third_party/ltp/testcases/kernel/syscalls/mmap/ |
H A D | mmap03.c | 21 * Call mmap() to map a file creating a mapped region with execute access 32 * mmap() should succeed returning the address of the mapped region, 84 * Call mmap to map the temporary file 'TEMPFILE' in main() 88 addr = mmap(0, page_sz, PROT_EXEC, in main() 91 /* Check for the return value of mmap() */ in main() 93 tst_resm(TFAIL | TERRNO, "mmap() failed on %s", in main() 123 "mmap() functionality is " in main()
|
H A D | mmap04.c | 21 * Call mmap() to map a file creating a mapped region with read/exec access 32 * mmap() should succeed returning the address of the mapped region, 78 * Call mmap to map the temporary file 'TEMPFILE' in main() 82 addr = mmap(0, page_sz, PROT_READ | PROT_EXEC, in main() 85 /* Check for the return value of mmap() */ in main() 87 tst_resm(TFAIL | TERRNO, "mmap of %s failed", TEMPFILE); in main() 110 "Functionality of mmap() successful"); in main()
|
H A D | mmap01.c | 21 * Verify that, mmap() succeeds when used to map a file where size of the 28 * mmap() should succeed returning the address of the mapped region. 79 * Call mmap to map the temporary file beyond EOF in main() 83 addr = mmap(NULL, page_sz, PROT_READ | PROT_WRITE, in main() 86 /* Check for the return value of mmap() */ in main() 88 tst_resm(TFAIL | TERRNO, "mmap of %s failed", TEMPFILE); in main() 126 "Functionality of mmap() successful"); in main()
|
H A D | mmap001.c | 69 printf(" -m x size of mmap in pages (default 1000)\n"); in help() 109 tst_resm(TINFO, "mmap()ing file of %u pages or %u bytes", pages, in main() 135 array = mmap(0, memsize, PROT_WRITE, MAP_SHARED, fd, 0); in main() 142 tst_resm(TPASS, "mmap() completed successfully."); in main()
|
/third_party/ltp/testcases/kernel/syscalls/writev/ |
H A D | writev05.c | 213 bad_addr = mmap(0, 1, PROT_NONE, in setup() 216 printf("mmap failed\n"); in setup()
|
H A D | writev02.c | 182 bad_addr = mmap(0, 1, PROT_NONE, in setup() 185 tst_brkm(TBROK | TERRNO, cleanup, "mmap failed"); in setup()
|
/third_party/ltp/testcases/kernel/mem/tunable/ |
H A D | min_free_kbytes.c | 168 addrs = mmap(NULL, MAP_SIZE, PROT_READ | PROT_WRITE, in eatup_mem() 172 perror("mmap"); in eatup_mem()
|
/third_party/ltp/testcases/kernel/mem/thp/ |
H A D | thp04.c | 30 #include "lapi/mmap.h" 46 ret = mmap(baseaddr, thp_size, PROT_READ, in alloc_zero_page()
|
/third_party/ltp/testcases/kernel/syscalls/memfd_create/ |
H A D | memfd_create03.c | 44 "mmap(%p, %lu, %d, %d, %d, %d) succeeded", in check_huge_mmapable() 133 new_mem = mmap(NULL, hps, 0, MAP_PRIVATE, new_fd, 0); in test_max_hugepages() 137 "mmap(%p, %lu, %d, %d, %d, %d) failed as expected", in test_max_hugepages() 141 "mmap(%p, %lu, %d, %d, %d, %d) failed unexpectedly", in test_max_hugepages() 145 "mmap(%p, %lu, %d, %d, %d, %d) succeeded", in test_max_hugepages()
|
/third_party/ltp/testcases/kernel/syscalls/mprotect/ |
H A D | mprotect01.c | 79 * which has been mmap'ed as read-only, as PROT_WRITE 146 * mmap the PAGESIZE bytes as read only. in setup3() 148 self->addr = mmap(0, self->len, PROT_READ, MAP_SHARED, fd, 0); in setup3() 150 tst_brkm(TBROK, cleanup, "mmap failed"); in setup3()
|
/third_party/ltp/testcases/kernel/mem/hugetlb/hugemmap/ |
H A D | hugemmap24.c | 60 p = mmap((void *)(slice_boundary-2*hpage_size), 4*hpage_size, in init_slice_boundary()
|
/third_party/ltp/testcases/kernel/mem/vma/ |
H A D | vma02.c | 88 addr = mmap(NULL, pagesize * 3, PROT_WRITE, in main() 91 tst_brkm(TBROK | TERRNO, NULL, "mmap"); in main()
|
/third_party/libdrm/tests/radeon/ |
H A D | rbo.c | 115 ptr = mmap(0, args.size, PROT_READ|PROT_WRITE, MAP_SHARED, bo->fd, args.addr_ptr); in rbo_map()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/mmap/ |
H A D | 13-1.c | 10 * at any time between the mmap() call and the corresponding munmap() 16 * 1. Do stat before mmap() and after munmap(), 82 printf("Time before mmap(): %ld\n", time(NULL)); in main() 83 pa = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); in main() 85 printf("Error at mmap: %s\n", strerror(errno)); in main() 95 /* for mmap */ in main()
|
H A D | 14-1.c | 65 printf("Time before mmap(): %ld\n", time(NULL)); in main() 66 pa = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); in main() 68 printf("Error at mmap: %s\n", strerror(errno)); in main()
|
H A D | 5-1.c | 17 * specified by prot, the call to mmap() shall fail. 20 * 1. call mmap() for all combinations permitted by POSIX 113 pa = mmap(NULL, size, testcases[i].prot, testcases[i].flags, fd, in main()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/mq_open/ |
H A D | 16-1.c | 72 pa = mmap(NULL, sizeof(int), PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); in main() 74 printf(TNAME " Error at mmap: %s\n", strerror(errno)); in main()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_exit/ |
H A D | 6-1.c | 236 mmap(NULL, sz, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); in main() 238 UNRESOLVED(errno, "mmap failed"); in main()
|
/third_party/node/deps/v8/src/d8/ |
H A D | cov.cc | 53 shmem = (struct shmem_data*)mmap(0, SHM_SIZE, PROT_READ | PROT_WRITE, in __sanitizer_cov_trace_pc_guard_init() 56 fprintf(stderr, "[COV] Failed to mmap shared memory region\n"); in __sanitizer_cov_trace_pc_guard_init()
|
/third_party/node/deps/v8/src/base/platform/ |
H A D | platform-openbsd.cc | 21 #include <sys/mman.h> // mmap & munmap 104 // The Linux profiler built into the kernel logs all mmap's with in SignalCodeMovingGC() 106 // do a mmap with a name known by ll_prof.py and immediately munmap in SignalCodeMovingGC() 117 mmap(NULL, size, PROT_READ | PROT_EXEC, MAP_PRIVATE, fileno(f), 0); in SignalCodeMovingGC()
|