/system/extras/simpleperf/ |
D | dso_test.cpp | 150 TEST(dso, dex_file_dso) { in TEST() argument 153 std::unique_ptr<Dso> dso = Dso::CreateDso(dso_type, GetTestData("base.vdex")); in TEST() local 154 ASSERT_TRUE(dso); in TEST() 155 dso->AddDexFileOffset(0x28); in TEST() 156 ASSERT_EQ(DSO_DEX_FILE, dso->type()); in TEST() 157 const Symbol* symbol = dso->FindSymbol(0x6c77e); in TEST() 165 dso->GetMinExecutableVaddr(&min_vaddr, &file_offset_of_min_vaddr); in TEST() 170 dso = Dso::CreateDso(dso_type, GetTestData("base.zip!/not_exist_entry")); in TEST() 171 ASSERT_TRUE(dso); in TEST() 172 ASSERT_EQ(nullptr, dso->FindSymbol(0)); in TEST() [all …]
|
D | thread_tree.cpp | 110 Dso* dso = FindKernelDsoOrNew(filename); in AddKernelMap() local 111 InsertMap(kernel_maps_, MapEntry(start_addr, len, pgoff, dso, true)); in AddKernelMap() 130 Dso* dso = FindUserDsoOrNew(filename, start_addr); in AddThreadMap() local 131 InsertMap(*thread->maps, MapEntry(start_addr, len, pgoff, dso, false, flags)); in AddThreadMap() 139 std::unique_ptr<Dso> dso = Dso::CreateDso(dso_type, filename, force_64bit); in FindUserDsoOrNew() local 140 auto pair = user_dso_tree_.insert(std::make_pair(filename, std::move(dso))); in FindUserDsoOrNew() 232 Dso* dso = map->dso; in FindSymbol() local 236 vaddr_in_file = dso->IpToVaddrInFile(ip, map->start_addr, map->pgoff); in FindSymbol() 238 symbol = dso->FindSymbol(vaddr_in_file); in FindSymbol() 239 if (symbol == nullptr && dso->type() == DSO_KERNEL_MODULE) { in FindSymbol() [all …]
|
D | cmd_inject.cpp | 244 bool FilterDso(Dso* dso) { in FilterDso() argument 245 auto lookup = dso_filter_cache.find(dso); in FilterDso() 249 bool match = std::regex_search(dso->Path(), binary_name_regex_); in FilterDso() 250 dso_filter_cache.insert({dso, match}); in FilterDso() 255 if (!FilterDso(instr_range.dso)) { in ProcessInstrRange() 259 auto& binary = autofdo_binary_map_[instr_range.dso]; in ProcessInstrRange() 269 if (!FilterDso(branch_list.dso)) { in ProcessBranchList() 273 ++branch_list_binary_map_[branch_list.dso][branch_list.addr][branch_list.branch]; in ProcessBranchList() 301 auto check_build_id = [](Dso* dso, const BuildId& expected_build_id) { in ProcessBranchListFile() argument 306 return GetBuildIdFromDsoPath(dso->GetDebugFilePath(), &build_id) && in ProcessBranchListFile() [all …]
|
D | thread_tree.h | 46 Dso* dso; member 51 Dso* dso, bool in_kernel, uint32_t flags = 0) 55 dso(dso), in start_addr() 68 return dso->IpToVaddrInFile(addr, start_addr, pgoff); in GetVaddrInFile() 123 bool IsUnknownDso(const Dso* dso) const { return dso == unknown_dso_.get(); } in IsUnknownDso() argument
|
D | ETMDecoder.h | 38 Dso* dso = nullptr; member 55 Dso* dso = nullptr; member 83 Dso* dso, const std::map<uint64_t, std::map<std::vector<bool>, uint64_t>>& branch_map,
|
D | cmd_report_sample.cpp | 69 Dso* dso; member 495 return android::base::EndsWith(entry.dso->Path(), "/libart.so"); in ProcessSampleRecord() 506 if (entry.dso->IsForJavaMethod()) { in ProcessSampleRecord() 541 if (!node.dso->GetDumpId(&file_id)) { in PrintSampleRecordInProtobuf() 542 file_id = node.dso->CreateDumpId(); in PrintSampleRecordInProtobuf() 547 symbol_id = node.dso->CreateSymbolDumpId(node.symbol); in PrintSampleRecordInProtobuf() 559 if (node.dso->FileName() == "libc.so" && in PrintSampleRecordInProtobuf() 582 if (omit_unknown_dso && thread_tree_.IsUnknownDso(map->dso)) { in GetCallEntry() 585 entry->symbol = thread_tree_.FindSymbol(map, ip, &(entry->vaddr_in_file), &(entry->dso)); in GetCallEntry() 588 entry->dso = map->dso; in GetCallEntry() [all …]
|
D | environment_test.cpp | 39 std::unique_ptr<Dso> dso = Dso::CreateDso(DSO_ELF_FILE, "[vdso]", in TEST() local 41 ASSERT_TRUE(dso != nullptr); in TEST() 42 ASSERT_NE(dso->GetDebugFilePath(), "[vdso]"); in TEST()
|
D | thread_tree_test.cpp | 51 names[i] = pair.second->dso->Path(); in CheckMaps() 60 ASSERT_TRUE(thread_tree_.IsUnknownDso(entry->dso)); in CheckMaps() 62 ASSERT_EQ(entry->dso->Path(), expected_names_[i]); in CheckMaps()
|
D | ETMDecoder.cpp | 257 llvm::MemoryBuffer* memory = GetMemoryBuffer(map->dso); in ReadTargetMemory() 277 llvm::MemoryBuffer* GetMemoryBuffer(Dso* dso) { in GetMemoryBuffer() argument 278 auto it = elf_map_.find(dso); in GetMemoryBuffer() 281 auto res = elf_map_.emplace(dso, ElfFile::Open(dso->GetDebugFilePath(), &status)); in GetMemoryBuffer() 435 instr_range.dso = map->dso; in ProcessElement() 468 if (data.instr_range.dso != nullptr) { in FlushData() 470 data.instr_range.dso = nullptr; in FlushData() 579 data.branch.dso = map->dso; in ProcessAtomPacket() 781 bool Init(Dso* dso) { in Init() argument 783 elf_ = ElfFile::Open(dso->GetDebugFilePath(), &status); in Init() [all …]
|
D | cmd_record.cpp | 1718 for (Dso* dso : dso_v) { in DumpBuildIdFeature() 1721 if (!dso->HasDumpId() && !event_selection_set_.HasAuxTrace()) { in DumpBuildIdFeature() 1724 if (dso->type() == DSO_KERNEL) { in DumpBuildIdFeature() 1729 BuildIdRecord(true, UINT_MAX, build_id, dso->Path())); in DumpBuildIdFeature() 1730 } else if (dso->type() == DSO_KERNEL_MODULE) { in DumpBuildIdFeature() 1731 std::string path = dso->Path(); in DumpBuildIdFeature() 1741 } else if (dso->type() == DSO_ELF_FILE) { in DumpBuildIdFeature() 1742 if (dso->Path() == DEFAULT_EXECNAME_FOR_THREAD_MMAP || dso->IsForJavaMethod()) { in DumpBuildIdFeature() 1745 if (!GetBuildIdFromDsoPath(dso->Path(), &build_id)) { in DumpBuildIdFeature() 1746 LOG(DEBUG) << "Can't read build_id from file " << dso->Path(); in DumpBuildIdFeature() [all …]
|
D | report_lib_interface.cpp | 236 for (Dso* dso : thread_tree_.GetAllDsos()) { in OpenRecordFileIfNecessary() 237 if (dso->type() == DSO_DEX_FILE) { in OpenRecordFileIfNecessary() 238 for (auto& symbol : dso->GetSymbols()) { in OpenRecordFileIfNecessary() 239 java_methods_[symbol.Name()] = std::make_tuple(dso, symbol.addr, symbol.len); in OpenRecordFileIfNecessary() 310 return android::base::EndsWith(map->dso->Path(), "/libart.so") || in SetCurrentSample() 311 android::base::EndsWith(map->dso->Path(), "/libartd.so"); in SetCurrentSample() 317 if (map->dso->IsForJavaMethod()) { in SetCurrentSample() 339 entry.symbol.dso_name = map->dso->GetReportPath().data(); in SetCurrentSample() 346 if (merge_java_methods_ && map->dso->type() == DSO_ELF_FILE && map->dso->IsForJavaMethod()) { in SetCurrentSample()
|
D | cmd_debug_unwind.cpp | 277 Dso* dso = map->dso; in CollectHitFileInfo() local 278 if (!dso->HasDumpId() && dso->type() != DSO_UNKNOWN_FILE) { in CollectHitFileInfo() 279 dso->CreateDumpId(); in CollectHitFileInfo() 281 const Symbol* symbol = thread_tree_.FindSymbol(map, ip, nullptr, &dso); in CollectHitFileInfo() 283 dso->CreateSymbolDumpId(symbol); in CollectHitFileInfo()
|
D | record_file_writer.cpp | 324 for (Dso* dso : files) { in WriteFileFeatures() 326 if (!dso->HasDumpId() && dso->type() != DSO_DEX_FILE) { in WriteFileFeatures() 329 uint32_t dso_type = dso->type(); in WriteFileFeatures() 332 dso->GetMinExecutableVaddr(&min_vaddr, &file_offset_of_min_vaddr); in WriteFileFeatures() 336 const std::vector<Symbol>& symbols = dso->GetSymbols(); in WriteFileFeatures() 345 const std::vector<uint64_t>* dex_file_offsets = dso->DexFileOffsets(); in WriteFileFeatures() 346 if (!WriteFileFeature(dso->Path(), dso_type, min_vaddr, file_offset_of_min_vaddr, in WriteFileFeatures()
|
D | SampleComparator.h | 57 BUILD_COMPARE_STRING_FUNCTION(CompareDso, map->dso->GetReportPath().data()); 60 branch_from.map->dso->GetReportPath().data());
|
D | OfflineUnwinder.cpp | 128 const char* name = entry->dso->GetDebugFilePath().data(); in CreateMapInfo() 130 auto tuple = SplitUrlInApk(entry->dso->GetDebugFilePath()); in CreateMapInfo() 141 if (size_t colon_pos = entry->dso->GetDebugFilePath().find(':'); in CreateMapInfo() 143 name_holder = entry->dso->GetDebugFilePath().substr(0, colon_pos); in CreateMapInfo()
|
D | cmd_dumprecord.cpp | 45 Dso* dso; member 330 PrintIndented(2, "%s (%s[+%" PRIx64 "])\n", s.symbol->DemangledName(), s.dso->Path().c_str(), in ProcessSampleRecord() 355 PrintIndented(2, "%s (%s[+%" PRIx64 "])\n", s.symbol->DemangledName(), s.dso->Path().c_str(), in ProcessCallChainRecord() 365 info.symbol = thread_tree_.FindSymbol(map, ip, &info.vaddr_in_file, &info.dso); in GetSymbolInfo()
|
D | SampleDisplayer.h | 84 return std::string{sample->map->dso->GetReportPath()}; in DisplayDso() 94 return std::string{sample->branch_from.map->dso->GetReportPath()}; in DisplayDsoFrom()
|
/system/extras/simpleperf/scripts/inferno/ |
D | data_types.py | 20 def __init__(self, method, dso): argument 22 self.dso = dso 88 def __init__(self, method, dso, callsite_id): argument 93 self.dso = dso 109 key = (callsite.dso, callsite.method) 112 child = self.child_dict[key] = FlameGraphCallSite(callsite.method, callsite.dso,
|
D | svg_renderer.py | 76 r, g, b = get_dso_color(callsite.dso) 99 callsite.dso,
|
/system/extras/simpleperf/scripts/ |
D | utils.py | 454 dso = self.dso_map.get(dso_path) 455 if dso is None: 456 dso = self.dso_map[dso_path] = self.Dso() 457 if addr not in dso.addrs: 458 dso.addrs[addr] = self.Addr(func_addr) 464 def _convert_addrs_in_one_dso(self, dso_path, dso): argument 476 self._collect_line_info(dso, real_path, [0]) 477 self._collect_line_info(dso, real_path, range(-addr_step, -addr_step * 4 - 1, -addr_step)) 478 self._collect_line_info(dso, real_path, 492 def _collect_line_info(self, dso, real_path, addr_shifts): argument [all …]
|
D | pprof_proto_generator.py | 515 dso = addr2line.get_dso(dso_name) 516 if not dso: 518 sources = addr2line.get_addr_source(dso, location.vaddr_in_dso) 534 dso = addr2line.get_dso(dso_name) 535 if not dso: 537 sources = addr2line.get_addr_source(dso, function.vaddr_in_dso) 630 config['dso_filters'] = flatten_arg_list(args.dso)
|
D | annotate.py | 64 dso = self.addr2line.get_dso(dso_path) 65 if not dso: 67 source = self.addr2line.get_addr_source(dso, addr) 488 config['dso_filters'] = flatten_arg_list(args.dso)
|
D | report_html.py | 697 dso = addr2line.get_dso(self.libs.get_lib_name(function.lib_id)) 698 if not dso: 700 start_source = addr2line.get_addr_source(dso, function.start_addr) 701 end_source = addr2line.get_addr_source(dso, function.start_addr + function.addr_len - 1) 715 dso = addr2line.get_dso(self.libs.get_lib_name(lib.lib_id)) 716 if not dso: 720 source = addr2line.get_addr_source(dso, addr)
|
D | test.py | 1205 dso = addr2line.get_dso(dso_path) 1206 self.assertIsNotNone(dso, dso_path) 1225 actual_source = addr2line.get_addr_source(dso, test_addr['addr']) 1280 dso = test_map[dso_path] 1283 disassemble_code = objdump.disassemble_code(dso_info, dso['start_addr'], dso['len']) 1285 for item in dso['expected_items']:
|
/system/nvram/hal/ |
D | testing_module.c | 37 .dso = 0,
|