Home
last modified time | relevance | path

Searched refs:file_offset (Results 1 – 14 of 14) 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()
Dread_elf.h44 ElfStatus GetBuildIdFromEmbeddedElfFile(const std::string& filename, uint64_t file_offset,
65 ElfStatus ParseSymbolsFromEmbeddedElfFile(const std::string& filename, uint64_t file_offset,
78 uint64_t file_offset,
Dread_apk.h71 static EmbeddedElf* FindElfInApkByOffset(const std::string& apk_path, uint64_t file_offset);
77 uint64_t file_offset);
Dread_elf.cpp183 static ElfStatus OpenObjectFile(const std::string& filename, uint64_t file_offset, in OpenObjectFile() argument
195 auto buffer_or_err = llvm::MemoryBuffer::getOpenFileSlice(fd, filename, file_size, file_offset); in OpenObjectFile()
235 ElfStatus GetBuildIdFromEmbeddedElfFile(const std::string& filename, uint64_t file_offset, in GetBuildIdFromEmbeddedElfFile() argument
238 ElfStatus result = OpenObjectFile(filename, file_offset, file_size, &wrapper); in GetBuildIdFromEmbeddedElfFile()
448 ElfStatus ParseSymbolsFromEmbeddedElfFile(const std::string& filename, uint64_t file_offset, in ParseSymbolsFromEmbeddedElfFile() argument
452 ElfStatus result = OpenObjectFile(filename, file_offset, file_size, &wrapper); in ParseSymbolsFromEmbeddedElfFile()
511 uint64_t* file_offset) { in ReadMinExecutableVirtualAddress() argument
518 *file_offset = it->p_offset; in ReadMinExecutableVirtualAddress()
526 *file_offset = 0; in ReadMinExecutableVirtualAddress()
545 uint64_t file_offset, in ReadMinExecutableVirtualAddressFromEmbeddedElfFile() argument
[all …]
Ddso.h169 virtual void GetMinExecutableVaddr(uint64_t* min_vaddr, uint64_t* file_offset) { in GetMinExecutableVaddr() argument
171 *file_offset = 0; in GetMinExecutableVaddr()
Ddso.cpp463 void SetMinExecutableVaddr(uint64_t min_vaddr, uint64_t file_offset) override { in SetMinExecutableVaddr() argument
465 file_offset_of_min_vaddr_ = file_offset; in SetMinExecutableVaddr()
468 void GetMinExecutableVaddr(uint64_t* min_vaddr, uint64_t* file_offset) override { in GetMinExecutableVaddr() argument
470 return dex_file_dso_->GetMinExecutableVaddr(min_vaddr, file_offset); in GetMinExecutableVaddr()
501 *file_offset = file_offset_of_min_vaddr_; in GetMinExecutableVaddr()
DJITDebugReader.cpp341 uint64_t file_offset; in GetDescriptorsLocation() local
344 &file_offset); in GetDescriptorsLocation()
/system/core/base/
Dmapped_file.cpp37 off64_t file_offset = offset - slop; in FromFd() local
53 file_offset, file_length); in FromFd()
61 void* base = mmap(nullptr, file_length, prot, MAP_SHARED, fd, file_offset); in FromFd()
/system/update_engine/payload_consumer/
Ddownload_action.cc125 off_t file_offset) { in WriteToP2PFile() argument
147 if (p2p_size < file_offset) { in WriteToP2PFile()
148 LOG(ERROR) << "Wanting to write to file offset " << file_offset in WriteToP2PFile()
154 off_t cur_file_offset = lseek(p2p_sharing_fd_, file_offset, SEEK_SET); in WriteToP2PFile()
155 if (cur_file_offset != static_cast<off_t>(file_offset)) { in WriteToP2PFile()
156 PLOG(ERROR) << "Error seeking to position " << file_offset in WriteToP2PFile()
164 << file_offset << " in p2p file"; in WriteToP2PFile()
Ddownload_action.h132 void WriteToP2PFile(const void* data, size_t length, off_t file_offset);
/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,
517 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()