Home
last modified time | relevance | path

Searched refs:file_offset (Results 1 – 22 of 22) sorted by relevance

/system/extras/simpleperf/
Dread_apk.cpp38 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()
DJITDebugReader.h57 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()
Dread_elf.h67 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);
Dread_elf.cpp83 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 …]
Dread_apk.h71 static EmbeddedElf* FindElfInApkByOffset(const std::string& apk_path, uint64_t file_offset);
77 uint64_t file_offset);
Drecord_file.h205 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()
Ddso.h173 virtual void GetMinExecutableVaddr(uint64_t* min_vaddr, uint64_t* file_offset) { in GetMinExecutableVaddr() argument
175 *file_offset = 0; in GetMinExecutableVaddr()
DJITDebugReader.cpp494 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()
Ddso.cpp494 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()
Drecord_file_reader.cpp324 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()
Drecord_file_writer.cpp213 auxtrace->location.file_offset = data_section_offset_ + read_pos; in ReadDataSection()
Dcmd_record.cpp1408 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()
Drecord.h505 uint64_t file_offset = 0; member
DETMDecoder.cpp828 uint64_t offset = vaddr - segment.vaddr + segment.file_offset; in ReadMem()
Drecord.cpp1011 PrintIndented(indent, "location.file_offset %" PRIu64 "\n", location.file_offset); in DumpData()
/system/update_engine/payload_consumer/
Ddownload_action.cc121 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()
Ddownload_action.h132 void WriteToP2PFile(const void* data, size_t length, off_t file_offset);
/system/libbase/
Dmapped_file.cpp51 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/
Dsparse.h120 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/
Dsparse.cpp62 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/
Dpprof_proto_generator.py134 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/
DMapInfoCreateMemoryTest.cpp45 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()