Searched defs:filename (Results 1 - 25 of 32) sorted by path

12

/art/cmdline/
H A Dcmdline.h42 std::string* filename) {
73 *filename = system_filename;
76 *filename = cache_filename;
154 const char* filename = output_name_.c_str(); local
155 out_.reset(new std::ofstream(filename));
157 fprintf(stderr, "Failed to open output filename %s\n", filename);
41 LocationToFilename(const std::string& location, InstructionSet isa, std::string* filename) argument
/art/compiler/debug/dwarf/
H A Ddebug_line_opcode_writer.h141 void DefineFile(const char* filename, argument
146 strlen(filename) + 1 +
154 this->PushString(filename);
/art/compiler/utils/
H A Dassembler_thumb_test.cc97 const char* filename = file.GetFilename().c_str(); local
99 std::ofstream out(filename);
122 snprintf(cmd, sizeof(cmd), "%sas %s -o %s.o", toolsdir.c_str(), filename, filename);
128 snprintf(cmd, sizeof(cmd), "%sobjcopy -N '$d' %s.o %s.oo", toolsdir.c_str(), filename, filename);
135 toolsdir.c_str(), filename);
167 snprintf(buf, sizeof(buf), "%s.o", filename);
170 snprintf(buf, sizeof(buf), "%s.oo", filename);
/art/patchoat/
H A Dpatchoat.cc54 std::string* filename) {
85 *filename = system_filename;
88 *filename = cache_filename;
159 CHECK(!image_location.empty()) << "image file must have a filename.";
432 LOG(ERROR) << "No output oat filename specified, needs filename for when we are PIC";
918 UsageError(" --input-oat-file=<file.oat>: Specifies the exact filename of the oat file to be");
1058 Usage("Unable to find filename for input oat location %s", input_oat_location.c_str());
53 LocationToFilename(const std::string& location, InstructionSet isa, std::string* filename) argument
/art/profman/
H A Dprofile_assistant.cc72 static bool InitFlock(const std::string& filename, ScopedFlock& flock, std::string* error) { argument
73 return flock.Init(filename.c_str(), O_RDWR, /* block */ true, error);
H A Dprofman.cc87 UsageError(" --profile-file=<filename>: specify profiler output file to use for compilation.");
94 UsageError(" --reference-profile-file=<filename>: specify a reference profile.");
206 int DumpOneProfile(const std::string& banner, const std::string& filename, int fd, argument
208 if (!filename.empty()) {
209 fd = open(filename.c_str(), O_RDWR);
211 std::cerr << "Cannot open " << filename << strerror(errno);
/art/runtime/base/
H A Dfile_magic.cc29 ScopedFd OpenAndReadMagic(const char* filename, uint32_t* magic, std::string* error_msg) { argument
31 ScopedFd fd(open(filename, O_RDONLY, 0));
33 *error_msg = StringPrintf("Unable to open '%s' : %s", filename, strerror(errno));
38 *error_msg = StringPrintf("Failed to find magic in '%s'", filename);
42 *error_msg = StringPrintf("Failed to seek to beginning of file '%s' : %s", filename,
H A Dscoped_flock.cc28 bool ScopedFlock::Init(const char* filename, std::string* error_msg) { argument
29 return Init(filename, O_CREAT | O_RDWR, true, error_msg);
32 bool ScopedFlock::Init(const char* filename, int flags, bool block, std::string* error_msg) { argument
37 file_.reset(OS::OpenFileWithFlags(filename, flags));
39 *error_msg = StringPrintf("Failed to open file '%s': %s", filename, strerror(errno));
49 *error_msg = StringPrintf("Failed to lock file '%s': %s", filename, strerror(errno));
55 *error_msg = StringPrintf("Failed to fstat file '%s': %s", filename, strerror(errno));
59 int stat_result = TEMP_FAILURE_RETRY(stat(filename, &stat_stat));
61 PLOG(WARNING) << "Failed to stat, will retry: " << filename;
73 LOG(WARNING) << "File changed while locking, will retry: " << filename;
[all...]
/art/runtime/
H A Dcommon_runtime_test.cc82 ScratchFile::ScratchFile(const std::string& filename) : filename_(filename) { argument
398 std::string filename(dirpath);
399 filename.push_back('/');
400 filename.append(e->d_name);
401 int stat_result = lstat(filename.c_str(), &s);
402 ASSERT_EQ(0, stat_result) << "unable to stat " << filename;
404 ClearDirectory(filename.c_str());
405 int rmdir_result = rmdir(filename.c_str());
406 ASSERT_EQ(0, rmdir_result) << filename;
480 std::string filename; local
495 std::string filename = GetTestDexFileName(name); local
[all...]
H A Ddex_file.cc72 bool DexFile::GetChecksum(const char* filename, uint32_t* checksum, std::string* error_msg) { argument
78 const char* file_part = filename;
81 if (DexFile::IsMultiDexLocation(filename)) {
82 file_part_storage = GetBaseLocation(filename);
84 zip_entry_name = filename + file_part_storage.size() + 1;
95 ZipArchive::OpenFromFd(fd.release(), filename, error_msg));
112 DexFile::OpenFile(fd.release(), filename, false, error_msg));
119 *error_msg = StringPrintf("Expected valid zip or dex file: '%s'", filename);
123 bool DexFile::Open(const char* filename, const char* location, std::string* error_msg, argument
128 ScopedFd fd(OpenAndReadMagic(filename,
150 ContainsClassesDex(int fd, const char* filename) argument
160 MaybeDex(const char* filename) argument
[all...]
H A Dmem_map.cc381 const char* filename,
403 return new MemMap(filename, nullptr, 0, nullptr, 0, prot, false);
439 static_cast<int64_t>(page_aligned_offset), filename,
458 return new MemMap(filename, actual + page_offset, byte_count, actual, page_aligned_byte_count,
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
H A Dmem_map.h89 const char* filename,
99 filename,
119 const char* filename,
83 MapFile(size_t byte_count, int prot, int flags, int fd, off_t start, bool low_4gb, const char* filename, std::string* error_msg) argument
H A Dmonitor.cc271 const char* filename; local
273 TranslateLocation(visitor.method_, visitor.dex_pc_, &filename, &line_number);
286 (filename != nullptr ? filename : "null"),
376 const char* filename; local
378 TranslateLocation(m, pc, &filename, &line_number);
380 << PrettyMethod(m) << "(" << (filename != nullptr ? filename : "null") << ":"
H A Dmonitor_android.cc82 const char* filename; local
84 TranslateLocation(m, pc, &filename, &line_number);
85 cp = EventLogWriteString(cp, filename, strlen(filename));
93 } else if (strcmp(filename, owner_filename) == 0) {
H A Doat_file.cc96 OatFileBase(const std::string& filename, bool executable) : OatFile(filename, executable) {} argument
495 DlOpenOatFile(const std::string& filename, bool executable) argument
496 : OatFileBase(filename, executable),
757 ElfOatFile(const std::string& filename, bool executable) : OatFileBase(filename, executable) {} argument
872 *error_msg = StringPrintf("Failed to open oat filename for reading: %s", strerror(errno));
944 OatFile* OatFile::Open(const std::string& filename, argument
953 CHECK(!filename.empty()) << location;
957 if (!OS::FileExists(filename
[all...]
H A Dutils.cc1355 std::string* filename, std::string* error_msg) {
1366 *filename = StringPrintf("%s/%s", cache_location, cache_file.c_str());
1379 static void InsertIsaDirectory(const InstructionSet isa, std::string* filename) { argument
1382 size_t pos = filename->rfind('/');
1383 CHECK_NE(pos, std::string::npos) << *filename << " " << isa;
1384 filename->insert(pos, "/", 1);
1385 filename->insert(pos + 1, GetInstructionSetString(isa));
1390 // filename = /system/framework/<isa>/boot.art
1391 std::string filename(location);
1392 InsertIsaDirectory(isa, &filename);
1354 GetDalvikCacheFilename(const char* location, const char* cache_location, std::string* filename, std::string* error_msg) argument
1464 FileExists(const std::string& filename) argument
1469 FileExistsAndNotEmpty(const std::string& filename) argument
1891 GetFileSizeBytes(const std::string& filename) argument
[all...]
H A Dzip_archive.cc91 ZipArchive* ZipArchive::Open(const char* filename, std::string* error_msg) { argument
92 DCHECK(filename != nullptr);
95 const int32_t error = OpenArchive(filename, &handle);
106 ZipArchive* ZipArchive::OpenFromFd(int fd, const char* filename, std::string* error_msg) { argument
107 DCHECK(filename != nullptr);
111 const int32_t error = OpenArchiveFd(fd, filename, &handle);
/art/runtime/gc/space/
H A Dimage_space.cc180 static bool ReadSpecificImageHeader(const char* filename, ImageHeader* image_header) { argument
181 std::unique_ptr<File> image_file(OS::OpenFileForReading(filename));
230 static ImageHeader* ReadSpecificImageHeader(const char* filename, std::string* error_msg) { argument
232 if (!ReadSpecificImageHeader(filename, hdr.get())) {
233 *error_msg = StringPrintf("Unable to read image header for %s", filename);
1516 // If the image filename was adapted (e.g., for our tests), we need to change this here,
/art/runtime/hprof/
H A Dhprof.cc1409 // Otherwise, "filename" is used to create an output file.
1410 void DumpHeap(const char* filename, int fd, bool direct_to_ddms) { argument
1411 CHECK(filename != nullptr);
1422 Hprof hprof(filename, fd, direct_to_ddms);
/art/runtime/jit/
H A Djit.cc318 void Jit::StartProfileSaver(const std::string& filename, argument
323 ProfileSaver::Start(filename, code_cache_.get(), code_paths, foreign_dex_profile_path, app_dir);
H A Doffline_profiling_info.cc76 bool ProfileCompilationInfo::MergeAndSave(const std::string& filename, argument
82 if (!flock.Init(filename.c_str(), O_RDWR | O_NOFOLLOW | O_CLOEXEC, /* block */ false, &error)) {
83 LOG(WARNING) << "Couldn't lock the profile file " << filename << ": " << error;
104 LOG(WARNING) << "Could not merge previous profile data from file " << filename;
113 << filename << ": " << error;
115 LOG(WARNING) << "Could not load profile data from file " << filename << ": " << error;
121 PLOG(WARNING) << "Could not clear profile file: " << filename;
129 VLOG(profiler) << "Successfully saved profile info to " << filename
130 << " Size: " << GetFileSizeBytes(filename);
132 *bytes_written = GetFileSizeBytes(filename);
[all...]
H A Dprofile_compilation_info_test.cc72 const std::string& filename,
84 return info.MergeAndSave(filename, nullptr, false);
71 SaveProfilingInfo( const std::string& filename, const std::vector<ArtMethod*>& methods, const std::set<DexCacheResolvedClasses>& resolved_classes) argument
H A Dprofile_saver.cc188 ProfileCompilationInfo* ProfileSaver::GetCachedProfiledInfo(const std::string& filename) { argument
189 auto info_it = profile_cache_.find(filename);
191 info_it = profile_cache_.Put(filename, ProfileCompilationInfo());
243 const std::string& filename = it.first; local
261 ProfileCompilationInfo* info = GetCachedProfiledInfo(filename);
287 const std::string& filename = it.first; local
296 ProfileCompilationInfo* cached_info = GetCachedProfiledInfo(filename);
307 VLOG(profiler) << "Not enough information to save to: " << filename
317 if (cached_info->MergeAndSave(filename, &bytes_written, /*force*/ true)) {
335 LOG(WARNING) << "Could not save profiling info to " << filename;
[all...]
/art/runtime/native/
H A Ddalvik_system_DexFile.cc351 const char* filename,
355 if ((filename == nullptr) || !OS::FileExists(filename)) {
356 LOG(ERROR) << "DexFile_getDexOptNeeded file '" << filename << "' does not exist";
358 const char* message = (filename == nullptr) ? "<empty file name>" : filename;
382 OatFileAssistant oat_file_assistant(filename, target_instruction_set, profile_changed, false);
395 ScopedUtfChars filename(env, javaFilename);
414 OatFileAssistant oat_file_assistant(filename.c_str(), target_instruction_set,
452 ScopedUtfChars filename(en
350 GetDexOptNeeded(JNIEnv* env, const char* filename, const char* instruction_set, const char* compiler_filter_name, bool profile_changed) argument
481 const char* filename = filename_utf.c_str(); local
[all...]
H A Ddalvik_system_VMDebug.cc211 std::string filename; local
217 filename = chars.c_str();
219 filename = "[fd]";
232 hprof::DumpHeap(filename.c_str(), fd, false);

Completed in 1820 milliseconds

12