Home
last modified time | relevance | path

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

/system/extras/simpleperf/
Dread_apk.cpp37 EmbeddedElf* ApkInspector::FindElfInApkByOffset(const std::string& apk_path, uint64_t file_offset) { in FindElfInApkByOffset() argument
39 ApkOffset ami(apk_path, file_offset); in FindElfInApkByOffset()
44 std::unique_ptr<EmbeddedElf> elf = FindElfInApkByOffsetWithoutCache(apk_path, file_offset); in FindElfInApkByOffset()
51 uint64_t file_offset) { in FindElfInApkByOffsetWithoutCache() argument
81 file_offset >= static_cast<uint64_t>(zentry.offset) && in FindElfInApkByOffsetWithoutCache()
82 file_offset < static_cast<uint64_t>(zentry.offset + zentry.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,
Dread_apk.h77 static EmbeddedElf* FindElfInApkByOffset(const std::string& apk_path, uint64_t file_offset);
83 uint64_t file_offset);
Dread_elf.cpp177 static ElfStatus OpenObjectFile(const std::string& filename, uint64_t file_offset, in OpenObjectFile() argument
189 …ffer_or_err = llvm::MemoryBuffer::getOpenFileSlice(fhelper.fd(), filename, file_size, file_offset); in OpenObjectFile()
229 ElfStatus GetBuildIdFromEmbeddedElfFile(const std::string& filename, uint64_t file_offset, in GetBuildIdFromEmbeddedElfFile() argument
232 ElfStatus result = OpenObjectFile(filename, file_offset, file_size, &wrapper); in GetBuildIdFromEmbeddedElfFile()
436 ElfStatus ParseSymbolsFromEmbeddedElfFile(const std::string& filename, uint64_t file_offset, in ParseSymbolsFromEmbeddedElfFile() argument
440 ElfStatus result = OpenObjectFile(filename, file_offset, file_size, &wrapper); in ParseSymbolsFromEmbeddedElfFile()
/system/update_engine/payload_consumer/
Ddownload_action.cc124 off_t file_offset) { in WriteToP2PFile() argument
146 if (p2p_size < file_offset) { in WriteToP2PFile()
147 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()
157 << file_offset << " in p2p file"; in WriteToP2PFile()
165 << file_offset << " in p2p file"; in WriteToP2PFile()
Ddownload_action.h136 void WriteToP2PFile(const void* data, size_t length, off_t file_offset);
/system/core/libsparse/include/sparse/
Dsparse.h114 const char *filename, int64_t file_offset, unsigned int len,
141 int fd, int64_t file_offset, unsigned int len, unsigned int block);
/system/core/libsparse/
Dsparse.c68 const char *filename, int64_t file_offset, unsigned int len, in sparse_file_add_file() argument
71 return backed_block_add_file(s->backed_block_list, filename, file_offset, in sparse_file_add_file()
76 int fd, int64_t file_offset, unsigned int len, unsigned int block) in sparse_file_add_fd() argument
78 return backed_block_add_fd(s->backed_block_list, fd, file_offset, in sparse_file_add_fd()
/system/core/libunwindstack/tests/
DMapInfoCreateMemoryTest.cpp44 static void InitElf(int fd, uint64_t file_offset, uint64_t sh_offset, uint8_t class_type) { in InitElf() argument
55 memcpy(&buffer[file_offset], &ehdr, sizeof(ehdr)); in InitElf()
/system/extras/simpleperf/scripts/
Dpprof_proto_generator.py141 print('%sfile_offset: %x' % (space, mapping.file_offset))
228 self.file_offset = pgoff
237 self.file_offset,
526 profile_mapping.file_offset = mapping.file_offset