Home
last modified time | relevance | path

Searched refs:dso (Results 1 – 25 of 32) sorted by relevance

12

/system/extras/simpleperf/
Ddso_test.cpp136 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 …]
Dthread_tree.cpp110 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 …]
Dthread_tree.h46 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
Dcmd_inject.cpp155 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()
Denvironment_test.cpp34 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()
Dcmd_report_sample.cpp68 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 …]
Dthread_tree_test.cpp51 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()
Dcmd_record.cpp1690 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 …]
Dreport_lib_interface.cpp236 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()
Dcmd_debug_unwind.cpp276 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()
Drecord_file_writer.cpp324 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()
DETMDecoder.cpp251 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()
DSampleComparator.h57 BUILD_COMPARE_STRING_FUNCTION(CompareDso, map->dso->Path().c_str());
60 branch_from.map->dso->Path().c_str());
DETMDecoder.h38 Dso* dso = nullptr; member
Dcmd_dumprecord.cpp181 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()
DSampleDisplayer.h84 return sample->map->dso->Path(); in DisplayDso()
94 return sample->branch_from.map->dso->Path(); in DisplayDsoFrom()
DOfflineUnwinder.cpp123 const char* name = entry->dso->GetDebugFilePath().c_str(); in CreateMapInfo()
125 auto tuple = SplitUrlInApk(entry->dso->GetDebugFilePath()); in CreateMapInfo()
/system/extras/simpleperf/scripts/inferno/
Ddata_types.py20 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,
Dsvg_renderer.py76 r, g, b = get_dso_color(callsite.dso)
99 callsite.dso,
/system/extras/simpleperf/scripts/
Dutils.py450 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 …]
Dpprof_proto_generator.py510 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)
Dannotate.py64 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)
Dreport_html.py697 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/
Dtesting_module.c37 .dso = 0,
/system/core/trusty/keymaster/legacy/
Dmodule.cpp59 .dso = 0,

12