/system/extras/simpleperf/ |
D | read_apk.cpp | 38 EmbeddedElf* ApkInspector::FindElfInApkByOffset(const std::string& apk_path, uint64_t file_offset) { in FindElfInApkByOffset() argument 41 auto it = node.offset_map.find(file_offset); in FindElfInApkByOffset() 45 std::unique_ptr<EmbeddedElf> elf = FindElfInApkByOffsetWithoutCache(apk_path, file_offset); in FindElfInApkByOffset() 47 node.offset_map[file_offset] = std::move(elf); in FindElfInApkByOffset() 71 const std::string& apk_path, uint64_t file_offset) { in FindElfInApkByOffsetWithoutCache() argument 85 file_offset >= static_cast<uint64_t>(entry.offset) && in FindElfInApkByOffsetWithoutCache() 86 file_offset < static_cast<uint64_t>(entry.offset) + entry.uncompressed_length) { in FindElfInApkByOffsetWithoutCache()
|
D | JITDebugReader.h | 57 uint64_t file_offset; member 65 const std::string& file_path, uint64_t file_offset) in JITDebugInfo() 72 file_offset(file_offset) {} in JITDebugInfo() 82 file_offset(0), in JITDebugInfo()
|
D | read_elf.h | 67 uint64_t file_offset = 0; member 96 virtual bool VaddrToOff(uint64_t vaddr, uint64_t* file_offset) = 0; 105 ElfStatus IsValidElfFile(int fd, uint64_t file_offset = 0);
|
D | read_elf.cpp | 83 ElfStatus IsValidElfFile(int fd, uint64_t file_offset) { in IsValidElfFile() argument 85 if (!android::base::ReadFullyAtOffset(fd, buf, 4, file_offset)) { in IsValidElfFile() 138 static ElfStatus OpenObjectFile(const std::string& filename, uint64_t file_offset, in OpenObjectFile() argument 153 ElfStatus status = IsValidElfFile(fd, file_offset); in OpenObjectFile() 157 auto buffer_or_err = llvm::MemoryBuffer::getOpenFileSlice(fd, filename, file_size, file_offset); in OpenObjectFile() 334 segments[i].file_offset = phdr.p_offset; in GetProgramHeader() 423 uint64_t ReadMinExecutableVaddr(uint64_t* file_offset) { in ReadMinExecutableVaddr() argument 430 *file_offset = it->p_offset; in ReadMinExecutableVaddr() 438 *file_offset = 0; in ReadMinExecutableVaddr() 443 bool VaddrToOff(uint64_t vaddr, uint64_t* file_offset) override { in VaddrToOff() argument [all …]
|
D | read_apk.h | 71 static EmbeddedElf* FindElfInApkByOffset(const std::string& apk_path, uint64_t file_offset); 77 uint64_t file_offset);
|
D | record_file.h | 205 uint64_t file_offset; member 207 AuxDataLocation(uint64_t aux_offset, uint64_t aux_size, uint64_t file_offset) in AuxDataLocation() 208 : aux_offset(aux_offset), aux_size(aux_size), file_offset(file_offset) {} in AuxDataLocation()
|
D | dso.h | 173 virtual void GetMinExecutableVaddr(uint64_t* min_vaddr, uint64_t* file_offset) { in GetMinExecutableVaddr() argument 175 *file_offset = 0; in GetMinExecutableVaddr()
|
D | JITDebugReader.cpp | 494 uint64_t file_offset; in GetDescriptorsLocation() local 495 uint64_t min_vaddr_in_file = elf->ReadMinExecutableVaddr(&file_offset); in GetDescriptorsLocation() 679 uint64_t file_offset = app_symfile_->GetOffset(); in ReadJITCodeDebugInfo() local 694 StringPrintf(":%" PRIu64 "-%" PRIu64, file_offset, file_offset + jit_entry.symfile_size); in ReadJITCodeDebugInfo() 696 app_symfile_->GetPath() + location_in_file, file_offset); in ReadJITCodeDebugInfo()
|
D | dso.cpp | 494 void SetMinExecutableVaddr(uint64_t min_vaddr, uint64_t file_offset) override { in SetMinExecutableVaddr() argument 496 file_offset_of_min_vaddr_ = file_offset; in SetMinExecutableVaddr() 499 void GetMinExecutableVaddr(uint64_t* min_vaddr, uint64_t* file_offset) override { in GetMinExecutableVaddr() argument 501 return dex_file_dso_->GetMinExecutableVaddr(min_vaddr, file_offset); in GetMinExecutableVaddr() 517 *file_offset = file_offset_of_min_vaddr_; in GetMinExecutableVaddr()
|
D | record_file_reader.cpp | 324 auxtrace->location.file_offset = header_.data.offset + read_record_size_; in ReadRecord() 591 if (!ReadAtOffset(aux_offset - location->aux_offset + location->file_offset, buf, size)) { in ReadAuxData()
|
D | record_file_writer.cpp | 213 auxtrace->location.file_offset = data_section_offset_ + read_pos; in ReadDataSection()
|
D | cmd_record.cpp | 1408 info.jit_code_len, info.file_offset, map_flags::PROT_JIT_SYMFILE_MAP, in ProcessJITDebugInfo() 1651 auxtrace_offset.emplace_back(auxtrace->location.file_offset - auxtrace->size()); in DumpAdditionalFeatures() 1882 filters->emplace_back(AddrFilter::FILE_RANGE, seg.file_offset, seg.file_size, args[1]); in ParseOneAddrFilter()
|
D | record.h | 505 uint64_t file_offset = 0; member
|
D | ETMDecoder.cpp | 828 uint64_t offset = vaddr - segment.vaddr + segment.file_offset; in ReadMem()
|
D | record.cpp | 1011 PrintIndented(indent, "location.file_offset %" PRIu64 "\n", location.file_offset); in DumpData()
|
/system/update_engine/payload_consumer/ |
D | download_action.cc | 121 off_t file_offset) { in WriteToP2PFile() argument 143 if (p2p_size < file_offset) { in WriteToP2PFile() 144 LOG(ERROR) << "Wanting to write to file offset " << file_offset in WriteToP2PFile() 150 off_t cur_file_offset = lseek(p2p_sharing_fd_, file_offset, SEEK_SET); in WriteToP2PFile() 151 if (cur_file_offset != static_cast<off_t>(file_offset)) { in WriteToP2PFile() 152 PLOG(ERROR) << "Error seeking to position " << file_offset in WriteToP2PFile() 160 << file_offset << " in p2p file"; in WriteToP2PFile()
|
D | download_action.h | 132 void WriteToP2PFile(const void* data, size_t length, off_t file_offset);
|
/system/libbase/ |
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()
|
/system/core/libsparse/include/sparse/ |
D | sparse.h | 120 const char *filename, int64_t file_offset, unsigned int len, 147 int fd, int64_t file_offset, unsigned int len, unsigned int block);
|
/system/core/libsparse/ |
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, unsigned int 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()
|
/system/extras/simpleperf/scripts/ |
D | pprof_proto_generator.py | 134 print('%sfile_offset: %x' % (space, mapping.file_offset)) 213 self.file_offset = pgoff 222 self.file_offset, 565 profile_mapping.file_offset = mapping.file_offset
|
/system/core/libunwindstack/tests/ |
D | MapInfoCreateMemoryTest.cpp | 45 static void InitElf(int fd, uint64_t file_offset, uint64_t sh_offset, uint8_t class_type) { in InitElf() argument 56 memcpy(&buffer[file_offset], &ehdr, sizeof(ehdr)); in InitElf()
|