Home
last modified time | relevance | path

Searched refs:mmap (Results 676 - 700 of 2139) sorted by relevance

1...<<21222324252627282930>>...86

/third_party/mesa3d/src/compiler/spirv/
H A Dspirv2nir.c152 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 Dtst_memutils.c68 map_blocks[i] = mmap(NULL, blocksize, PROT_READ | PROT_WRITE, in tst_pollute_memory()
/third_party/mesa3d/src/intel/vulkan/
H A Danv_gem_stubs.c63 return mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED, in anv_gem_mmap()
/third_party/ltp/testcases/kernel/mem/mmapstress/
H A Dmmapstress02.c120 /* 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 Dfutex_wake04.c30 #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 Dmmap03.c21 * 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 Dmmap04.c21 * 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 Dmmap01.c21 * 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 Dmmap001.c69 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 Dwritev05.c213 bad_addr = mmap(0, 1, PROT_NONE, in setup()
216 printf("mmap failed\n"); in setup()
H A Dwritev02.c182 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 Dmin_free_kbytes.c168 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 Dthp04.c30 #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 Dmemfd_create03.c44 "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 Dmprotect01.c79 * 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 Dhugemmap24.c60 p = mmap((void *)(slice_boundary-2*hpage_size), 4*hpage_size, in init_slice_boundary()
/third_party/ltp/testcases/kernel/mem/vma/
H A Dvma02.c88 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 Drbo.c115 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 D13-1.c10 * 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 D14-1.c65 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 D5-1.c17 * 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 D16-1.c72 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 D6-1.c236 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 Dcov.cc53 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 Dplatform-openbsd.cc21 #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()

Completed in 11 milliseconds

1...<<21222324252627282930>>...86