Home
last modified time | relevance | path

Searched refs:mmap (Results 1 - 12 of 12) sorted by relevance

/arkcompiler/runtime_core/static_core/platforms/unix/libpandabase/
H A Dmem.cpp48 mmap(hint, mapSize, static_cast<int>(prot), static_cast<int>(flags), file.GetFd(), static_cast<int>(mapOffset)); in MapFile()
61 // mmap do itself in MapExecuted()
63 void *result = mmap(nullptr, size, PROT_EXEC | PROT_WRITE, MAP_SHARED | MAP_ANONYMOUS, -1, 0); in MapExecuted()
170 void *result = mmap(nullptr, size, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); in MapRWAnonymousRaw()
220 void *resultAddr = mmap(minMem, size, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); in MapRWAnonymousInFirst4GB()
234 mmap(ToVoidPtr(requestedAddr), size, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); in MapRWAnonymousInFirst4GB()
262 << "Unable to mmap mem [" << reinterpret_cast<uintptr_t>(mem) << "] because of ASAN or TSAN"; in MapRWAnonymousFixedRaw()
266 mmap(mem, size, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANONYMOUS | MAP_FIXED, -1, 0); in MapRWAnonymousFixedRaw()
334 // For mobile libc, uordblks is total size of space which is allocated by malloc or mmap called by malloc for in GetNativeBytesFromMallinfo()
346 // For GLIBC, hblkhd is total size of space which is allocated by mmap calle in GetNativeBytesFromMallinfo()
[all...]
/arkcompiler/runtime_core/platforms/unix/libpandabase/
H A Dmem.cpp45 void *result = mmap(hint, map_size, prot, flags, file.GetFd(), map_offset); in MapFile()
58 // mmap do itself in MapExecuted()
60 void *result = mmap(nullptr, size, PROT_EXEC | PROT_WRITE, MAP_SHARED | MAP_ANONYMOUS, -1, 0); in MapExecuted()
149 void *result = mmap(nullptr, size, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); in MapRWAnonymousRaw()
207 mmap(mem, size, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANONYMOUS | MAP_FIXED, -1, 0); in MapRWAnonymousFixedRaw()
275 // For mobile libc, uordblks is total size of space which is allocated by malloc or mmap called by malloc for in GetNativeBytesFromMallinfo()
287 // For GLIBC, hblkhd is total size of space which is allocated by mmap called by malloc for non-small allocations in GetNativeBytesFromMallinfo()
/arkcompiler/runtime_core/platforms/windows/libpandabase/
H A Dmem.cpp100 void *mmap([[maybe_unused]] void *addr, size_t len, uint32_t prot, int flags, int fildes, off_t off) in mmap() function
164 void *result = mmap(hint, map_size, prot, flags, file.GetFd(), map_offset); in MapFile()
175 // mmap do itself in MapExecuted()
177 void *result = mmap(nullptr, size, MMAP_PROT_EXEC | MMAP_PROT_WRITE, MMAP_FLAG_SHARED | MMAP_FLAG_ANONYMOUS, -1, 0); in MapExecuted()
228 mmap(nullptr, size, MMAP_PROT_READ | MMAP_PROT_WRITE, MMAP_FLAG_PRIVATE | MMAP_FLAG_ANONYMOUS, -1, 0); in MapRWAnonymousRaw()
H A Dwindows_mem.h31 void *mmap([[maybe_unused]] void *addr, size_t len, uint32_t prot, int flags, int fildes, off_t off);
/arkcompiler/runtime_core/static_core/platforms/windows/libpandabase/
H A Dmem.cpp103 void *mmap([[maybe_unused]] void *addr, size_t len, uint32_t prot, int flags, int fildes, off_t off) in mmap() function
168 void *result = mmap(hint, mapSize, prot, flags, file.GetFd(), mapOffset); in MapFile()
179 // mmap do itself in MapExecuted()
181 void *result = mmap(nullptr, size, MMAP_PROT_EXEC | MMAP_PROT_WRITE, MMAP_FLAG_SHARED | MMAP_FLAG_ANONYMOUS, -1, 0); in MapExecuted()
271 mmap(nullptr, size, MMAP_PROT_READ | MMAP_PROT_WRITE, MMAP_FLAG_PRIVATE | MMAP_FLAG_ANONYMOUS, -1, 0); in MapRWAnonymousRaw()
H A Dwindows_mem.h31 void *mmap([[maybe_unused]] void *addr, size_t len, uint32_t prot, int flags, int fildes, off_t off);
/arkcompiler/ets_runtime/ecmascript/platform/unix/
H A Dfile.cpp115 void *addr = mmap(nullptr, size, prot, MAP_PRIVATE, fd, offset); in FileMap()
135 void *addr = mmap(nullptr, size + offset - offStart, prot, MAP_PRIVATE, fd, offStart); in FileMapForAlignAddress()
H A Dmap.cpp31 void *result = mmap(addr, allocSize, prot, newFlags, -1, 0); in PageMap()
33 LOG_ECMA(FATAL) << "mmap failed with error code:" << strerror(errno); in PageMap()
/arkcompiler/runtime_core/libpandabase/tests/
H A Dmmap_fixed_test.cpp47 mmap(ToVoidPtr(cur_addr), MMAP_ALLOC_SIZE, MMAP_PROT_READ | MMAP_PROT_WRITE, in TEST_F()
/arkcompiler/ets_runtime/ecmascript/extractortool/src/
H A Dfile_mapper.cpp61 basePtr_ = reinterpret_cast<uint8_t*>(mmap(nullptr, baseLen_, PROT_READ, in CreateFileMapper()
/arkcompiler/ets_runtime/ecmascript/platform/unix/linux/
H A Dos.cpp97 void *res = mmap(addr, size, prot, MAP_PRIVATE | MAP_ANONYMOUS | MAP_FIXED | MAP_EXECUTABLE, -1, 0); in PageMapExecFortSpace()
99 LOG_ECMA(ERROR) << "PageMapExecFortSpace mmap failed, addr = " << addr << ", size = " << size << in PageMapExecFortSpace()
/arkcompiler/runtime_core/static_core/libpandabase/tests/
H A Dmmap_test.cpp65 ASSERT_EQ(result, DEFAULT_MMAP_TEST_HINT) << "mmap with fixed flag must return hint address"; in TEST_F()
137 mmap(ToVoidPtr(curAddr), MMAP_ALLOC_SIZE, MMAP_PROT_READ | MMAP_PROT_WRITE, in TEST_F()
143 // mmap cannot return the same address, as it is used by TSAN, in TEST_F()

Completed in 5 milliseconds