Home
last modified time | relevance | path

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

/system/extras/simpleperf/
Dread_elf.cpp39 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()
Dread_elf.h23 bool GetBuildIdFromNoteFile(const std::string& filename, BuildId* build_id);
24 bool GetBuildIdFromElfFile(const std::string& filename, BuildId* build_id);
Drecord_file_test.cpp61 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()
Drecord.cpp310 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()
Dcmd_record.cpp327 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()
Denvironment.h67 bool GetKernelBuildId(BuildId* build_id);
68 bool GetModuleBuildId(const std::string& module_name, BuildId* build_id);
Drecord_equal_test.h29 ASSERT_EQ(r1.build_id, r2.build_id); in CheckBuildIdRecordDataEqual()
Denvironment.cpp351 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()
Drecord.h189 BuildId build_id; member
209 BuildIdRecord CreateBuildIdRecord(bool in_kernel, pid_t pid, const BuildId& build_id,
/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/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()
Dtombstone.cpp391 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/
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
/system/extras/perfprofd/tests/
Dperfprofd_test.cc241 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()