/system/extras/simpleperf/ |
D | dso_test.cpp | 136 TEST(dso, dex_file_dso) { in TEST() argument 139 std::unique_ptr<Dso> dso = Dso::CreateDso(dso_type, GetTestData("base.vdex")); in TEST() local 140 ASSERT_TRUE(dso); in TEST() 141 dso->AddDexFileOffset(0x28); in TEST() 142 ASSERT_EQ(DSO_DEX_FILE, dso->type()); in TEST() 143 const Symbol* symbol = dso->FindSymbol(0x6c77e); in TEST() 151 dso->GetMinExecutableVaddr(&min_vaddr, &file_offset_of_min_vaddr); in TEST() 156 dso = Dso::CreateDso(dso_type, GetTestData("base.zip!/not_exist_entry")); in TEST() 157 ASSERT_TRUE(dso); in TEST() 158 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 | 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 | cmd_inject.cpp | 155 auto lookup = dso_filter_cache.find(instr_range.dso); in FilterInstrRange() 159 bool match = std::regex_search(instr_range.dso->GetDebugFilePath(), in FilterInstrRange() 161 dso_filter_cache.insert({instr_range.dso, match}); in FilterInstrRange() 170 auto& binary = binary_map_[instr_range.dso]; in ProcessInstrRange() 189 for (auto dso : dso_v) { in PostProcess() local 190 const BinaryInfo& binary = binary_map_[dso]; in PostProcess() 220 fprintf(output_fp_.get(), "// %s\n\n", dso->Path().c_str()); in PostProcess()
|
D | environment_test.cpp | 34 std::unique_ptr<Dso> dso = Dso::CreateDso(DSO_ELF_FILE, "[vdso]", in TEST() local 36 ASSERT_TRUE(dso != nullptr); in TEST() 37 ASSERT_NE(dso->GetDebugFilePath(), "[vdso]"); in TEST()
|
D | cmd_report_sample.cpp | 68 Dso* dso; member 494 return android::base::EndsWith(entry.dso->Path(), "/libart.so"); in ProcessSampleRecord() 505 if (entry.dso->IsForJavaMethod()) { in ProcessSampleRecord() 540 if (!node.dso->GetDumpId(&file_id)) { in PrintSampleRecordInProtobuf() 541 file_id = node.dso->CreateDumpId(); in PrintSampleRecordInProtobuf() 546 symbol_id = node.dso->CreateSymbolDumpId(node.symbol); in PrintSampleRecordInProtobuf() 558 if (node.dso->FileName() == "libc.so" && in PrintSampleRecordInProtobuf() 581 if (omit_unknown_dso && thread_tree_.IsUnknownDso(map->dso)) { in GetCallEntry() 584 entry->symbol = thread_tree_.FindSymbol(map, ip, &(entry->vaddr_in_file), &(entry->dso)); in GetCallEntry() 587 entry->dso = map->dso; in GetCallEntry() [all …]
|
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 | cmd_record.cpp | 1690 for (Dso* dso : dso_v) { in DumpBuildIdFeature() 1693 if (!dso->HasDumpId() && !event_selection_set_.HasAuxTrace()) { in DumpBuildIdFeature() 1696 if (dso->type() == DSO_KERNEL) { in DumpBuildIdFeature() 1701 BuildIdRecord(true, UINT_MAX, build_id, dso->Path())); in DumpBuildIdFeature() 1702 } else if (dso->type() == DSO_KERNEL_MODULE) { in DumpBuildIdFeature() 1703 std::string path = dso->Path(); in DumpBuildIdFeature() 1713 } else if (dso->type() == DSO_ELF_FILE) { in DumpBuildIdFeature() 1714 if (dso->Path() == DEFAULT_EXECNAME_FOR_THREAD_MMAP) { in DumpBuildIdFeature() 1717 if (!GetBuildIdFromDsoPath(dso->Path(), &build_id)) { in DumpBuildIdFeature() 1718 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->Path().c_str(); in SetCurrentSample() 346 if (merge_java_methods_ && map->dso->type() == DSO_ELF_FILE && map->dso->IsForJavaMethod()) { in SetCurrentSample()
|
D | cmd_debug_unwind.cpp | 276 Dso* dso = map->dso; in CollectHitFileInfo() local 277 if (!dso->HasDumpId() && dso->type() != DSO_UNKNOWN_FILE) { in CollectHitFileInfo() 278 dso->CreateDumpId(); in CollectHitFileInfo() 280 const Symbol* symbol = thread_tree_.FindSymbol(map, ip, nullptr, &dso); in CollectHitFileInfo() 282 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 | ETMDecoder.cpp | 251 llvm::MemoryBuffer* memory = GetMemoryBuffer(map->dso); in ReadTargetMemory() 271 llvm::MemoryBuffer* GetMemoryBuffer(Dso* dso) { in GetMemoryBuffer() argument 272 auto it = elf_map_.find(dso); in GetMemoryBuffer() 275 auto res = elf_map_.emplace(dso, ElfFile::Open(dso->GetDebugFilePath(), &status)); in GetMemoryBuffer() 429 instr_range.dso = map->dso; in ProcessElement() 462 if (data.instr_range.dso != nullptr) { in FlushData() 464 data.instr_range.dso = nullptr; in FlushData()
|
D | SampleComparator.h | 57 BUILD_COMPARE_STRING_FUNCTION(CompareDso, map->dso->Path().c_str()); 60 branch_from.map->dso->Path().c_str());
|
D | ETMDecoder.h | 38 Dso* dso = nullptr; member
|
D | cmd_dumprecord.cpp | 181 Dso* dso; in DumpDataSection() local 182 const Symbol* symbol = thread_tree.FindSymbol(map, ip, &vaddr_in_file, &dso); in DumpDataSection() 183 dso_name = dso->Path(); in DumpDataSection()
|
D | SampleDisplayer.h | 84 return sample->map->dso->Path(); in DisplayDso() 94 return sample->branch_from.map->dso->Path(); in DisplayDsoFrom()
|
D | OfflineUnwinder.cpp | 123 const char* name = entry->dso->GetDebugFilePath().c_str(); in CreateMapInfo() 125 auto tuple = SplitUrlInApk(entry->dso->GetDebugFilePath()); in CreateMapInfo()
|
/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 | 450 dso = self.dso_map.get(dso_path) 451 if dso is None: 452 dso = self.dso_map[dso_path] = self.Dso() 453 if addr not in dso.addrs: 454 dso.addrs[addr] = self.Addr(func_addr) 460 def _convert_addrs_in_one_dso(self, dso_path, dso): argument 472 self._collect_line_info(dso, real_path, [0]) 473 self._collect_line_info(dso, real_path, range(-addr_step, -addr_step * 4 - 1, -addr_step)) 474 self._collect_line_info(dso, real_path, 488 def _collect_line_info(self, dso, real_path, addr_shifts): argument [all …]
|
D | pprof_proto_generator.py | 510 dso = addr2line.get_dso(dso_name) 511 if not dso: 513 sources = addr2line.get_addr_source(dso, location.vaddr_in_dso) 529 dso = addr2line.get_dso(dso_name) 530 if not dso: 532 sources = addr2line.get_addr_source(dso, function.vaddr_in_dso) 626 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)
|
/system/nvram/hal/ |
D | testing_module.c | 37 .dso = 0,
|
/system/core/trusty/keymaster/legacy/ |
D | module.cpp | 59 .dso = 0,
|