Searched refs:map_size (Results 1 – 3 of 3) sorted by relevance
/system/core/libunwindstack/ |
D | MapInfo.cpp | 44 uint64_t map_size = end - prev_real_map->end; in InitFileMemoryFromPreviousReadOnlyMap() local 45 if (!memory->Init(name, prev_real_map->offset, map_size)) { in InitFileMemoryFromPreviousReadOnlyMap() 50 if (!Elf::GetInfo(memory, &max_size) || max_size < map_size) { in InitFileMemoryFromPreviousReadOnlyMap() 86 uint64_t map_size = end - start; in GetFileMemory() local 87 if (!memory->Init(name, offset, map_size)) { in GetFileMemory() 95 if (max_size > map_size) { in GetFileMemory() 100 if (memory->Init(name, offset, map_size)) { in GetFileMemory() 130 if (memory->Init(name, offset, map_size)) { in GetFileMemory()
|
/system/memory/libmemunreachable/ |
D | Allocator.cpp | 126 size_t map_size = size + align - kPageSize; in MapAligned() local 127 if (map_size < size) { in MapAligned() 131 void* ptr = mmap(NULL, map_size, prot, flags, -1, 0); in MapAligned() 136 size_t aligned_size = map_size; in MapAligned() 145 map_size -= extra; in MapAligned() 150 if (map_size != size) { in MapAligned() 151 assert(map_size > size); in MapAligned() 153 munmap(reinterpret_cast<void*>(reinterpret_cast<uintptr_t>(ptr) + size), map_size - size); in MapAligned()
|
/system/core/libbacktrace/ |
D | backtrace_test.cpp | 1233 uint64_t map_size = buf.st_size; in TEST_F() local 1238 void* map = mmap(nullptr, map_size, PROT_READ | PROT_EXEC, MAP_PRIVATE, fd, 0); in TEST_F() 1252 map_size += reinterpret_cast<uint64_t>(map); in TEST_F() 1254 for (uint64_t read_addr = reinterpret_cast<uint64_t>(map); read_addr < map_size; read_addr += 4) { in TEST_F() 1263 ASSERT_TRUE(munmap(map, map_size - reinterpret_cast<uint64_t>(map)) == 0); in TEST_F() 1277 uint64_t map_size = buf.st_size; in TEST_F() local 1288 void* map = mmap(nullptr, map_size, PROT_READ | PROT_EXEC, MAP_PRIVATE, fd, 0); in TEST_F() 1333 map_size += read_addr; in TEST_F() 1335 for (; read_addr < map_size; read_addr += 4) { in TEST_F()
|