/art/runtime/base/ |
H A D | file_magic.cc | 29 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 D | scoped_flock.cc | 28 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 D | monitor_android.cc | 82 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 D | zip_archive.cc | 91 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);
|
H A D | mem_map.h | 89 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 D | common_runtime_test.cc | 82 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 D | mem_map.cc | 381 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
|
/art/test/595-profile-saving/ |
H A D | profile-saving.cc | 73 JNIEnv* env, jclass cls, jstring filename, jint method_index) { 74 ScopedUtfChars filename_chars(env, filename); 72 Java_Main_presentInProfile( JNIEnv* env, jclass cls, jstring filename, jint method_index) argument
|
/art/test/570-checker-osr/src/ |
H A D | DeoptimizationController.java | 92 public static void startMethodTracing(String filename, int bufferSize, int flags, argument 94 startMethodTracingMethod.invoke(null, filename, bufferSize, flags, samplingEnabled,
|
/art/test/802-deoptimization/src/ |
H A D | DeoptimizationController.java | 89 public static void startMethodTracing(String filename, int bufferSize, int flags, argument 91 startMethodTracingMethod.invoke(null, filename, bufferSize, flags, samplingEnabled,
|
/art/profman/ |
H A D | profile_assistant.cc | 72 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 D | profman.cc | 87 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/test/545-tracing-and-jit/src/ |
H A D | Main.java | 239 public static void startMethodTracing(String filename, int bufferSize, int flags, argument 241 startMethodTracingMethod.invoke(null, filename, bufferSize, flags, samplingEnabled,
|
/art/test/595-profile-saving/src/ |
H A D | Main.java | 66 String filename); 65 getProfileInfoDump( String filename) argument
|
/art/tools/dexfuzz/src/dexfuzz/rawdex/ |
H A D | DexRandomAccessFile.java | 43 * @param filename The file to open. 46 public DexRandomAccessFile(String filename, String mode) argument 48 super(filename, mode);
|
/art/compiler/utils/ |
H A D | assembler_thumb_test.cc | 97 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/runtime/jit/ |
H A D | profile_compilation_info_test.cc | 72 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 D | jit.cc | 318 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 D | offline_profiling_info.cc | 76 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 D | profile_saver.cc | 188 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/compiler/debug/dwarf/ |
H A D | debug_line_opcode_writer.h | 141 void DefineFile(const char* filename, argument 146 strlen(filename) + 1 + 154 this->PushString(filename);
|
/art/test/099-vmdebug/src/ |
H A D | Main.java | 104 System.out.println("Test tracing with empty filename"); 278 public static void startMethodTracing(String filename, int bufferSize, int flags, argument 280 startMethodTracingMethod.invoke(null, filename, bufferSize, flags, samplingEnabled,
|
/art/cmdline/ |
H A D | cmdline.h | 42 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/runtime/native/ |
H A D | dalvik_system_DexFile.cc | 351 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 D | dalvik_system_VMDebug.cc | 211 std::string filename; local 217 filename = chars.c_str(); 219 filename = "[fd]"; 232 hprof::DumpHeap(filename.c_str(), fd, false);
|