/system/extras/simpleperf/ |
D | read_elf.cpp | 39 static bool GetBuildIdFromNoteSection(const char* section, size_t section_size, BuildId* build_id) { in GetBuildIdFromNoteSection() argument 54 std::fill(build_id->begin(), build_id->end(), 0); in GetBuildIdFromNoteSection() 55 memcpy(build_id->data(), p + namesz, std::min(build_id->size(), descsz)); in GetBuildIdFromNoteSection() 63 bool GetBuildIdFromNoteFile(const std::string& filename, BuildId* build_id) { in GetBuildIdFromNoteFile() argument 69 if (GetBuildIdFromNoteSection(content.c_str(), content.size(), build_id) == false) { in GetBuildIdFromNoteFile() 77 bool GetBuildIdFromELFFile(const llvm::object::ELFFile<ELFT>* elf, BuildId* build_id) { in GetBuildIdFromELFFile() argument 87 contents->size(), build_id)) { in GetBuildIdFromELFFile() 95 bool GetBuildIdFromElfFile(const std::string& filename, BuildId* build_id) { in GetBuildIdFromElfFile() argument 105 result = GetBuildIdFromELFFile(elf->getELFFile(), build_id); in GetBuildIdFromElfFile() 107 result = GetBuildIdFromELFFile(elf->getELFFile(), build_id); in GetBuildIdFromElfFile()
|
D | read_elf.h | 23 bool GetBuildIdFromNoteFile(const std::string& filename, BuildId* build_id); 24 bool GetBuildIdFromElfFile(const std::string& filename, BuildId* build_id);
|
D | record_file_test.cpp | 61 BuildId build_id; in TEST_F() local 62 for (size_t i = 0; i < build_id.size(); ++i) { in TEST_F() 63 build_id[i] = i; in TEST_F() 65 BuildIdRecord build_id_record = CreateBuildIdRecord(false, getpid(), build_id, "init"); in TEST_F()
|
D | record.cpp | 310 std::copy_n(p, build_id.size(), build_id.begin()); in BuildIdRecord() 311 p += ALIGN(build_id.size(), 8); in BuildIdRecord() 320 for (auto& c : build_id) { in DumpData() 332 memcpy(p, build_id.data(), build_id.size()); in BinaryFormat() 333 p += ALIGN(build_id.size(), 8); in BinaryFormat() 387 BuildIdRecord CreateBuildIdRecord(bool in_kernel, pid_t pid, const BuildId& build_id, in CreateBuildIdRecord() argument 393 record.build_id = build_id; in CreateBuildIdRecord() 396 ALIGN(record.build_id.size(), 8) + ALIGN(filename.size() + 1, 64); in CreateBuildIdRecord()
|
D | cmd_record.cpp | 327 BuildId build_id; in DumpBuildIdFeature() local 331 if (!GetKernelBuildId(&build_id)) { in DumpBuildIdFeature() 336 CreateBuildIdRecord(true, UINT_MAX, build_id, DEFAULT_KERNEL_FILENAME_FOR_BUILD_ID)); in DumpBuildIdFeature() 342 if (!GetModuleBuildId(module_name, &build_id)) { in DumpBuildIdFeature() 346 build_id_records.push_back(CreateBuildIdRecord(true, UINT_MAX, build_id, filename)); in DumpBuildIdFeature() 354 if (!GetBuildIdFromElfFile(filename, &build_id)) { in DumpBuildIdFeature() 358 build_id_records.push_back(CreateBuildIdRecord(false, UINT_MAX, build_id, filename)); in DumpBuildIdFeature()
|
D | environment.h | 67 bool GetKernelBuildId(BuildId* build_id); 68 bool GetModuleBuildId(const std::string& module_name, BuildId* build_id);
|
D | record_equal_test.h | 29 ASSERT_EQ(r1.build_id, r2.build_id); in CheckBuildIdRecordDataEqual()
|
D | environment.cpp | 351 bool GetKernelBuildId(BuildId* build_id) { in GetKernelBuildId() argument 352 return GetBuildIdFromNoteFile("/sys/kernel/notes", build_id); in GetKernelBuildId() 355 bool GetModuleBuildId(const std::string& module_name, BuildId* build_id) { in GetModuleBuildId() argument 357 return GetBuildIdFromNoteFile(notefile, build_id); in GetModuleBuildId()
|
D | record.h | 189 BuildId build_id; member 209 BuildIdRecord CreateBuildIdRecord(bool in_kernel, pid_t pid, const BuildId& build_id,
|
/system/core/debuggerd/test/ |
D | elf_fake.cpp | 25 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/core/debuggerd/ |
D | elf_utils.cpp | 36 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()
|
D | tombstone.cpp | 391 std::string build_id; in dump_all_maps() local 392 if ((it->flags & PROT_READ) && elf_get_build_id(backtrace, it->start, &build_id)) { in dump_all_maps() 393 line += " (BuildId: " + build_id + ")"; in dump_all_maps()
|
/system/extras/perfprofd/quipper/ |
D | perf_parser.h | 29 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()
|
D | perf_reader.cc | 151 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 …]
|
D | perf_reader.h | 82 static void PerfizeBuildIDString(string* build_id); 88 static void UnperfizeBuildIDString(string* build_id);
|
/system/extras/perfprofd/ |
D | perf_data_converter.cc | 98 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()
|
D | perf_profile.proto | 48 // LoadModule's linker build_id. 49 optional string build_id = 2; field
|
/system/extras/perfprofd/quipper/original-kernel-headers/tools/perf/util/ |
D | build-id.h | 12 int build_id__sprintf(const u8 *build_id, int len, char *bf);
|
D | event.h | 135 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/ |
D | event.h | 142 u8 build_id[PERF_ALIGN(BUILD_ID_SIZE, sizeof(u64))]; member 195 struct build_id_event build_id; member
|
/system/extras/perfprofd/tests/ |
D | perfprofd_test.cc | 241 if (lm.build_id() != "") { in encodedLoadModuleToString() 242 ss << "build_id: \"" << lm.build_id() << "\"\n"; in encodedLoadModuleToString() 521 name: "/system/lib/libandroid_runtime.so" build_id: "8164ed7b3a8b8f5a220d027788922510" in TEST_F()
|