Home
last modified time | relevance | path

Searched refs:ElfStatus (Results 1 – 8 of 8) sorted by relevance

/system/extras/simpleperf/
Dread_elf.cpp46 std::ostream& operator<<(std::ostream& os, const ElfStatus& status) { in operator <<()
48 case ElfStatus::NO_ERROR: in operator <<()
51 case ElfStatus::FILE_NOT_FOUND: in operator <<()
54 case ElfStatus::READ_FAILED: in operator <<()
57 case ElfStatus::FILE_MALFORMED: in operator <<()
60 case ElfStatus::NO_SYMBOL_TABLE: in operator <<()
63 case ElfStatus::NO_BUILD_ID: in operator <<()
66 case ElfStatus::BUILD_ID_MISMATCH: in operator <<()
69 case ElfStatus::SECTION_NOT_FOUND: in operator <<()
81 ElfStatus IsValidElfFile(int fd) { in IsValidElfFile()
[all …]
Dread_elf.h29 enum ElfStatus { enum
40 std::ostream& operator<<(std::ostream& os, const ElfStatus& status);
42 ElfStatus GetBuildIdFromNoteFile(const std::string& filename, BuildId* build_id);
43 ElfStatus GetBuildIdFromElfFile(const std::string& filename, BuildId* build_id);
44 ElfStatus GetBuildIdFromEmbeddedElfFile(const std::string& filename, uint64_t file_offset,
62 ElfStatus ParseSymbolsFromElfFile(const std::string& filename,
65 ElfStatus ParseSymbolsFromEmbeddedElfFile(const std::string& filename, uint64_t file_offset,
68 ElfStatus ParseSymbolsFromElfFileInMemory(const char* data, size_t size,
70 ElfStatus ParseDynamicSymbolsFromElfFile(const std::string& filename,
73 ElfStatus ReadMinExecutableVirtualAddressFromElfFile(const std::string& filename,
[all …]
Dread_elf_test.cpp64 ASSERT_EQ(ElfStatus::NO_ERROR, GetBuildIdFromElfFile(GetTestData(ELF_FILE), &build_id)); in TEST()
70 …ASSERT_EQ(ElfStatus::NO_ERROR, GetBuildIdFromEmbeddedElfFile(GetTestData(APK_FILE), NATIVELIB_OFFS… in TEST()
99 ASSERT_EQ(ElfStatus::NO_ERROR, ParseSymbolsFromElfFile(GetTestData(ELF_FILE), elf_file_build_id, in TEST()
106 ASSERT_EQ(ElfStatus::NO_ERROR, ParseSymbolsFromElfFile(GetTestData(ELF_FILE), BuildId(), in TEST()
114 ASSERT_EQ(ElfStatus::BUILD_ID_MISMATCH, ParseSymbolsFromElfFile(GetTestData(ELF_FILE), build_id, in TEST()
120 …ASSERT_EQ(ElfStatus::NO_SYMBOL_TABLE, ParseSymbolsFromEmbeddedElfFile(GetTestData(APK_FILE), NATIV… in TEST()
128 …ASSERT_EQ(ElfStatus::NO_ERROR, ParseSymbolsFromElfFile(GetTestData(ELF_FILE_WITH_MINI_DEBUG_INFO),… in TEST()
141 ASSERT_NE(ElfStatus::NO_ERROR, IsValidElfPath("/dev/zero")); in TEST()
143 ASSERT_EQ(ElfStatus::READ_FAILED, IsValidElfPath(tmp_file.path)); in TEST()
145 ASSERT_EQ(ElfStatus::FILE_MALFORMED, IsValidElfPath(tmp_file.path)); in TEST()
[all …]
Ddso.cpp90 if (GetBuildIdFromElfFile(path, &build_id) == ElfStatus::NO_ERROR) { in CollectBuildIdInDir()
373 static void ReportReadElfSymbolResult(ElfStatus result, const std::string& path, in ReportReadElfSymbolResult()
376 if (result == ElfStatus::NO_ERROR) { in ReportReadElfSymbolResult()
378 } else if (result == ElfStatus::NO_SYMBOL_TABLE) { in ReportReadElfSymbolResult()
477 ElfStatus result; in GetMinExecutableVaddr()
483 result = ElfStatus::FILE_NOT_FOUND; in GetMinExecutableVaddr()
492 if (result != ElfStatus::NO_ERROR) { in GetMinExecutableVaddr()
549 ElfStatus status; in LoadSymbols()
554 status = ElfStatus::FILE_NOT_FOUND; in LoadSymbols()
595 ElfStatus status = ParseSymbolsFromElfFile(vmlinux_, build_id, symbol_callback); in LoadSymbols()
[all …]
DJITDebugReader.cpp342 ElfStatus status = ReadMinExecutableVirtualAddressFromElfFile(art_lib_path, BuildId(), in GetDescriptorsLocation()
345 if (status != ElfStatus::NO_ERROR) { in GetDescriptorsLocation()
361 if (ParseDynamicSymbolsFromElfFile(art_lib_path, callback) != ElfStatus::NO_ERROR) { in GetDescriptorsLocation()
511 ElfStatus::NO_ERROR || min_addr >= max_addr) { in ReadJITCodeDebugInfo()
Dread_apk.cpp103 if (IsValidElfFile(ahelper->GetFd()) != ElfStatus::NO_ERROR) { in FindElfInApkByOffsetWithoutCache()
Denvironment.cpp272 ElfStatus result = GetBuildIdFromNoteFile("/sys/kernel/notes", build_id); in GetKernelBuildId()
273 if (result != ElfStatus::NO_ERROR) { in GetKernelBuildId()
276 return result == ElfStatus::NO_ERROR; in GetKernelBuildId()
/system/extras/perfprofd/
Dsymbolizer.cc84 ElfStatus status = ParseSymbolsFromElfFile(dso, BuildId(), callback); in LoadDso()
85 if (status == ElfStatus::NO_ERROR) { in LoadDso()
145 ElfStatus status = ReadMinExecutableVirtualAddressFromElfFile(dso, BuildId(), addr, in GetMinExecutableVAddr()
147 if (status != ElfStatus::NO_ERROR) { in GetMinExecutableVAddr()