Home
last modified time | relevance | path

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

12

/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 std::string* new_build_id = new std::string(build_id); in MockSetBuildID()
37 map_info->build_id = reinterpret_cast<uintptr_t>(new_build_id); in MockSetBuildID()
/system/extras/simpleperf/
Dread_elf_test.cpp33 BuildId build_id; in TEST() local
36 ASSERT_FALSE(GetBuildIdFromNoteSection(data.data(), 0, &build_id)); in TEST()
57 ASSERT_TRUE(GetBuildIdFromNoteSection(start, p - start, &build_id)); in TEST()
58 ASSERT_TRUE(build_id == expected_build_id); in TEST()
63 BuildId build_id; in TEST() local
64 ASSERT_EQ(ElfStatus::NO_ERROR, GetBuildIdFromElfFile(GetTestData(ELF_FILE), &build_id)); in TEST()
65 ASSERT_EQ(build_id, BuildId(elf_file_build_id)); in TEST()
69 BuildId build_id; in TEST() local
71 NATIVELIB_SIZE_IN_APK, &build_id)); in TEST()
72 ASSERT_EQ(build_id, native_lib_build_id); in TEST()
[all …]
Ddso_test.cpp37 BuildId build_id(ELF_FILE_BUILD_ID); in TEST() local
39 "%s=%s\n", build_id.ToString().c_str(), android::base::Basename(tmpfile.path).c_str()); in TEST()
45 ASSERT_EQ(finder.FindDebugFile("elf", false, build_id), std::string(tmpfile.path)); in TEST()
57 BuildId build_id(ELF_FILE_BUILD_ID); in TEST() local
58 ASSERT_EQ(finder.FindDebugFile(ELF_FILE, false, build_id), GetTestDataDir() + ELF_FILE); in TEST()
72 BuildId build_id; in TEST() local
73 ASSERT_EQ(finder.FindDebugFile("[vdso]", false, build_id), fake_vdso32); in TEST()
74 ASSERT_EQ(finder.FindDebugFile("[vdso]", true, build_id), fake_vdso64); in TEST()
140 BuildId build_id; in TEST() local
141 ASSERT_TRUE(GetBuildIdFromDsoPath(file_path, &build_id)); in TEST()
[all …]
Ddso.cpp89 BuildId build_id; in CollectBuildIdInDir() local
90 if (GetBuildIdFromElfFile(path, &build_id) == ElfStatus::NO_ERROR) { in CollectBuildIdInDir()
91 build_id_to_file_map_[build_id.ToString()] = path; in CollectBuildIdInDir()
106 BuildId& build_id) { in FindDebugFile() argument
116 if (!build_id.IsEmpty() || GetBuildIdFromDsoPath(dso_path, &build_id)) { in FindDebugFile()
117 auto it = build_id_to_file_map_.find(build_id.ToString()); in FindDebugFile()
126 if (!build_id.IsEmpty() || GetBuildIdFromDsoPath(dso_path, &build_id)) { in FindDebugFile()
127 if (build_id == debug_build_id) { in FindDebugFile()
474 BuildId build_id = GetExpectedBuildId(); in GetMinExecutableVaddr() local
486 elf->filepath(), elf->entry_offset(), elf->entry_size(), build_id, &addr, &offset); in GetMinExecutableVaddr()
[all …]
Dbuild_id.h75 bool operator==(const BuildId& build_id) const {
76 return memcmp(data_, build_id.data_, BUILD_ID_SIZE) == 0;
79 bool operator!=(const BuildId& build_id) const {
80 return !(*this == build_id);
Dread_elf.h42 ElfStatus GetBuildIdFromNoteFile(const std::string& filename, BuildId* build_id);
43 ElfStatus GetBuildIdFromElfFile(const std::string& filename, BuildId* build_id);
45 uint32_t file_size, BuildId* build_id);
92 bool GetBuildIdFromNoteSection(const char* section, size_t section_size, BuildId* build_id);
Dread_elf.cpp103 bool GetBuildIdFromNoteSection(const char* section, size_t section_size, BuildId* build_id) { in GetBuildIdFromNoteSection() argument
122 *build_id = BuildId(p + namesz, descsz); in GetBuildIdFromNoteSection()
133 ElfStatus GetBuildIdFromNoteFile(const std::string& filename, BuildId* build_id) { in GetBuildIdFromNoteFile() argument
138 if (!GetBuildIdFromNoteSection(content.c_str(), content.size(), build_id)) { in GetBuildIdFromNoteFile()
145 ElfStatus GetBuildIdFromELFFile(const llvm::object::ELFObjectFile<ELFT>* elf, BuildId* build_id) { in GetBuildIdFromELFFile() argument
158 if (GetBuildIdFromNoteSection(data.data(), data.size(), build_id)) { in GetBuildIdFromELFFile()
166 static ElfStatus GetBuildIdFromObjectFile(llvm::object::ObjectFile* obj, BuildId* build_id) { in GetBuildIdFromObjectFile() argument
168 return GetBuildIdFromELFFile(elf, build_id); in GetBuildIdFromObjectFile()
170 return GetBuildIdFromELFFile(elf, build_id); in GetBuildIdFromObjectFile()
227 ElfStatus GetBuildIdFromElfFile(const std::string& filename, BuildId* build_id) { in GetBuildIdFromElfFile() argument
[all …]
Denvironment.h65 bool GetKernelBuildId(BuildId* build_id);
66 bool GetModuleBuildId(const std::string& module_name, BuildId* build_id);
Drecord_equal_test.h29 ASSERT_EQ(r1.build_id, r2.build_id); in CheckBuildIdRecordDataEqual()
Drecord_file_test.cpp74 BuildId build_id(p); in TEST_F() local
76 build_id_records.push_back(BuildIdRecord(false, getpid(), build_id, "init")); in TEST_F()
Ddso.h42 BuildId& build_id);
224 bool GetBuildIdFromDsoPath(const std::string& dso_path, BuildId* build_id);
/system/extras/simpleperf/scripts/
Dapp_profiler.py90 build_id = self.readelf.get_build_id(path)
91 if not build_id:
104 entry = self.host_build_id_map.get(build_id)
113 self.host_build_id_map[build_id] = HostElfEntry(path, unique_name, score)
132 for build_id in self.host_build_id_map:
133 if build_id not in self.device_build_id_map:
134 entry = self.host_build_id_map[build_id]
137 for build_id in self.device_build_id_map:
138 if build_id not in self.host_build_id_map:
139 name = self.device_build_id_map[build_id]
[all …]
Dbinary_cache_builder.py108 build_id = self._read_build_id(os.path.join(root, filename))
109 if not build_id:
113 if expected_build_id == build_id:
156 build_id = self.binaries[binary]
162 self._check_and_pull_binary(binary, build_id, binary_cache_file)
173 build_id = self._read_build_id(binary_cache_file)
174 if expected_build_id != build_id:
Dutils.py742 build_id = result.group(1)
743 if len(build_id) < 40:
744 build_id += '0' * (40 - len(build_id))
746 build_id = build_id[:40]
747 build_id = '0x' + build_id
748 return build_id
Dpprof_proto_generator.py137 print('%sbuild_id: %s(%d)' % (space, self.string(mapping.build_id),
138 mapping.build_id))
395 build_id = self.lib.GetBuildIdForPath(filename)
396 if build_id and build_id[0:2] == "0x":
397 build_id = build_id[2:]
398 build_id_id = self.get_string_id(build_id)
519 profile_mapping.build_id = mapping.build_id_id
/system/core/libunwindstack/include/unwindstack/
DMapInfo.h42 build_id(0) {} in MapInfo()
52 build_id(0) {} in MapInfo()
76 std::atomic_uintptr_t build_id; member
/system/core/libunwindstack/benchmarks/
Dunwind_benchmarks.cpp119 uintptr_t id = build_id_map_info->build_id; in BM_get_build_id_from_elf()
122 build_id_map_info->build_id = 0; in BM_get_build_id_from_elf()
135 uintptr_t id = build_id_map_info->build_id; in BM_get_build_id_from_file()
138 build_id_map_info->build_id = 0; in BM_get_build_id_from_file()
/system/core/libunwindstack/tests/
DElfFake.h83 void FakeSetBuildID(std::string& build_id) { fake_build_id_ = build_id; } in FakeSetBuildID() argument
84 void FakeSetBuildID(const char* build_id) { fake_build_id_ = build_id; } in FakeSetBuildID() argument
DMapInfoGetBuildIDTest.cpp84 std::string build_id = {static_cast<char>(0xfa), static_cast<char>(0xab), static_cast<char>(0x12), in TEST_F() local
86 elf_interface_->FakeSetBuildID(build_id); in TEST_F()
/system/core/libunwindstack/tools/
Dunwind_info.cpp126 std::string build_id = elf.GetBuildID(); in GetElfInfo() local
127 if (!build_id.empty()) { in GetElfInfo()
129 for (size_t i = 0; i < build_id.size(); ++i) { in GetElfInfo()
130 printf("%02hhx", build_id[i]); in GetElfInfo()
/system/core/libunwindstack/
DMapInfo.cpp291 uintptr_t id = build_id.load(); in ~MapInfo()
298 uintptr_t id = build_id.load(); in GetBuildID()
299 if (build_id != 0) { in GetBuildID()
327 if (build_id.compare_exchange_weak(expected_id, id)) { in GetBuildID()
DElfInterface.cpp279 std::string build_id(hdr.n_descsz, '\0'); in ReadBuildID() local
280 if (memory_->ReadFully(gnu_build_id_offset_ + offset, &build_id[0], hdr.n_descsz)) { in ReadBuildID()
281 return build_id; in ReadBuildID()
623 std::string build_id(hdr.n_descsz - 1, '\0'); in ReadBuildIDFromMemory() local
624 if (memory->ReadFully(note_offset + offset, &build_id[0], hdr.n_descsz)) { in ReadBuildIDFromMemory()
625 return build_id; in ReadBuildIDFromMemory()
DUnwinder.cpp339 std::string build_id = map_info->GetPrintableBuildID(); in FormatFrame() local
340 if (!build_id.empty()) { in FormatFrame()
341 data += " (BuildId: " + build_id + ')'; in FormatFrame()
/system/extras/perfprofd/
Dperf_profile.proto48 // LoadModule's linker build_id.
49 optional string build_id = 2; field

12