Home
last modified time | relevance | path

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

12

/system/extras/simpleperf/
Ddso_test.cpp150 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 …]
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 …]
Dcmd_inject.cpp244 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 …]
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
DETMDecoder.h38 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,
Dcmd_report_sample.cpp69 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 …]
Denvironment_test.cpp39 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()
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()
DETMDecoder.cpp257 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 …]
Dcmd_record.cpp1718 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 …]
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->GetReportPath().data(); in SetCurrentSample()
346 if (merge_java_methods_ && map->dso->type() == DSO_ELF_FILE && map->dso->IsForJavaMethod()) { in SetCurrentSample()
Dcmd_debug_unwind.cpp277 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()
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()
DSampleComparator.h57 BUILD_COMPARE_STRING_FUNCTION(CompareDso, map->dso->GetReportPath().data());
60 branch_from.map->dso->GetReportPath().data());
DOfflineUnwinder.cpp128 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()
Dcmd_dumprecord.cpp45 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()
DSampleDisplayer.h84 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/
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.py454 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 …]
Dpprof_proto_generator.py515 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)
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)
Dtest.py1205 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/
Dtesting_module.c37 .dso = 0,

12