Home
last modified time | relevance | path

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

/system/extras/simpleperf/
Ddso.cpp212 const std::string s = Dso::Demangle(name_); in DemangledName()
222 bool Dso::demangle_ = true;
223 std::string Dso::vmlinux_;
224 std::string Dso::kallsyms_;
225 bool Dso::read_kernel_symbols_from_proc_;
226 std::unordered_map<std::string, BuildId> Dso::build_id_map_;
227 size_t Dso::dso_count_;
228 uint32_t Dso::g_dump_id_;
229 simpleperf_dso_impl::DebugElfFileFinder Dso::debug_elf_file_finder_;
231 void Dso::SetDemangle(bool demangle) { demangle_ = demangle; } in SetDemangle()
[all …]
Dthread_tree.h46 Dso* dso;
51 Dso* dso, bool in_kernel, uint32_t flags = 0)
98 unknown_dso_ = Dso::CreateDso(DSO_UNKNOWN_FILE, "unknown"); in ThreadTree()
101 kernel_dso_ = Dso::CreateDso(DSO_KERNEL, DEFAULT_KERNEL_MMAP_NAME); in ThreadTree()
121 uint64_t* pvaddr_in_file, Dso** pdso = nullptr);
123 bool IsUnknownDso(const Dso* dso) const { return dso == unknown_dso_.get(); } in IsUnknownDso()
143 std::vector<Dso*> GetAllDsos() const;
147 Dso* FindKernelDsoOrNew(const std::string& filename);
148 Dso* FindUserDsoOrNew(const std::string& filename, uint64_t start_addr = 0,
160 std::unique_ptr<Dso> kernel_dso_;
[all …]
Ddso_test.cpp153 std::unique_ptr<Dso> dso = Dso::CreateDso(dso_type, GetTestData("base.vdex")); in TEST()
170 dso = Dso::CreateDso(dso_type, GetTestData("base.zip!/not_exist_entry")); in TEST()
180 std::unique_ptr<Dso> dso = Dso::CreateDso(DSO_DEX_FILE, ""); in TEST()
190 std::unique_ptr<Dso> dso = Dso::CreateDso(DSO_ELF_FILE, file_path); in TEST()
208 std::unique_ptr<Dso> dso = Dso::CreateDso(DSO_ELF_FILE, GetTestData("libc.so")); in TEST()
215 Dso::SetSymFsDir(GetTestDataDir()); in TEST()
218 Dso::SetBuildIds(build_ids); in TEST()
219 std::unique_ptr<Dso> dso = Dso::CreateDso(DSO_KERNEL_MODULE, ELF_FILE, false); in TEST()
Dcmd_inject.cpp180 if (!NextArgumentOrError(args, &i) || !Dso::AddSymbolDir(args[i])) { in ParseOptions()
243 std::unordered_map<Dso*, bool> dso_filter_cache;
244 bool FilterDso(Dso* dso) { in FilterDso()
301 auto check_build_id = [](Dso* dso, const BuildId& expected_build_id) { in ProcessBranchListFile()
313 std::unique_ptr<Dso> dso = Dso::CreateElfDsoWithBuildId(binary_proto.path(), build_id); in ProcessBranchListFile()
318 Dso* dso_p = dso.get(); in ProcessBranchListFile()
358 std::vector<Dso*> dso_v; in PostProcessInstrRange()
362 std::sort(dso_v.begin(), dso_v.end(), [](Dso* d1, Dso* d2) { return d1->Path() < d2->Path(); }); in PostProcessInstrRange()
403 Dso* dso = dso_p.first; in PostProcessBranchList()
408 BuildId build_id = Dso::FindExpectedBuildIdForPath(dso->Path()); in PostProcessBranchList()
[all …]
DETMDecoder.h38 Dso* dso = nullptr;
55 Dso* dso = nullptr;
83 Dso* dso, const std::map<uint64_t, std::map<std::vector<bool>, uint64_t>>& branch_map,
Dthread_tree.cpp110 Dso* dso = FindKernelDsoOrNew(filename); in AddKernelMap()
114 Dso* ThreadTree::FindKernelDsoOrNew(const std::string& filename) { in FindKernelDsoOrNew()
121 module_dso_tree_[filename] = Dso::CreateDso(DSO_KERNEL_MODULE, filename); in FindKernelDsoOrNew()
130 Dso* dso = FindUserDsoOrNew(filename, start_addr); in AddThreadMap()
134 Dso* ThreadTree::FindUserDsoOrNew(const std::string& filename, uint64_t start_addr, in FindUserDsoOrNew()
139 std::unique_ptr<Dso> dso = Dso::CreateDso(dso_type, filename, force_64bit); in FindUserDsoOrNew()
229 uint64_t* pvaddr_in_file, Dso** pdso) { in FindSymbol()
232 Dso* dso = map->dso; in FindSymbol()
285 Dso* dso = nullptr; in AddDsoInfo()
299 Dso* dso = FindUserDsoOrNew(file_path, 0, DSO_DEX_FILE); in AddDexFileOffset()
[all …]
Ddso.h101 friend class Dso; member
115 class Dso {
140 static std::unique_ptr<Dso> CreateDso(DsoType dso_type, const std::string& dso_path,
142 static std::unique_ptr<Dso> CreateElfDsoWithBuildId(const std::string& dso_path,
144 virtual ~Dso();
202 Dso(DsoType type, const std::string& path, const std::string& debug_file_path);
Denvironment_test.cpp39 std::unique_ptr<Dso> dso = Dso::CreateDso(DSO_ELF_FILE, "[vdso]", in TEST()
DOfflineUnwinder_test.cpp49 std::unique_ptr<Dso> fake_dso = Dso::CreateDso(DSO_UNKNOWN_FILE, "unknown"); in TEST()
Dreport_lib_interface.cpp147 bool SetSymfs(const char* symfs_dir) { return Dso::SetSymFsDir(symfs_dir); } in SetSymfs()
199 std::unordered_map<std::string, std::tuple<Dso*, uint64_t, uint64_t>> java_methods_;
220 Dso::SetKallsyms(std::move(kallsyms)); in SetKallsymsFile()
236 for (Dso* dso : thread_tree_.GetAllDsos()) { in OpenRecordFileIfNecessary()
441 BuildId build_id = Dso::FindExpectedBuildIdForPath(path); in GetBuildIdForPath()
Dcmd_report_sample.cpp69 Dso* dso;
269 if (!Dso::AddSymbolDir(args[i])) { in ParseOptions()
601 static bool CompareDsoByDumpId(Dso* d1, Dso* d2) { in CompareDsoByDumpId()
610 std::vector<Dso*> dsos = thread_tree_.GetAllDsos(); in PrintFileInfoInProtobuf()
612 for (Dso* dso : dsos) { in PrintFileInfoInProtobuf()
Dcmd_debug_unwind.cpp168 if (!Dso::SetSymFsDir(args[i])) { in ParseOptions()
277 Dso* dso = map->dso; in CollectHitFileInfo()
DETMDecoder.cpp277 llvm::MemoryBuffer* GetMemoryBuffer(Dso* dso) { in GetMemoryBuffer()
295 std::unordered_map<Dso*, std::unique_ptr<ElfFile>> elf_map_;
781 bool Init(Dso* dso) { in Init()
844 Dso* dso, const std::map<uint64_t, std::map<std::vector<bool>, uint64_t>>& branch_map, in ConvertBranchMapToInstrRanges()
Dcmd_report.cpp573 Dso::SetKallsyms(kallsyms); in ParseOptions()
628 if (!Dso::SetSymFsDir(args[i])) { in ParseOptions()
642 Dso::SetDemangle(demangle); in ParseOptions()
644 Dso::SetVmlinux(vmlinux); in ParseOptions()
Drecord_file_writer.cpp323 bool RecordFileWriter::WriteFileFeatures(const std::vector<Dso*>& files) { in WriteFileFeatures()
324 for (Dso* dso : files) { in WriteFileFeatures()
Dcmd_record.cpp878 if (!Dso::SetSymFsDir(*value->str_value)) { in ParseOptions()
1641 Dso::ReadKernelSymbolsFromProc(); in DumpAdditionalFeatures()
1717 std::vector<Dso*> dso_v = thread_tree_.GetAllDsos(); in DumpBuildIdFeature()
1718 for (Dso* dso : dso_v) { in DumpBuildIdFeature()
1760 std::vector<Dso*> dso_v = thread_tree_.GetAllDsos(); in DumpFileFeature()
1796 Dso* dso = map->dso; in CollectHitFileInfo()
Dcmd_dumprecord.cpp45 Dso* dso;
197 if (!Dso::AddSymbolDir(args[i])) { in ParseOptions()
Drecord_file.h60 bool WriteFileFeatures(const std::vector<Dso*>& files);
Drecord_file_reader.cpp545 Dso::SetBuildIds(build_ids); in LoadBuildIdAndFileFeatures()
Denvironment.cpp543 Dso::SetVdsoFile(tmpfile->path, sizeof(size_t) == sizeof(uint64_t)); in PrepareVdsoFile()
/system/extras/simpleperf/scripts/
Dutils.py421 class Dso(object): class in Addr2Nearestline
456 dso = self.dso_map[dso_path] = self.Dso()