Home
last modified time | relevance | path

Searched refs:build_id (Results 1 – 25 of 98) sorted by relevance

1234

/system/core/debuggerd/libdebuggerd/test/
Delf_fake.cpp29 void elf_set_fake_build_id(const std::string& build_id) { in elf_set_fake_build_id() argument
30 g_build_id = build_id; in elf_set_fake_build_id()
33 bool elf_get_build_id(unwindstack::Memory*, uintptr_t, std::string* build_id) { in elf_get_build_id() argument
35 *build_id = g_build_id; in elf_get_build_id()
DUnwinderMock.h33 void MockSetBuildID(uint64_t offset, const std::string& build_id) { in MockSetBuildID() argument
36 map_info->SetBuildID(std::string(build_id)); in MockSetBuildID()
/system/extras/simpleperf/
Dbuild_id.h71 bool operator==(const BuildId& build_id) const {
72 return memcmp(data_, build_id.data_, BUILD_ID_SIZE) == 0;
75 bool operator!=(const BuildId& build_id) const { return !(*this == build_id); }
86 inline std::ostream& operator<<(std::ostream& os, const BuildId& build_id) {
87 os << build_id.ToString();
Dread_elf_test.cpp36 BuildId build_id; in TEST() local
39 ASSERT_FALSE(GetBuildIdFromNoteSection(data.data(), 0, &build_id)); in TEST()
60 ASSERT_TRUE(GetBuildIdFromNoteSection(start, p - start, &build_id)); in TEST()
61 ASSERT_TRUE(build_id == expected_build_id); in TEST()
66 BuildId build_id; in TEST() local
70 ASSERT_EQ(ElfStatus::NO_ERROR, elf->GetBuildId(&build_id)); in TEST()
71 ASSERT_EQ(build_id, BuildId(elf_file_build_id)); in TEST()
75 BuildId build_id; in TEST() local
80 ASSERT_EQ(ElfStatus::NO_ERROR, elf->GetBuildId(&build_id)); in TEST()
81 ASSERT_EQ(build_id, native_lib_build_id); in TEST()
[all …]
Ddso_test.cpp40 BuildId build_id(ELF_FILE_BUILD_ID); in TEST() local
42 "%s=%s\n", build_id.ToString().c_str(), android::base::Basename(tmpfile.path).c_str()); in TEST()
48 ASSERT_EQ(finder.FindDebugFile("elf", false, build_id), std::string(tmpfile.path)); in TEST()
68 BuildId build_id(ELF_FILE_BUILD_ID); in TEST() local
69 ASSERT_EQ(finder.FindDebugFile(ELF_FILE, false, build_id), GetTestDataDir() + ELF_FILE); in TEST()
82 BuildId build_id; in TEST() local
83 ASSERT_EQ(finder.FindDebugFile("[vdso]", false, build_id), fake_vdso32); in TEST()
84 ASSERT_EQ(finder.FindDebugFile("[vdso]", true, build_id), fake_vdso64); in TEST()
117 BuildId build_id; in TEST() local
118 ASSERT_EQ(finder.FindDebugFile("elf", false, build_id), symfs_dir + OS_PATH_SEPARATOR + "elf"); in TEST()
[all …]
Ddso.cpp98 BuildId build_id; in CollectBuildIdInDir() local
101 if (status == ElfStatus::NO_ERROR && elf->GetBuildId(&build_id) == ElfStatus::NO_ERROR) { in CollectBuildIdInDir()
102 build_id_to_file_map_[build_id.ToString()] = path; in CollectBuildIdInDir()
116 static bool CheckDebugFilePath(const std::string& path, BuildId& build_id, in CheckDebugFilePath() argument
131 bool match = build_id == debug_build_id; in CheckDebugFilePath()
133 LOG(WARNING) << path << " isn't used because of build id mismatch: expected " << build_id in CheckDebugFilePath()
140 BuildId& build_id) { in FindDebugFile() argument
148 if (build_id.IsEmpty()) { in FindDebugFile()
150 GetBuildIdFromDsoPath(dso_path, &build_id); in FindDebugFile()
155 if (!build_id.IsEmpty() || GetBuildIdFromDsoPath(dso_path, &build_id)) { in FindDebugFile()
[all …]
Dread_elf.h48 ElfStatus GetBuildIdFromNoteFile(const std::string& filename, BuildId* build_id);
96 virtual ElfStatus GetBuildId(BuildId* build_id) = 0;
113 bool GetBuildIdFromNoteSection(const char* section, size_t section_size, BuildId* build_id);
Denvironment_test.cpp109 BuildId build_id; in TEST() local
113 ASSERT_TRUE(GetModuleBuildId("fake_kernel_module", &build_id, GetTestData("sysfs"))); in TEST()
114 ASSERT_EQ(build_id, BuildId("3e0ba155286f3454")); in TEST()
Dcmd_inject.cpp340 BuildId build_id; in ProcessBranchListFile() local
341 return GetBuildIdFromDsoPath(dso->GetDebugFilePath(), &build_id) && in ProcessBranchListFile()
342 build_id == expected_build_id; in ProcessBranchListFile()
347 BuildId build_id(binary_proto.build_id()); in ProcessBranchListFile() local
353 Dso::CreateDsoWithBuildId(dso_type.value(), binary_proto.path(), build_id); in ProcessBranchListFile()
354 if (!dso || !FilterDso(dso.get()) || !check_build_id(dso.get(), build_id)) { in ProcessBranchListFile()
510 BuildId build_id = Dso::FindExpectedBuildIdForPath(dso->Path()); in GenerateBranchList() local
511 if (!build_id.IsEmpty()) { in GenerateBranchList()
512 binary_proto->set_build_id(build_id.ToString().substr(2)); in GenerateBranchList()
/system/extras/simpleperf/scripts/
Dapp_profiler.py107 build_id = self.readelf.get_build_id(path)
108 if build_id:
109 entry = self.host_build_id_map.get(build_id)
118 self.host_build_id_map[build_id] = HostElfEntry(path, unique_name, score)
146 build_id, filename = items
148 self.device_build_id_map[build_id] = filename
153 for build_id in self.host_build_id_map:
154 if build_id not in self.device_build_id_map:
155 entry = self.host_build_id_map[build_id]
158 for build_id in self.device_build_id_map:
[all …]
Dbinary_cache_builder.py114 build_id = self._read_build_id(os.path.join(root, filename))
117 if expected_build_id == build_id:
156 build_id = self.binaries[binary]
162 self._check_and_pull_binary(binary, build_id, binary_cache_file)
172 build_id = self._read_build_id(binary_cache_file)
173 if expected_build_id != build_id:
221 build_id = self._read_build_id(path)
222 if build_id:
Dpprof_proto_generator.py137 print('%sbuild_id: %s(%d)' % (space, self.string(mapping.build_id),
138 mapping.build_id))
388 binary_path, build_id = self.get_binary(symbol.dso_name)
389 mapping_id = self.get_mapping_id(symbol.mapping[0], binary_path, build_id)
408 def get_mapping_id(self, report_mapping, filename, build_id): argument
410 build_id_id = self.get_string_id(build_id)
429 build_id = ''
438 build_id = build_id_in_perf_data
442 if not build_id and build_id_in_perf_data.startswith('0x'):
444 build_id = build_id_in_perf_data[2:] # remove '0x'
[all …]
Dsimpleperf_utils.py536 def __init__(self, build_id: Optional[str]):
537 self.build_id = build_id
568 def add_addr(self, dso_path: str, build_id: Optional[str], func_addr: int, addr: int):
571 dso = self.dso_map[dso_path] = self.Dso(build_id)
580 real_path = self.binary_finder.find_binary(dso_path, dso.build_id)
899 build_id = result.group(1)
901 build_id = self.pad_build_id(build_id)
902 return build_id
908 def pad_build_id(build_id: str) -> str:
910 if len(build_id) < 40:
[all …]
/system/unwinding/libunwindstack/tools/
Dunwind_info.cpp120 std::string build_id = elf.GetBuildID(); in GetElfInfo() local
121 if (!build_id.empty()) { in GetElfInfo()
123 for (size_t i = 0; i < build_id.size(); ++i) { in GetElfInfo()
124 printf("%02hhx", build_id[i]); in GetElfInfo()
/system/extras/simpleperf/scripts/test/
Dapp_profiler_test.py93 build_id = item[0]
96 self.assertTrue(build_id in downloader.device_build_id_map)
97 self.assertEqual(name, downloader.device_build_id_map[build_id])
100 self.assertTrue(build_id not in downloader.device_build_id_map)
Dtools_test.py277 build_id = readelf.get_build_id(elf_path)
278 self.assertGreater(len(build_id), 0)
279 binary_cache_builder.binaries[elf_name] = build_id
287 path = binary_finder.find_binary('[not_exist_file]', build_id)
/system/unwinding/libunwindstack/tests/
DElfFake.h86 void FakeSetBuildID(std::string& build_id) { fake_build_id_ = build_id; } in FakeSetBuildID() argument
87 void FakeSetBuildID(const char* build_id) { fake_build_id_ = build_id; } in FakeSetBuildID() argument
/system/core/init/
Dproperty_service_test.cpp102 std::string build_id = GetProperty("ro.boot.build.id", ""); in TEST() local
105 ASSERT_EQ(expected_build_id, build_id); in TEST()
/system/apex/.prebuilt_info/
Dprebuilt_info_shim_prebuilts__arm_com_android_apex_cts_shim_v2_unsigned_apk_container_apex.asciipb3 build_id: "6508977"
Dprebuilt_info_shim_prebuilts__x86_com_android_apex_cts_shim_v2_unsigned_apk_container_apex.asciipb3 build_id: "6508977"
Dprebuilt_info_shim_prebuilts__arm_com_android_apex_cts_shim_not_pre_installed_apex.asciipb3 build_id: "7552332"
Dprebuilt_info_shim_prebuilts__x86_com_android_apex_cts_shim_not_pre_installed_apex.asciipb3 build_id: "7552332"
Dprebuilt_info_shim_prebuilts__arm_com_android_apex_cts_shim_v3_signed_bob_rot_apex.asciipb3 build_id: "7552332"
Dprebuilt_info_shim_prebuilts__arm_com_android_apex_cts_shim_v2_apex.asciipb3 build_id: "7552332"
/system/core/debuggerd/libdebuggerd/
Dtombstone_proto_to_text.cpp161 std::string build_id; in print_backtrace() local
162 if (!frame.build_id().empty()) { in print_backtrace()
163 build_id = StringPrintf(" (BuildId: %s)", frame.build_id().c_str()); in print_backtrace()
167 frame.rel_pc(), frame.file_name().c_str(), function.c_str(), build_id.c_str()); in print_backtrace()
390 if (!map.build_id().empty()) { in print_main_thread()
391 StringAppendF(&line, " (BuildId: %s)", map.build_id().c_str()); in print_main_thread()

1234