Home
last modified time | relevance | path

Searched refs:bytes_written (Results 1 – 6 of 6) sorted by relevance

/art/libprofile/profile/
Dprofile_helpers.h31 int bytes_written = TEMP_FAILURE_RETRY(write(fd, buffer, byte_count)); in WriteBuffer() local
32 if (bytes_written == -1) { in WriteBuffer()
35 byte_count -= bytes_written; // Reduce the number of remaining bytes. in WriteBuffer()
36 buffer += bytes_written; // Move the buffer forward. in WriteBuffer()
Dprofile_compilation_info.cc825 bool ProfileCompilationInfo::Save(const std::string& filename, uint64_t* bytes_written) { in Save() argument
829 return SaveFallback(filename, bytes_written); in Save()
838 return SaveFallback(filename, bytes_written); in Save()
876 if (bytes_written != nullptr) { in Save()
877 *bytes_written = static_cast<uint64_t>(size); in Save()
888 bool ProfileCompilationInfo::SaveFallback(const std::string& filename, uint64_t* bytes_written) { in SaveFallback() argument
922 if (bytes_written != nullptr) { in SaveFallback()
923 *bytes_written = static_cast<uint64_t>(size); in SaveFallback()
938 int bytes_written = TEMP_FAILURE_RETRY(write(fd, buffer, byte_count)); in WriteBuffer() local
939 if (bytes_written == -1) { in WriteBuffer()
[all …]
Dprofile_compilation_info.h480 bool Save(const std::string& filename, uint64_t* bytes_written);
483 bool SaveFallback(const std::string& filename, uint64_t* bytes_written);
/art/odrefresh/
Dodr_statslog_android.cc62 int bytes_written = in UploadStatsIfAvailable() local
87 if (bytes_written <= 0) { in UploadStatsIfAvailable()
88 *error_msg = android::base::StringPrintf("stats_write returned %d", bytes_written); in UploadStatsIfAvailable()
/art/libartbase/base/unix_file/
Dfd_file.cc112 DWORD bytes_written = 0; in pwrite() local
117 if (!::WriteFile(handle, buf, count, &bytes_written, &overlapped)) { in pwrite()
123 !::GetOverlappedResult(handle, &overlapped, &bytes_written, TRUE)) { in pwrite()
129 return static_cast<ssize_t>(bytes_written); in pwrite()
461 ssize_t bytes_written = kUseOffset in WriteFullyGeneric() local
464 if (bytes_written == -1) { in WriteFullyGeneric()
467 byte_count -= bytes_written; // Reduce the number of remaining bytes. in WriteFullyGeneric()
468 ptr += bytes_written; // Move the buffer forward. in WriteFullyGeneric()
469 offset += static_cast<size_t>(bytes_written); in WriteFullyGeneric()
/art/runtime/jit/
Dprofile_saver.cc898 uint64_t bytes_written; in ProcessProfilingInfo() local
901 if (info.Save(filename, &bytes_written)) { in ProcessProfilingInfo()
908 if (bytes_written > 0) { in ProcessProfilingInfo()
910 total_bytes_written_ += bytes_written; in ProcessProfilingInfo()