Home
last modified time | relevance | path

Searched refs:bytes_written (Results 1 – 5 of 5) 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.cc292 bool ProfileCompilationInfo::Save(const std::string& filename, uint64_t* bytes_written) { in Save() argument
327 if (bytes_written != nullptr) { in Save()
328 *bytes_written = static_cast<uint64_t>(size); in Save()
340 int bytes_written = TEMP_FAILURE_RETRY(write(fd, buffer, byte_count)); in WriteBuffer() local
341 if (bytes_written == -1) { in WriteBuffer()
344 byte_count -= bytes_written; // Reduce the number of remaining bytes. in WriteBuffer()
345 buffer += bytes_written; // Move the buffer forward. in WriteBuffer()
Dprofile_compilation_info.h434 bool Save(const std::string& filename, uint64_t* bytes_written);
/art/libartbase/base/unix_file/
Dfd_file.cc108 DWORD bytes_written = 0; in pwrite() local
113 if (!::WriteFile(handle, buf, count, &bytes_written, &overlapped)) { in pwrite()
119 !::GetOverlappedResult(handle, &overlapped, &bytes_written, TRUE)) { in pwrite()
125 return static_cast<ssize_t>(bytes_written); in pwrite()
452 ssize_t bytes_written = kUseOffset in WriteFullyGeneric() local
455 if (bytes_written == -1) { in WriteFullyGeneric()
458 byte_count -= bytes_written; // Reduce the number of remaining bytes. in WriteFullyGeneric()
459 ptr += bytes_written; // Move the buffer forward. in WriteFullyGeneric()
460 offset += static_cast<size_t>(bytes_written); in WriteFullyGeneric()
/art/runtime/jit/
Dprofile_saver.cc623 uint64_t bytes_written; in ProcessProfilingInfo() local
626 if (info.Save(filename, &bytes_written)) { in ProcessProfilingInfo()
633 if (bytes_written > 0) { in ProcessProfilingInfo()
635 total_bytes_written_ += bytes_written; in ProcessProfilingInfo()