Lines Matching refs:error_msg

47                                   std::string* error_msg) {  in OpenWithElfFile()  argument
53 return oat_file->Setup(error_msg) ? oat_file.release() : nullptr; in OpenWithElfFile()
58 std::string* error_msg) { in OpenMemory() argument
64 return oat_file->Setup(error_msg) ? oat_file.release() : nullptr; in OpenMemory()
72 std::string* error_msg) { in Open() argument
82 ret.reset(OpenDlopen(filename, location, requested_base, error_msg)); in Open()
92 *error_msg = StringPrintf("Failed to open oat filename for reading: %s", strerror(errno)); in Open()
96 error_msg)); in Open()
105 OatFile* OatFile::OpenWritable(File* file, const std::string& location, std::string* error_msg) { in OpenWritable() argument
107 return OpenElfFile(file, location, nullptr, nullptr, true, false, error_msg); in OpenWritable()
110 OatFile* OatFile::OpenReadable(File* file, const std::string& location, std::string* error_msg) { in OpenReadable() argument
112 return OpenElfFile(file, location, nullptr, nullptr, false, false, error_msg); in OpenReadable()
118 std::string* error_msg) { in OpenDlopen() argument
120 bool success = oat_file->Dlopen(elf_filename, requested_base, error_msg); in OpenDlopen()
133 std::string* error_msg) { in OpenElfFile() argument
136 error_msg); in OpenElfFile()
138 CHECK(!error_msg->empty()); in OpenElfFile()
159 std::string* error_msg) { in Dlopen() argument
162 *error_msg = StringPrintf("Failed to find absolute path for '%s'", elf_filename.c_str()); in Dlopen()
168 *error_msg = StringPrintf("Failed to dlopen '%s': %s", elf_filename.c_str(), dlerror()); in Dlopen()
173 *error_msg = StringPrintf("Failed to find oatdata symbol in '%s': %s", elf_filename.c_str(), in Dlopen()
178 *error_msg = StringPrintf("Failed to find oatdata symbol at expected address: " in Dlopen()
181 ReadFileToString("/proc/self/maps", error_msg); in Dlopen()
186 *error_msg = StringPrintf("Failed to find oatlastword symbol in '%s': %s", elf_filename.c_str(), in Dlopen()
192 return Setup(error_msg); in Dlopen()
197 std::string* error_msg) { in ElfFileOpen() argument
199 elf_file_.reset(ElfFile::Open(file, writable, /*program_header_only*/true, error_msg, in ElfFileOpen()
202 DCHECK(!error_msg->empty()); in ElfFileOpen()
205 bool loaded = elf_file_->Load(executable, error_msg); in ElfFileOpen()
207 DCHECK(!error_msg->empty()); in ElfFileOpen()
212 *error_msg = StringPrintf("Failed to find oatdata symbol in '%s'", file->GetPath().c_str()); in ElfFileOpen()
216 *error_msg = StringPrintf("Failed to find oatdata symbol at expected address: " in ElfFileOpen()
219 ReadFileToString("/proc/self/maps", error_msg); in ElfFileOpen()
224 *error_msg = StringPrintf("Failed to find oatlastword symbol in '%s'", file->GetPath().c_str()); in ElfFileOpen()
229 return Setup(error_msg); in ElfFileOpen()
232 bool OatFile::Setup(std::string* error_msg) { in Setup() argument
234 *error_msg = StringPrintf("Invalid oat magic for '%s'", GetLocation().c_str()); in Setup()
240 *error_msg = StringPrintf("In oat file '%s' found truncated OatHeader", GetLocation().c_str()); in Setup()
246 *error_msg = StringPrintf("In oat file '%s' found truncated variable-size data: " in Setup()
258 *error_msg = StringPrintf("In oat file '%s' found OatDexFile #%zd with empty location name", in Setup()
264 *error_msg = StringPrintf("In oat file '%s' found OatDexFile #%zd truncated after dex file " in Setup()
272 *error_msg = StringPrintf("In oat file '%s' found OatDexFile #%zd with truncated dex file " in Setup()
282 *error_msg = StringPrintf("In oat file '%s' found OatDexFile #%zd for '%s' truncated after " in Setup()
290 *error_msg = StringPrintf("In oat file '%s' found OatDexFile #%zd for '%s' with zero dex " in Setup()
295 *error_msg = StringPrintf("In oat file '%s' found OatDexFile #%zd for '%s' with dex file " in Setup()
302 *error_msg = StringPrintf("In oat file '%s' found OatDexFile #%zd for '%s' truncated " in Setup()
310 *error_msg = StringPrintf("In oat file '%s' found OatDexFile #%zd for '%s' with invalid " in Setup()
316 *error_msg = StringPrintf("In oat file '%s' found OatDexFile #%zd for '%s' with invalid " in Setup()
326 *error_msg = StringPrintf("In oat file '%s' found OatDexFile #%zd for '%s' with truncated " in Setup()
459 const DexFile* OatFile::OatDexFile::OpenDexFile(std::string* error_msg) const { in OpenDexFile()
461 dex_file_location_checksum_, GetOatFile(), error_msg); in OpenDexFile()