Home
last modified time | relevance | path

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

/system/extras/simpleperf/
Dread_elf_test.cpp67 ElfStatus status; in TEST()
69 ASSERT_EQ(status, ElfStatus::NO_ERROR); in TEST()
70 ASSERT_EQ(ElfStatus::NO_ERROR, elf->GetBuildId(&build_id)); in TEST()
76 ElfStatus status; in TEST()
79 ASSERT_EQ(status, ElfStatus::NO_ERROR); in TEST()
80 ASSERT_EQ(ElfStatus::NO_ERROR, elf->GetBuildId(&build_id)); in TEST()
108 ElfStatus status; in TEST()
110 ASSERT_EQ(ElfStatus::NO_ERROR, status); in TEST()
111 ASSERT_EQ(ElfStatus::NO_ERROR, in TEST()
118 ElfStatus status; in TEST()
[all …]
Dread_elf.cpp49 std::ostream& operator<<(std::ostream& os, const ElfStatus& status) { in operator <<()
51 case ElfStatus::NO_ERROR: in operator <<()
54 case ElfStatus::FILE_NOT_FOUND: in operator <<()
57 case ElfStatus::READ_FAILED: in operator <<()
60 case ElfStatus::FILE_MALFORMED: in operator <<()
63 case ElfStatus::NO_SYMBOL_TABLE: in operator <<()
66 case ElfStatus::NO_BUILD_ID: in operator <<()
69 case ElfStatus::BUILD_ID_MISMATCH: in operator <<()
72 case ElfStatus::SECTION_NOT_FOUND: in operator <<()
84 ElfStatus IsValidElfFile(int fd, uint64_t file_offset) { in IsValidElfFile()
[all …]
Dread_elf.h35 enum class ElfStatus { enum
46 std::ostream& operator<<(std::ostream& os, const ElfStatus& status);
48 ElfStatus GetBuildIdFromNoteFile(const std::string& filename, BuildId* build_id);
83 static std::unique_ptr<ElfFile> Open(const std::string& filename, ElfStatus* status) { in Open()
88 const BuildId* expected_build_id, ElfStatus* status);
89 static std::unique_ptr<ElfFile> Open(const char* data, size_t size, ElfStatus* status);
96 virtual ElfStatus GetBuildId(BuildId* build_id) = 0;
99 virtual ElfStatus ParseSymbols(const ParseSymbolCallback& callback) = 0;
102 virtual ElfStatus ReadSection(const std::string& section_name, std::string* content) = 0;
111 ElfStatus IsValidElfFile(int fd, uint64_t file_offset = 0);
Ddso.cpp99 ElfStatus status; in CollectBuildIdInDir()
101 if (status == ElfStatus::NO_ERROR && elf->GetBuildId(&build_id) == ElfStatus::NO_ERROR) { in CollectBuildIdInDir()
118 ElfStatus status; in CheckDebugFilePath()
125 if (status != ElfStatus::NO_ERROR && status != ElfStatus::NO_BUILD_ID) { in CheckDebugFilePath()
422 ElfStatus result, const std::string& path, const std::string& debug_file_path, in ReportReadElfSymbolResult()
424 if (result == ElfStatus::NO_ERROR) { in ReportReadElfSymbolResult()
426 } else if (result == ElfStatus::NO_SYMBOL_TABLE) { in ReportReadElfSymbolResult()
530 ElfStatus status; in GetMinExecutableVaddr()
588 ElfStatus status; in LoadSymbolsImpl()
614 ElfStatus status; in KernelDso()
[all …]
Denvironment.cpp191 ElfStatus result = GetBuildIdFromNoteFile("/sys/kernel/notes", build_id); in GetKernelBuildId()
192 if (result != ElfStatus::NO_ERROR) { in GetKernelBuildId()
195 return result == ElfStatus::NO_ERROR; in GetKernelBuildId()
201 return GetBuildIdFromNoteFile(notefile, build_id) == ElfStatus::NO_ERROR; in GetModuleBuildId()
Dread_apk.cpp100 if (IsValidElfFile(ahelper->GetFd(), found_entry.offset) != ElfStatus::NO_ERROR) { in FindElfInApkByOffsetWithoutCache()
DJITDebugReader.cpp491 ElfStatus status; in GetDescriptorsLocation()
697 ElfStatus status; in ReadJITCodeDebugInfo()
DETMDecoder.cpp289 ElfStatus status; in GetMemoryBuffer()
789 ElfStatus status; in Init()
Dcmd_inject.cpp481 ElfStatus status; in GetFirstLoadSegmentVaddr()