/system/extras/simpleperf/ |
D | build_id.h | 32 class BuildId { 36 BuildId() { memset(data_, '\0', BUILD_ID_SIZE); } in BuildId() function 39 BuildId(const void* data, size_t len) : BuildId() { in BuildId() function 44 explicit BuildId(const std::string& s) : BuildId() { in BuildId() function 71 bool operator==(const BuildId& build_id) const { 75 bool operator!=(const BuildId& build_id) const { return !(*this == build_id); } 78 static BuildId empty_build_id; in IsEmpty() 86 inline std::ostream& operator<<(std::ostream& os, const BuildId& build_id) {
|
D | get_test_data.h | 24 using BuildId = simpleperf::BuildId; variable 51 static BuildId elf_file_build_id("0b12a384a9f4a3f3659b7171ca615dbec3a81f71"); 74 static BuildId native_lib_build_id("8ed5755a7fdc07586ca228b8ee21621bce2c7a97"); 104 static BuildId CHECK_ELF_FILE_BUILD_ID("91b1c10fdd9fe2221dfec525497637f2229bfdbb");
|
D | dso.h | 44 std::string FindDebugFile(const std::string& dso_path, bool force_64bit, BuildId& build_id); 128 static void SetBuildIds(const std::vector<std::pair<std::string, BuildId>>& build_ids); 129 static BuildId FindExpectedBuildIdForPath(const std::string& path); 135 BuildId& build_id); 191 static std::unordered_map<std::string, BuildId> build_id_map_; 197 BuildId GetExpectedBuildId(); 221 bool GetBuildIdFromDsoPath(const std::string& dso_path, BuildId* build_id);
|
D | read_elf.h | 48 ElfStatus GetBuildIdFromNoteFile(const std::string& filename, BuildId* build_id); 88 const BuildId* expected_build_id, ElfStatus* status); 96 virtual ElfStatus GetBuildId(BuildId* build_id) = 0; 113 bool GetBuildIdFromNoteSection(const char* section, size_t section_size, BuildId* build_id);
|
D | dso_test.cpp | 40 BuildId build_id(ELF_FILE_BUILD_ID); in TEST() 68 BuildId build_id(ELF_FILE_BUILD_ID); in TEST() 82 BuildId build_id; in TEST() 117 BuildId build_id; in TEST() 125 BuildId build_id(ELF_FILE_BUILD_ID); in TEST() 134 build_id = BuildId(); in TEST() 144 BuildId mismatch_build_id("0c12a384a9f4a3f3659b7171ca615dbec3a81f71"); in TEST() 204 BuildId build_id; in TEST() 249 Dso::SetBuildIds({std::make_pair(DEFAULT_KERNEL_MMAP_NAME, BuildId(ELF_FILE_BUILD_ID))}); in TEST() 258 std::vector<std::pair<std::string, BuildId>> build_ids; in TEST() [all …]
|
D | read_elf_test.cpp | 36 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()
|
D | dso.cpp | 98 BuildId build_id; in CollectBuildIdInDir() 116 static bool CheckDebugFilePath(const std::string& path, BuildId& build_id, in CheckDebugFilePath() 123 BuildId debug_build_id; in CheckDebugFilePath() 140 BuildId& build_id) { in FindDebugFile() 243 std::unordered_map<std::string, BuildId> Dso::build_id_map_; 291 void Dso::SetBuildIds(const std::vector<std::pair<std::string, BuildId>>& build_ids) { in SetBuildIds() 292 std::unordered_map<std::string, BuildId> map; in SetBuildIds() 304 BuildId Dso::FindExpectedBuildIdForPath(const std::string& path) { in FindExpectedBuildIdForPath() 309 return BuildId(); in FindExpectedBuildIdForPath() 312 BuildId Dso::GetExpectedBuildId() { in GetExpectedBuildId() [all …]
|
D | environment_test.cpp | 109 BuildId build_id; in TEST() 114 ASSERT_EQ(build_id, BuildId("3e0ba155286f3454")); in TEST()
|
D | record_file_test.cpp | 74 char p[BuildId::Size()]; in TEST_F() 75 for (size_t i = 0; i < BuildId::Size(); ++i) { in TEST_F() 78 BuildId build_id(p); in TEST_F()
|
D | environment.h | 69 bool GetKernelBuildId(BuildId* build_id); 70 bool GetModuleBuildId(const std::string& module_name, BuildId* build_id,
|
D | read_elf.cpp | 92 bool GetBuildIdFromNoteSection(const char* section, size_t section_size, BuildId* build_id) { in GetBuildIdFromNoteSection() 111 *build_id = BuildId(p + namesz, descsz); in GetBuildIdFromNoteSection() 122 ElfStatus GetBuildIdFromNoteFile(const std::string& filename, BuildId* build_id) { in GetBuildIdFromNoteFile() 358 ElfStatus GetBuildId(BuildId* build_id) override { in GetBuildId() 501 const BuildId* expected_build_id, ElfStatus* status) { in Open() 531 BuildId real_build_id; in Open()
|
D | cmd_inject.cpp | 336 auto check_build_id = [](Dso* dso, const BuildId& expected_build_id) { in ProcessBranchListFile() 340 BuildId build_id; in ProcessBranchListFile() 347 BuildId build_id(binary_proto.build_id()); in ProcessBranchListFile() 510 BuildId build_id = Dso::FindExpectedBuildIdForPath(dso->Path()); in GenerateBranchList()
|
D | record.h | 438 BuildId build_id; 443 BuildIdRecord(bool in_kernel, uint32_t pid, const BuildId& build_id, const std::string& filename);
|
D | environment.cpp | 190 bool GetKernelBuildId(BuildId* build_id) { in GetKernelBuildId() 198 bool GetModuleBuildId(const std::string& module_name, BuildId* build_id, in GetModuleBuildId()
|
D | report_lib_interface.cpp | 375 BuildId build_id = Dso::FindExpectedBuildIdForPath(path); in GetBuildIdForPath()
|
D | record_file_reader.cpp | 593 std::vector<std::pair<std::string, BuildId>> build_ids; in LoadBuildIdAndFileFeatures()
|
D | record.cpp | 891 build_id = BuildId(p, BUILD_ID_SIZE); in BuildIdRecord() 904 BuildIdRecord::BuildIdRecord(bool in_kernel, uint32_t pid, const BuildId& build_id, in BuildIdRecord()
|
D | cmd_record.cpp | 1846 BuildId build_id; in DumpBuildIdFeature()
|
/system/extras/simpleperf/nonlinux_support/ |
D | nonlinux_support.cpp | 26 bool GetKernelBuildId(BuildId*) { in GetKernelBuildId() argument
|