Home
last modified time | relevance | path

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

12

/system/core/debuggerd/test/
Delf_fake.cpp25 void elf_set_fake_build_id(const std::string& build_id) { in elf_set_fake_build_id() argument
26 g_build_id = build_id; in elf_set_fake_build_id()
29 bool elf_get_build_id(Backtrace*, uintptr_t, std::string* build_id) { in elf_get_build_id() argument
31 *build_id = g_build_id; in elf_get_build_id()
/system/extras/simpleperf/
Dread_elf_test.cpp25 BuildId build_id; in TEST() local
26 ASSERT_TRUE(GetBuildIdFromElfFile(GetTestData(ELF_FILE), &build_id)); in TEST()
27 ASSERT_EQ(build_id, BuildId(elf_file_build_id)); in TEST()
31 BuildId build_id; in TEST() local
33 NATIVELIB_SIZE_IN_APK, &build_id)); in TEST()
34 ASSERT_EQ(build_id, native_lib_build_id); in TEST()
66 BuildId build_id("01010101010101010101"); in TEST() local
68 ASSERT_FALSE(ParseSymbolsFromElfFile(GetTestData(ELF_FILE), build_id, in TEST()
Ddso.cpp183 BuildId build_id = GetExpectedBuildId(GetAccessiblePath()); in MinVirtualAddress() local
186 if (ReadMinExecutableVirtualAddressFromElfFile(GetAccessiblePath(), build_id, &addr)) { in MinVirtualAddress()
237 BuildId build_id = GetExpectedBuildId(DEFAULT_KERNEL_FILENAME_FOR_BUILD_ID); in LoadKernel() local
239 ParseSymbolsFromElfFile(vmlinux_, build_id, in LoadKernel()
242 if (!build_id.IsEmpty()) { in LoadKernel()
245 bool match = (build_id == real_build_id); in LoadKernel()
247 << build_id.ToString() << ", real " << real_build_id.ToString(); in LoadKernel()
285 BuildId build_id = GetExpectedBuildId(path_); in LoadKernelModule() local
287 symfs_dir_ + path_, build_id, in LoadKernelModule()
298 BuildId build_id = GetExpectedBuildId(GetAccessiblePath()); in LoadElfFile() local
[all …]
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 {
76 return !(*this == build_id);
Dread_elf.cpp67 static bool GetBuildIdFromNoteSection(const char* section, size_t section_size, BuildId* build_id) { in GetBuildIdFromNoteSection() argument
82 *build_id = BuildId(p + namesz, descsz); in GetBuildIdFromNoteSection()
90 bool GetBuildIdFromNoteFile(const std::string& filename, BuildId* build_id) { in GetBuildIdFromNoteFile() argument
96 if (GetBuildIdFromNoteSection(content.c_str(), content.size(), build_id) == false) { in GetBuildIdFromNoteFile()
104 bool GetBuildIdFromELFFile(const llvm::object::ELFFile<ELFT>* elf, BuildId* build_id) { in GetBuildIdFromELFFile() argument
114 contents->size(), build_id)) { in GetBuildIdFromELFFile()
122 static bool GetBuildIdFromObjectFile(llvm::object::ObjectFile* obj, BuildId* build_id) { in GetBuildIdFromObjectFile() argument
125 result = GetBuildIdFromELFFile(elf->getELFFile(), build_id); in GetBuildIdFromObjectFile()
127 result = GetBuildIdFromELFFile(elf->getELFFile(), build_id); in GetBuildIdFromObjectFile()
183 bool GetBuildIdFromElfFile(const std::string& filename, BuildId* build_id) { in GetBuildIdFromElfFile() argument
[all …]
Dread_elf.h24 bool GetBuildIdFromNoteFile(const std::string& filename, BuildId* build_id);
25 bool GetBuildIdFromElfFile(const std::string& filename, BuildId* build_id);
27 uint32_t file_size, BuildId* build_id);
Dread_apk_test.cpp54 BuildId build_id; in TEST() local
55 ASSERT_TRUE(GetBuildIdFromApkFile(GetTestData(APK_FILE), NATIVELIB_IN_APK, &build_id)); in TEST()
56 ASSERT_EQ(build_id, native_lib_build_id); in TEST()
Denvironment.h64 bool GetKernelBuildId(BuildId* build_id);
65 bool GetModuleBuildId(const std::string& module_name, BuildId* build_id);
Drecord_equal_test.h29 ASSERT_EQ(r1.build_id, r2.build_id); in CheckBuildIdRecordDataEqual()
Dcmd_record.cpp784 BuildId build_id; in DumpBuildIdFeature() local
788 if (!GetKernelBuildId(&build_id)) { in DumpBuildIdFeature()
793 CreateBuildIdRecord(true, UINT_MAX, build_id, DEFAULT_KERNEL_FILENAME_FOR_BUILD_ID)); in DumpBuildIdFeature()
800 if (!GetModuleBuildId(module_name, &build_id)) { in DumpBuildIdFeature()
804 build_id_records.push_back(CreateBuildIdRecord(true, UINT_MAX, build_id, filename)); in DumpBuildIdFeature()
814 if (!GetBuildIdFromApkFile(std::get<1>(tuple), std::get<2>(tuple), &build_id)) { in DumpBuildIdFeature()
819 if (!GetBuildIdFromElfFile(filename, &build_id)) { in DumpBuildIdFeature()
824 build_id_records.push_back(CreateBuildIdRecord(false, UINT_MAX, build_id, filename)); in DumpBuildIdFeature()
Drecord.cpp538 build_id = BuildId(p, BUILD_ID_SIZE); in BuildIdRecord()
539 p += ALIGN(build_id.Size(), 8); in BuildIdRecord()
550 memcpy(p, build_id.Data(), build_id.Size()); in BinaryFormat()
551 p += ALIGN(build_id.Size(), 8); in BinaryFormat()
559 PrintIndented(indent, "build_id %s\n", build_id.ToString().c_str()); in DumpData()
678 BuildIdRecord CreateBuildIdRecord(bool in_kernel, pid_t pid, const BuildId& build_id, in CreateBuildIdRecord() argument
684 record.build_id = build_id; in CreateBuildIdRecord()
687 ALIGN(record.build_id.Size(), 8) + ALIGN(filename.size() + 1, 64); in CreateBuildIdRecord()
Denvironment.cpp362 bool GetKernelBuildId(BuildId* build_id) { in GetKernelBuildId() argument
363 return GetBuildIdFromNoteFile("/sys/kernel/notes", build_id); in GetKernelBuildId()
366 bool GetModuleBuildId(const std::string& module_name, BuildId* build_id) { in GetModuleBuildId() argument
368 return GetBuildIdFromNoteFile(notefile, build_id); in GetModuleBuildId()
Drecord_file_test.cpp73 BuildId build_id(p); in TEST_F() local
74 BuildIdRecord build_id_record = CreateBuildIdRecord(false, getpid(), build_id, "init"); in TEST_F()
Dread_apk.cpp174 BuildId* build_id) { in GetBuildIdFromApkFile() argument
179 return GetBuildIdFromEmbeddedElfFile(apk_path, ee->entry_offset(), ee->entry_size(), build_id); in GetBuildIdFromApkFile()
Dread_apk.h95 BuildId* build_id);
Drecord.h284 BuildId build_id; member
367 BuildIdRecord CreateBuildIdRecord(bool in_kernel, pid_t pid, const BuildId& build_id,
/system/core/debuggerd/
Delf_utils.cpp36 Backtrace* backtrace, uintptr_t base_addr, uint8_t* e_ident, std::string* build_id) { in get_build_id() argument
76 build_id->clear(); in get_build_id()
78 *build_id += android::base::StringPrintf("%02x", build_id_data[bytes]); in get_build_id()
98 bool elf_get_build_id(Backtrace* backtrace, uintptr_t addr, std::string* build_id) { in elf_get_build_id() argument
115 return get_build_id<Elf32_Ehdr, Elf32_Phdr, Elf32_Nhdr>(backtrace, addr, e_ident, build_id); in elf_get_build_id()
117 return get_build_id<Elf64_Ehdr, Elf64_Phdr, Elf64_Nhdr>(backtrace, addr, e_ident, build_id); in elf_get_build_id()
/system/extras/perfprofd/quipper/
Dperf_parser.h29 string build_id; member
34 return build_id < other.build_id;
75 const string build_id() const { in build_id() function
77 return dso_info_->build_id; in build_id()
Dperf_reader.cc151 sizeof(event.build_id)); in CheckNoBuildIDEventPadding()
164 build_id_event* CreateOrUpdateBuildID(const string& build_id, in CreateOrUpdateBuildID() argument
169 if (!event && (build_id.empty() || filename.empty())) in CreateOrUpdateBuildID()
197 if (!build_id.empty() && in CreateOrUpdateBuildID()
198 !StringToHex(build_id, event->build_id, arraysize(event->build_id))) { in CreateOrUpdateBuildID()
631 void PerfReader::PerfizeBuildIDString(string* build_id) { in PerfizeBuildIDString() argument
632 build_id->resize(kBuildIDStringLength, '0'); in PerfizeBuildIDString()
635 void PerfReader::UnperfizeBuildIDString(string* build_id) { in UnperfizeBuildIDString() argument
641 while (build_id->size() > kPaddingSize && in UnperfizeBuildIDString()
642 build_id->substr(build_id->size() - kPaddingSize) == kBuildIDPadding) { in UnperfizeBuildIDString()
[all …]
Dperf_reader.h82 static void PerfizeBuildIDString(string* build_id);
88 static void UnperfizeBuildIDString(string* build_id);
/system/extras/perfprofd/
Dperf_data_converter.cc98 const std::string &build_id = nbmi->second; in RawPerfDataToAndroidPerfProfile() local
99 if (build_id.size() == 40 && build_id.substr(32) == "00000000") { in RawPerfDataToAndroidPerfProfile()
100 load_module->set_build_id(build_id.substr(0, 32)); in RawPerfDataToAndroidPerfProfile()
102 load_module->set_build_id(build_id); in RawPerfDataToAndroidPerfProfile()
Dperf_profile.proto48 // LoadModule's linker build_id.
49 optional string build_id = 2; field
/system/extras/perfprofd/quipper/original-kernel-headers/tools/perf/util/
Dbuild-id.h12 int build_id__sprintf(const u8 *build_id, int len, char *bf);
Devent.h135 u8 build_id[PERF_ALIGN(BUILD_ID_SIZE, sizeof(u64))]; member
184 struct build_id_event build_id; member
/system/extras/perfprofd/quipper/kernel-headers/tools/perf/util/
Devent.h142 u8 build_id[PERF_ALIGN(BUILD_ID_SIZE, sizeof(u64))]; member
195 struct build_id_event build_id; member

12