/aosp12/system/core/trusty/apploader/ |
H A D | apploader.cpp | 134 off64_t file_offset = 0; in read_file() local 135 while (file_offset < file_size) { in read_file() 137 pread(file_fd, (char*)shm + file_offset, file_size - file_offset, file_offset)); in read_file() 149 file_offset += (off64_t)num_read; in read_file() 154 if (file_offset < file_size) { in read_file() 158 assert(file_offset == file_size); in read_file()
|
/aosp12/system/extras/simpleperf/ |
H A D | read_apk.cpp | 40 EmbeddedElf* ApkInspector::FindElfInApkByOffset(const std::string& apk_path, uint64_t file_offset) { in FindElfInApkByOffset() argument 43 auto it = node.offset_map.find(file_offset); in FindElfInApkByOffset() 47 std::unique_ptr<EmbeddedElf> elf = FindElfInApkByOffsetWithoutCache(apk_path, file_offset); in FindElfInApkByOffset() 49 node.offset_map[file_offset] = std::move(elf); in FindElfInApkByOffset() 73 const std::string& apk_path, uint64_t file_offset) { in FindElfInApkByOffsetWithoutCache() argument 86 if (entry.method == kCompressStored && file_offset >= static_cast<uint64_t>(entry.offset) && in FindElfInApkByOffsetWithoutCache() 87 file_offset < static_cast<uint64_t>(entry.offset) + entry.uncompressed_length) { in FindElfInApkByOffsetWithoutCache()
|
H A D | read_elf.h | 66 uint64_t file_offset = 0; member 75 uint64_t file_offset = 0; member 104 virtual bool VaddrToOff(uint64_t vaddr, uint64_t* file_offset) = 0; 111 ElfStatus IsValidElfFile(int fd, uint64_t file_offset = 0);
|
H A D | read_elf.cpp | 84 ElfStatus IsValidElfFile(int fd, uint64_t file_offset) { in IsValidElfFile() argument 86 if (!android::base::ReadFullyAtOffset(fd, buf, 4, file_offset)) { in IsValidElfFile() 149 static ElfStatus OpenObjectFile(const std::string& filename, uint64_t file_offset, in OpenObjectFile() argument 164 ElfStatus status = IsValidElfFile(fd, file_offset); in OpenObjectFile() 330 segments[i].file_offset = phdr.p_offset; 352 sections[i].file_offset = shdr.sh_offset; 439 uint64_t ReadMinExecutableVaddr(uint64_t* file_offset) { 446 *file_offset = it->p_offset; 454 *file_offset = 0; 459 bool VaddrToOff(uint64_t vaddr, uint64_t* file_offset) override { [all …]
|
H A D | JITDebugReader.h | 60 uint64_t file_offset; member 68 const std::string& file_path, uint64_t file_offset) in JITDebugInfo() 75 file_offset(file_offset) {} in JITDebugInfo() 85 file_offset(0), in JITDebugInfo()
|
H A D | record_file.h | 227 uint64_t file_offset; member 229 AuxDataLocation(uint64_t aux_offset, uint64_t aux_size, uint64_t file_offset) in AuxDataLocation() 230 : aux_offset(aux_offset), aux_size(aux_size), file_offset(file_offset) {} in AuxDataLocation()
|
H A D | read_apk.h | 65 static EmbeddedElf* FindElfInApkByOffset(const std::string& apk_path, uint64_t file_offset); 71 uint64_t file_offset);
|
H A D | JITDebugReader.cpp | 497 uint64_t file_offset; in GetDescriptorsLocation() local 498 uint64_t min_vaddr_in_file = elf->ReadMinExecutableVaddr(&file_offset); in GetDescriptorsLocation() 678 uint64_t file_offset = symfile->GetOffset(); in ReadJITCodeDebugInfo() local 689 StringPrintf(":%" PRIu64 "-%" PRIu64, file_offset, file_offset + jit_entry.symfile_size); in ReadJITCodeDebugInfo() 691 symfile->GetPath() + location_in_file, file_offset); in ReadJITCodeDebugInfo()
|
H A D | dso.h | 166 virtual void GetMinExecutableVaddr(uint64_t* min_vaddr, uint64_t* file_offset) { in GetMinExecutableVaddr() argument 168 *file_offset = 0; in GetMinExecutableVaddr()
|
H A D | dso.cpp | 517 void SetMinExecutableVaddr(uint64_t min_vaddr, uint64_t file_offset) override { in SetMinExecutableVaddr() argument 519 file_offset_of_min_vaddr_ = file_offset; in SetMinExecutableVaddr() 522 void GetMinExecutableVaddr(uint64_t* min_vaddr, uint64_t* file_offset) override { in GetMinExecutableVaddr() argument 524 return dex_file_dso_->GetMinExecutableVaddr(min_vaddr, file_offset); in GetMinExecutableVaddr() 540 *file_offset = file_offset_of_min_vaddr_; in GetMinExecutableVaddr() 755 kernel_start_file_offset_ = section.file_offset; in ParseKernelStartAddr()
|
/aosp12/system/core/fs_mgr/libsnapshot/ |
H A D | snapuserd_readahead.cpp | 240 if (bm->new_block == 0 && bm->file_offset == 0) { in ReconstructDataFromCow() 244 loff_t buffer_offset = bm->file_offset - start_data_offset; in ReconstructDataFromCow() 308 bm->file_offset = 0; in ReadAheadIOStart() 314 loff_t file_offset = snapuserd_->GetBufferDataOffset(); in ReadAheadIOStart() local 356 bm->file_offset = file_offset; in ReadAheadIOStart() 359 file_offset += BLOCK_SZ; in ReadAheadIOStart() 381 bm->file_offset = 0; in ReadAheadIOStart()
|
/aosp12/art/libartbase/base/ |
H A D | mem_map_windows.cc | 48 off_t file_offset = fd_off - padding; in TargetMMap() local 96 file_offset + map_length > file_length.QuadPart) { in TargetMMap() 115 DWORD offset_low = static_cast<DWORD>(file_offset & 0xffffffffU); in TargetMMap() 117 DWORD offset_high = static_cast<DWORD>(file_offset >> 32); in TargetMMap()
|
/aosp12/art/dex2oat/linker/ |
H A D | oat_writer.h | 187 bool CheckOatSize(OutputStream* out, size_t file_offset, size_t relative_offset); 315 size_t WriteClassOffsets(OutputStream* out, size_t file_offset, size_t relative_offset); 316 size_t WriteClasses(OutputStream* out, size_t file_offset, size_t relative_offset); 317 size_t WriteMaps(OutputStream* out, size_t file_offset, size_t relative_offset); 318 size_t WriteIndexBssMappings(OutputStream* out, size_t file_offset, size_t relative_offset); 319 size_t WriteOatDexFiles(OutputStream* out, size_t file_offset, size_t relative_offset); 320 size_t WriteCode(OutputStream* out, size_t file_offset, size_t relative_offset); 321 size_t WriteCodeDexFiles(OutputStream* out, size_t file_offset, size_t relative_offset); 322 size_t WriteDataBimgRelRo(OutputStream* out, size_t file_offset, size_t relative_offset);
|
H A D | oat_writer.cc | 1669 const size_t file_offset, in WriteCodeMethodVisitor() argument 1679 file_offset_(file_offset), in WriteCodeMethodVisitor() 2456 size_t file_offset = oat_data_offset_; in WriteRodata() local 2462 size_t relative_offset = current_offset - file_offset; in WriteRodata() 2553 const size_t file_offset = oat_data_offset_; in WriteCode() local 2587 const size_t file_offset = oat_data_offset_; in WriteDataBimgRelRo() local 2604 if (!CheckOatSize(out, file_offset, relative_offset)) { in WriteDataBimgRelRo() 2709 const size_t file_offset = oat_data_offset_; in WriteHeader() local 3030 size_t file_offset, in WriteCodeDexFiles() argument 3049 file_offset, in WriteCodeDexFiles() [all …]
|
/aosp12/system/update_engine/cros/ |
H A D | download_action_chromeos.cc | 122 off_t file_offset) { in WriteToP2PFile() argument 144 if (p2p_size < file_offset) { in WriteToP2PFile() 145 LOG(ERROR) << "Wanting to write to file offset " << file_offset in WriteToP2PFile() 151 off_t cur_file_offset = lseek(p2p_sharing_fd_, file_offset, SEEK_SET); in WriteToP2PFile() 152 if (cur_file_offset != static_cast<off_t>(file_offset)) { in WriteToP2PFile() 153 PLOG(ERROR) << "Error seeking to position " << file_offset in WriteToP2PFile() 161 << file_offset << " in p2p file"; in WriteToP2PFile()
|
/aosp12/system/libbase/ |
H A D | mapped_file.cpp | 51 off64_t file_offset = offset - slop; in FromOsHandle() local 67 file_offset, file_length); in FromOsHandle() 75 void* base = mmap(nullptr, file_length, prot, MAP_SHARED, h, file_offset); in FromOsHandle()
|
/aosp12/bionic/linker/ |
H A D | linker.cpp | 938 *file_offset = entry.offset; in open_library_in_zipfile() 974 *file_offset = 0; in open_library_at_path() 1142 if ((file_offset % PAGE_SIZE) != 0) { in load_library() 1146 if (file_offset < 0) { in load_library() 1156 if (file_offset >= file_stat.st_size) { in load_library() 1158 name, file_offset, file_stat.st_size); in load_library() 1292 off64_t file_offset = 0; in load_library() local 1294 file_offset = extinfo->library_fd_offset; in load_library() 1309 task->set_file_offset(file_offset); in load_library() 1319 off64_t file_offset; in load_library() local [all …]
|
H A D | linker_phdr.h | 46 bool Read(const char* name, int fd, off64_t file_offset, off64_t file_size); 135 ElfW(Addr) load_bias, int fd, size_t* file_offset); 138 ElfW(Addr) load_bias, int fd, size_t* file_offset);
|
H A D | linker_phdr.cpp | 151 bool ElfReader::Read(const char* name, int fd, off64_t file_offset, off64_t file_size) { in Read() argument 157 file_offset_ = file_offset; in Read() 955 size_t* file_offset) { in phdr_table_serialize_gnu_relro() argument 973 MAP_PRIVATE|MAP_FIXED, fd, *file_offset); in phdr_table_serialize_gnu_relro() 977 *file_offset += size; in phdr_table_serialize_gnu_relro() 1003 size_t* file_offset) { in phdr_table_map_gnu_relro() argument 1030 char* file_base = static_cast<char*>(temp_mapping) + *file_offset; in phdr_table_map_gnu_relro() 1035 if (file_size - *file_offset < size) { in phdr_table_map_gnu_relro() 1059 PROT_READ, MAP_PRIVATE|MAP_FIXED, fd, *file_offset + match_offset); in phdr_table_map_gnu_relro() 1070 *file_offset += size; in phdr_table_map_gnu_relro()
|
H A D | linker_main.h | 53 const struct stat* file_stat, off64_t file_offset,
|
/aosp12/system/core/libsparse/include/sparse/ |
H A D | sparse.h | 118 int sparse_file_add_file(struct sparse_file* s, const char* filename, int64_t file_offset, 144 int sparse_file_add_fd(struct sparse_file* s, int fd, int64_t file_offset, uint64_t len,
|
/aosp12/system/core/libsparse/ |
H A D | sparse.cpp | 62 int sparse_file_add_file(struct sparse_file* s, const char* filename, int64_t file_offset, in sparse_file_add_file() argument 64 return backed_block_add_file(s->backed_block_list, filename, file_offset, len, block); in sparse_file_add_file() 67 int sparse_file_add_fd(struct sparse_file* s, int fd, int64_t file_offset, uint64_t len, in sparse_file_add_fd() argument 69 return backed_block_add_fd(s->backed_block_list, fd, file_offset, len, block); in sparse_file_add_fd()
|
/aosp12/frameworks/compile/mclinker/lib/LD/ |
H A D | GNUArchiveReader.cpp | 354 uint32_t file_offset = pFileOffset; in includeMember() local 361 pArchive, *cur_archive, file_offset, nested_offset, size); in includeMember() 366 file_offset = nested_offset; in includeMember() 401 file_offset = nested_offset; in includeMember()
|
/aosp12/system/iorap/src/prefetcher/ |
H A D | read_ahead.cc | 374 if (file_entry.file_length() < 0 || file_entry.file_offset() < 0) { in BeginTask() 381 …dAhead(session, file_entry.index_id(), kind, file_entry.file_length(), file_entry.file_offset())) { in BeginTask() 433 if (file_entry.file_length() < 0 || file_entry.file_offset() < 0) { in PrefetchSizeInBytes()
|
/aosp12/system/extras/simpleperf/scripts/ |
H A D | pprof_proto_generator.py | 134 print('%sfile_offset: %x' % (space, mapping.file_offset)) 213 self.file_offset = pgoff 222 self.file_offset, 562 profile_mapping.file_offset = mapping.file_offset
|