Home
last modified time | relevance | path

Searched refs:prot (Results 1 – 4 of 4) sorted by relevance

/art/runtime/
Dmem_map.h64 static MemMap* MapAnonymous(const char* ashmem_name, uint8_t* addr, size_t byte_count, int prot,
77 static MemMap* MapFile(size_t byte_count, int prot, int flags, int fd, off_t start, in MapFile() argument
80 nullptr, byte_count, prot, flags, fd, start, false, filename, error_msg); in MapFile()
90 static MemMap* MapFileAtAddress(uint8_t* addr, size_t byte_count, int prot, int flags, int fd,
101 bool Protect(int prot);
156 int prot, bool reuse) LOCKS_EXCLUDED(Locks::mem_maps_lock_);
Dmem_map.cc244 static inline void* TryMemMapLow4GB(void* ptr, size_t page_aligned_byte_count, int prot, int flags, in TryMemMapLow4GB() argument
246 void* actual = mmap(ptr, page_aligned_byte_count, prot, flags, fd, 0); in TryMemMapLow4GB()
259 MemMap* MemMap::MapAnonymous(const char* name, uint8_t* expected_ptr, size_t byte_count, int prot, in MapAnonymous() argument
265 return new MemMap(name, nullptr, 0, nullptr, 0, prot, false); in MapAnonymous()
359 actual = TryMemMapLow4GB(reinterpret_cast<void*>(ptr), page_aligned_byte_count, prot, flags, in MapAnonymous()
395 actual = TryMemMapLow4GB(reinterpret_cast<void*>(ptr), page_aligned_byte_count, prot, flags, in MapAnonymous()
411 actual = mmap(expected_ptr, page_aligned_byte_count, prot, flags, fd.get(), 0); in MapAnonymous()
422 void* actual = mmap(expected_ptr, page_aligned_byte_count, prot, flags, fd.get(), 0); in MapAnonymous()
430 "maps in the log.", expected_ptr, page_aligned_byte_count, prot, in MapAnonymous()
439 page_aligned_byte_count, prot, false); in MapAnonymous()
[all …]
Delf_file.cc145 int prot; in Open() local
148 prot = PROT_READ | PROT_WRITE; in Open()
151 prot = PROT_READ; in Open()
154 if (!elf_file->Setup(prot, flags, error_msg)) { in Open()
162 File* file, int prot, int flags, std::string* error_msg) { in Open() argument
164 (file, (prot & PROT_WRITE) == PROT_WRITE, /*program_header_only*/false, in Open()
166 if (!elf_file->Setup(prot, flags, error_msg)) { in Open()
173 bool ElfFileImpl<ElfTypes>::Setup(int prot, int flags, std::string* error_msg) { in Setup() argument
192 if (!SetMap(MemMap::MapFile(elf_header_size, prot, flags, file_->Fd(), 0, in Setup()
205 if (!SetMap(MemMap::MapFile(program_header_size, prot, flags, file_->Fd(), 0, in Setup()
[all …]
Delf_file_impl.h132 bool Setup(int prot, int flags, std::string* error_msg);