Searched refs:error_msg (Results 51 - 75 of 108) sorted by relevance

12345

/art/runtime/
H A Dmem_map.cc136 bool MemMap::ContainedWithinExistingMap(uint8_t* ptr, size_t size, std::string* error_msg) { argument
155 if (error_msg != nullptr) {
156 *error_msg = StringPrintf("Failed to build process map");
168 if (error_msg != nullptr) {
170 *error_msg = StringPrintf("Requested region 0x%08" PRIxPTR "-0x%08" PRIxPTR " does not overlap "
179 std::string* error_msg) {
182 *error_msg = StringPrintf("Failed to build process map");
192 *error_msg = StringPrintf("Requested region 0x%08" PRIxPTR "-0x%08" PRIxPTR " overlaps with "
206 // reason in error_msg.
211 // and if not, report in error_msg wha
177 CheckNonOverlapping(uintptr_t begin, uintptr_t end, std::string* error_msg) argument
213 CheckMapRequest(uint8_t* expected_ptr, void* actual_ptr, size_t byte_count, std::string* error_msg) argument
278 MapAnonymous(const char* name, uint8_t* expected_ptr, size_t byte_count, int prot, bool low_4gb, bool reuse, std::string* error_msg, bool use_ashmem) argument
373 MapFileAtAddress(uint8_t* expected_ptr, size_t byte_count, int prot, int flags, int fd, off_t start, bool low_4gb, bool reuse, const char* filename, std::string* error_msg) argument
518 RemapAtEnd(uint8_t* new_end, const char* tail_name, int tail_prot, std::string* error_msg, bool use_ashmem) argument
[all...]
H A Doat_file_manager.cc433 std::string* error_msg /*out*/) const {
435 DCHECK(error_msg != nullptr);
521 *error_msg =
566 std::string error_msg; local
567 if (!oat_file_assistant.Lock(/*out*/&error_msg)) {
570 VLOG(class_linker) << "OatFileAssistant::Lock: " << error_msg;
578 switch (oat_file_assistant.MakeUpToDate(filter_, /*out*/ &error_msg)) {
580 LOG(WARNING) << error_msg;
586 VLOG(oat) << error_msg;
601 !HasCollisions(oat_file.get(), class_loader, dex_elements, /*out*/ &error_msg);
[all...]
H A Doat_file.h60 std::string* error_msg);
72 std::string* error_msg);
81 std::string* error_msg);
85 std::string* error_msg);
338 std::unique_ptr<const DexFile> OpenDexFile(std::string* error_msg) const;
H A Ddex_file.cc72 bool DexFile::GetChecksum(const char* filename, uint32_t* checksum, std::string* error_msg) { argument
88 ScopedFd fd(OpenAndReadMagic(file_part, &magic, error_msg));
90 DCHECK(!error_msg->empty());
95 ZipArchive::OpenFromFd(fd.release(), filename, error_msg));
97 *error_msg = StringPrintf("Failed to open zip archive '%s' (error msg: %s)", file_part,
98 error_msg->c_str());
101 std::unique_ptr<ZipEntry> zip_entry(zip_archive->Find(zip_entry_name, error_msg));
103 *error_msg = StringPrintf("Zip archive '%s' doesn't contain %s (error msg: %s)", file_part,
104 zip_entry_name, error_msg->c_str());
112 DexFile::OpenFile(fd.release(), filename, false, error_msg));
123 Open(const char* filename, const char* location, std::string* error_msg, std::vector<std::unique_ptr<const DexFile>>* dex_files) argument
151 std::string error_msg; local
162 std::string error_msg; local
205 Open(const uint8_t* base, size_t size, const std::string& location, uint32_t location_checksum, const OatDexFile* oat_dex_file, bool verify, std::string* error_msg) argument
230 OpenFile(int fd, const char* location, bool verify, std::string* error_msg) argument
288 OpenZip(int fd, const std::string& location, std::string* error_msg, std::vector<std::unique_ptr<const DexFile>>* dex_files) argument
300 OpenMemory(const std::string& location, uint32_t location_checksum, MemMap* mem_map, std::string* error_msg) argument
313 Open(const ZipArchive& zip_archive, const char* entry_name, const std::string& location, std::string* error_msg, ZipOpenErrorCode* error_code) argument
359 OpenFromZip(const ZipArchive& zip_archive, const std::string& location, std::string* error_msg, std::vector<std::unique_ptr<const DexFile>>* dex_files) argument
409 OpenMemory(const uint8_t* base, size_t size, const std::string& location, uint32_t location_checksum, MemMap* mem_map, const OatDexFile* oat_dex_file, std::string* error_msg) argument
464 Init(std::string* error_msg) argument
[all...]
H A Ddex_file_verifier_test.cc138 std::string error_msg; local
143 &error_msg);
145 EXPECT_TRUE(success) << error_msg;
149 EXPECT_NE(error_msg.find(expected_error), std::string::npos) << error_msg;
157 std::string* error_msg) {
178 bool success = DexFile::Open(location, location, error_msg, &tmp);
179 CHECK(success) << error_msg;
210 std::string error_msg; local
212 &error_msg));
155 OpenDexFileBase64(const char* base64, const char* location, std::string* error_msg) argument
1377 std::string error_msg; local
1399 std::string error_msg; local
1483 std::string error_msg; local
[all...]
H A Ddex_file_verifier.cc132 const char* location, std::string* error_msg) {
135 *error_msg = verifier->FailureReason();
524 std::string error_msg; local
525 if (!CheckFieldAccessFlags(idx, access_flags, class_access_flags, &error_msg)) {
526 ErrorStringPrintf("%s", error_msg.c_str());
567 std::string error_msg; local
573 &error_msg)) {
574 ErrorStringPrintf("%s", error_msg.c_str());
2493 std::string* error_msg) {
2496 *error_msg
131 Verify(const DexFile* dex_file, const uint8_t* begin, size_t size, const char* location, std::string* error_msg) argument
2490 CheckFieldAccessFlags(uint32_t idx, uint32_t field_access_flags, uint32_t class_access_flags, std::string* error_msg) argument
2573 FindMethodName(uint32_t method_index, const uint8_t* begin, const DexFile::Header* header, const char** str, std::string* error_msg) argument
2602 CheckMethodAccessFlags(uint32_t method_index, uint32_t method_access_flags, uint32_t class_access_flags, bool has_code, bool expect_direct, std::string* error_msg) argument
[all...]
H A Druntime.cc591 std::string error_msg; local
597 if (!jit::Jit::LoadCompilerLibrary(&error_msg)) {
599 LOG(WARNING) << "Failed to load JIT compiler with error " << error_msg;
853 std::string error_msg; local
858 &error_msg));
863 OatFile::OpenWithElfFile(elf_file.release(), oat_location, nullptr, &error_msg));
865 LOG(WARNING) << "Unable to use '" << oat_filename << "' because " << error_msg; local
874 std::unique_ptr<const DexFile> dex_file = oat_dex_file->OpenDexFile(&error_msg);
912 std::string error_msg; local
917 if (!DexFile::Open(dex_filename, dex_location, &error_msg, dex_file
918 LOG(WARNING) << "Failed to open .dex from file '" << dex_filename << "': " << error_msg; local
1158 std::string error_msg; local
1209 std::string error_msg; local
1336 std::string error_msg; local
1345 std::string error_msg; local
1347 LOG(FATAL) << "LoadNativeLibrary failed for \\"" << kOpenJdkLibrary << "\\": " << error_msg; local
1959 std::string error_msg; local
[all...]
H A Ddex_file_test.cc157 std::string error_msg; local
159 bool success = DexFile::Open(location, location, &error_msg, &tmp);
160 CHECK(success) << error_msg;
208 std::string error_msg; local
209 EXPECT_TRUE(DexFile::GetChecksum(GetLibCoreDexFileNames()[0].c_str(), &checksum, &error_msg))
210 << error_msg; local
H A Doat_file_manager.h123 /*out*/ std::string* error_msg) const
H A Ddex_file_verifier.h30 const char* location, std::string* error_msg);
165 std::string* error_msg);
173 std::string* error_msg);
/art/compiler/jit/
H A Djit_compiler.cc120 std::string error_msg; local
125 instruction_set, str.as_string(), &error_msg));
127 LOG(WARNING) << "Error parsing " << option << " message=" << error_msg; local
134 instruction_set, "default", &error_msg));
136 LOG(WARNING) << "Error parsing " << option << " message=" << error_msg; local
140 instruction_set_features_->AddFeaturesFromString(str.as_string(), &error_msg));
142 LOG(WARNING) << "Error parsing " << option << " message=" << error_msg; local
/art/runtime/gc/accounting/
H A Dbitmap.cc47 std::string error_msg; local
50 &error_msg));
52 LOG(ERROR) << "Failed to allocate bitmap " << name << ": " << error_msg; local
H A Dread_barrier_table.h39 std::string error_msg; local
41 PROT_READ | PROT_WRITE, false, false, &error_msg);
43 << "couldn't allocate read barrier table: " << error_msg;
H A Dcard_table.cc65 std::string error_msg; local
68 false, false, &error_msg));
69 CHECK(mem_map.get() != nullptr) << "couldn't allocate card table: " << error_msg;
H A Datomic_stack.h241 std::string error_msg; local
243 PROT_READ | PROT_WRITE, false, false, &error_msg));
244 CHECK(mem_map_.get() != nullptr) << "couldn't allocate mark stack.\n" << error_msg;
/art/patchoat/
H A Dpatchoat.cc78 std::string error_msg; local
80 &cache_filename, &error_msg)) {
107 static bool ReadOatPatchDelta(const ElfFile* elf_file, off_t* delta, std::string* error_msg) { argument
110 *error_msg = "Unable to get oat header from elf file.";
114 *error_msg = "Elf file has an invalid oat header";
215 std::string error_msg; local
223 &error_msg));
225 LOG(ERROR) << "Unable to map image file " << input_image->GetPath() << " : " << error_msg;
242 std::string error_msg; local
244 PROT_READ | PROT_WRITE, MAP_PRIVATE, &error_msg));
366 std::string error_msg; local
763 std::string error_msg; local
960 ReadBaseDelta(const char* name, off_t* delta, std::string* error_msg) argument
1095 std::string error_msg; local
1135 std::string error_msg; local
[all...]
/art/imgdiag/
H A Dimgdiag.cc306 std::string error_msg; local
459 &error_msg));
461 os << error_msg; local
899 std::string* error_msg) {
902 CHECK(error_msg != nullptr);
913 *error_msg = StringPrintf("Failed to read the virtual page index entry from %s",
937 uint64_t* page_count, std::string* error_msg) {
944 CHECK(error_msg != nullptr);
955 if (!GetPageFrameNumber(page_map_file, virtual_page_idx, &page_frame_number, error_msg)) {
961 error_msg)) {
896 GetPageFrameNumber(File* page_map_file, size_t virtual_page_index, uint64_t* page_frame_number, std::string* error_msg) argument
930 IsPageDirty(File* page_map_file, File* clean_page_map_file, File* kpage_flags_file, File* kpage_count_file, size_t virtual_page_idx, size_t clean_virtual_page_idx, uint64_t* page_count, std::string* error_msg) argument
[all...]
/art/runtime/arch/mips/
H A Dinstruction_set_features_mips.cc67 const std::string& variant, std::string* error_msg ATTRIBUTE_UNUSED) {
204 const bool smp, const std::vector<std::string>& features, std::string* error_msg) const {
223 *error_msg = StringPrintf("Unknown instruction set feature: '%s'", feature.c_str());
/art/runtime/jit/
H A Djit.cc150 Jit* Jit::Create(JitOptions* options, std::string* error_msg) { argument
154 if (jit_compiler_handle_ == nullptr && !LoadCompiler(error_msg)) {
161 error_msg));
187 bool Jit::LoadCompilerLibrary(std::string* error_msg) { argument
193 *error_msg = oss.str();
199 *error_msg = "JIT couldn't find jit_load entry point";
206 *error_msg = "JIT couldn't find jit_unload entry point";
213 *error_msg = "JIT couldn't find jit_compile_method entry point";
220 *error_msg = "JIT couldn't find jit_types_loaded entry point";
226 bool Jit::LoadCompiler(std::string* error_msg) { argument
[all...]
/art/runtime/gc/space/
H A Dmalloc_space.cc91 std::string error_msg; local
93 PROT_READ | PROT_WRITE, true, false, &error_msg);
96 << PrettySize(*capacity) << ": " << error_msg;
191 std::string error_msg; local
193 PROT_READ | PROT_WRITE, &error_msg)); local
194 CHECK(mem_map.get() != nullptr) << error_msg;
/art/oatdump/
H A Doatdump.cc89 const DexFile* OpenDexFile(const OatFile::OatDexFile* oat_dex_file, std::string* error_msg) { argument
95 const DexFile* ret = oat_dex_file->OpenDexFile(error_msg).release();
182 std::string error_msg; local
183 const DexFile* const dex_file = OpenDexFile(oat_dex_file, &error_msg);
493 std::string error_msg; local
494 const DexFile* const dex_file = OpenDexFile(oat_dex_file, &error_msg);
497 << "': " << error_msg;
522 std::string error_msg; local
523 const DexFile* const dex_file = OpenDexFile(oat_dex_file, &error_msg);
526 << "': " << error_msg;
587 std::string error_msg; local
590 os << "NOT FOUND: " << error_msg << "\\n\\n"; local
640 std::string error_msg; local
645 os << "Failed to open dex file '" << dex_file_location << "': " << error_msg; local
1370 std::string error_msg; local
1386 os << "OAT FILE NOT FOUND: " << error_msg << "\\n"; local
2223 std::string error_msg; local
2282 std::string error_msg; local
2317 std::string error_msg; local
2339 std::string error_msg; local
[all...]
/art/runtime/arch/arm/
H A Dinstruction_set_features_arm.cc37 const std::string& variant, std::string* error_msg) {
71 *error_msg = StringPrintf("Attempt to use unsupported ARM variant: %s", variant.c_str());
268 const bool smp, const std::vector<std::string>& features, std::string* error_msg) const {
282 *error_msg = StringPrintf("Unknown instruction set feature: '%s'", feature.c_str());
36 FromVariant( const std::string& variant, std::string* error_msg) argument
/art/profman/
H A Dprofman.cc238 std::string error_msg; local
242 &error_msg));
244 LOG(WARNING) << "OpenFromFd failed for '" << dex_locations_[i] << "' " << error_msg; local
249 &error_msg,
252 LOG(WARNING) << "OpenFromZip failed for '" << dex_locations_[i] << "' " << error_msg; local
/art/dexlist/
H A Ddexlist.cc183 std::string error_msg; local
185 if (!DexFile::Open(fileName, fileName, &error_msg, &dex_files)) {
186 fputs(error_msg.c_str(), stderr);
/art/runtime/arch/x86/
H A Dinstruction_set_features_x86.cc58 const std::string& variant, std::string* error_msg ATTRIBUTE_UNUSED,
310 std::string* error_msg) const {
349 *error_msg = StringPrintf("Unknown instruction set feature: '%s'", feature.c_str());

Completed in 301 milliseconds

12345