Home
last modified time | relevance | path

Searched refs:BuildId (Results 1 – 19 of 19) sorted by relevance

/system/extras/simpleperf/
Dbuild_id.h30 class BuildId {
36 BuildId() { in BuildId() function
41 BuildId(const void* data, size_t len) : BuildId() { in BuildId() function
46 explicit BuildId(const std::string& s) : BuildId() { in BuildId() function
75 bool operator==(const BuildId& build_id) const {
79 bool operator!=(const BuildId& build_id) const {
84 static BuildId empty_build_id; in IsEmpty()
92 inline std::ostream& operator<<(std::ostream& os, const BuildId& build_id) {
Ddso_test.cpp38 BuildId build_id(ELF_FILE_BUILD_ID); in TEST()
66 BuildId build_id(ELF_FILE_BUILD_ID); in TEST()
80 BuildId build_id; in TEST()
115 BuildId build_id; in TEST()
123 BuildId build_id(ELF_FILE_BUILD_ID); in TEST()
132 build_id = BuildId(); in TEST()
142 BuildId mismatch_build_id("0c12a384a9f4a3f3659b7171ca615dbec3a81f71"); in TEST()
202 BuildId build_id; in TEST()
216 std::vector<std::pair<std::string, BuildId>> build_ids; in TEST()
217 build_ids.emplace_back(ELF_FILE, BuildId(ELF_FILE_BUILD_ID)); in TEST()
Ddso.h43 BuildId& build_id);
136 const std::vector<std::pair<std::string, BuildId>>& build_ids);
137 static BuildId FindExpectedBuildIdForPath(const std::string& path);
143 BuildId& build_id);
197 static std::unordered_map<std::string, BuildId> build_id_map_;
203 BuildId GetExpectedBuildId();
228 bool GetBuildIdFromDsoPath(const std::string& dso_path, BuildId* build_id);
Dread_elf.h42 ElfStatus GetBuildIdFromNoteFile(const std::string& filename, BuildId* build_id);
81 const BuildId* expected_build_id, ElfStatus* status);
88 virtual ElfStatus GetBuildId(BuildId* build_id) = 0;
107 bool GetBuildIdFromNoteSection(const char* section, size_t section_size, BuildId* build_id);
Dget_test_data.h48 static BuildId elf_file_build_id("0b12a384a9f4a3f3659b7171ca615dbec3a81f71");
72 static BuildId native_lib_build_id("8ed5755a7fdc07586ca228b8ee21621bce2c7a97");
100 static BuildId CHECK_ELF_FILE_BUILD_ID("91b1c10fdd9fe2221dfec525497637f2229bfdbb");
Ddso.cpp91 BuildId build_id; in CollectBuildIdInDir()
109 static bool CheckDebugFilePath(const std::string& path, BuildId& build_id, in CheckDebugFilePath()
116 BuildId debug_build_id; in CheckDebugFilePath()
133 BuildId& build_id) { in FindDebugFile()
226 std::unordered_map<std::string, BuildId> Dso::build_id_map_;
272 const std::vector<std::pair<std::string, BuildId>>& build_ids) { in SetBuildIds()
273 std::unordered_map<std::string, BuildId> map; in SetBuildIds()
286 BuildId Dso::FindExpectedBuildIdForPath(const std::string& path) { in FindExpectedBuildIdForPath()
291 return BuildId(); in FindExpectedBuildIdForPath()
294 BuildId Dso::GetExpectedBuildId() { in GetExpectedBuildId()
[all …]
Dread_elf_test.cpp36 BuildId build_id; in TEST()
46 BuildId expected_build_id(build_id_data, 20); in TEST()
66 BuildId build_id; in TEST()
71 ASSERT_EQ(build_id, BuildId(elf_file_build_id)); in TEST()
75 BuildId build_id; in TEST()
128 BuildId build_id; in TEST()
137 BuildId build_id("01010101010101010101"); in TEST()
205 BuildId build_id; in TEST()
Denvironment_test.cpp106 BuildId build_id; in TEST()
111 ASSERT_EQ(build_id, BuildId("3e0ba155286f3454")); in TEST()
Drecord_file_test.cpp70 char p[BuildId::Size()]; in TEST_F()
71 for (size_t i = 0; i < BuildId::Size(); ++i) { in TEST_F()
74 BuildId build_id(p); in TEST_F()
Denvironment.h64 bool GetKernelBuildId(BuildId* build_id);
65 bool GetModuleBuildId(const std::string& module_name, BuildId* build_id,
Dread_elf.cpp91 bool GetBuildIdFromNoteSection(const char* section, size_t section_size, BuildId* build_id) { in GetBuildIdFromNoteSection()
110 *build_id = BuildId(p + namesz, descsz); in GetBuildIdFromNoteSection()
121 ElfStatus GetBuildIdFromNoteFile(const std::string& filename, BuildId* build_id) { in GetBuildIdFromNoteFile()
342 ElfStatus GetBuildId(BuildId* build_id) override { in GetBuildId()
487 const BuildId* expected_build_id, ElfStatus* status) { in Open()
515 BuildId real_build_id; in Open()
Dcmd_inject.cpp301 auto check_build_id = [](Dso* dso, const BuildId& expected_build_id) { in ProcessBranchListFile()
305 BuildId build_id; in ProcessBranchListFile()
312 BuildId build_id(binary_proto.build_id()); in ProcessBranchListFile()
408 BuildId build_id = Dso::FindExpectedBuildIdForPath(dso->Path()); in PostProcessBranchList()
Drecord.h445 BuildId build_id;
450 BuildIdRecord(bool in_kernel, pid_t pid, const BuildId& build_id,
Denvironment.cpp246 bool GetKernelBuildId(BuildId* build_id) { in GetKernelBuildId()
254 bool GetModuleBuildId(const std::string& module_name, BuildId* build_id, in GetModuleBuildId()
Dreport_lib_interface.cpp441 BuildId build_id = Dso::FindExpectedBuildIdForPath(path); in GetBuildIdForPath()
Drecord_file_reader.cpp541 std::vector<std::pair<std::string, BuildId>> build_ids; in LoadBuildIdAndFileFeatures()
Drecord.cpp898 build_id = BuildId(p, BUILD_ID_SIZE); in BuildIdRecord()
911 BuildIdRecord::BuildIdRecord(bool in_kernel, pid_t pid, const BuildId& build_id, in BuildIdRecord()
Dcmd_record.cpp1716 BuildId build_id; in DumpBuildIdFeature()
/system/extras/simpleperf/nonlinux_support/
Dnonlinux_support.cpp24 bool GetKernelBuildId(BuildId*) { in GetKernelBuildId() argument