/system/extras/simpleperf/ |
D | dso.cpp | 212 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 …]
|
D | thread_tree.h | 46 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 …]
|
D | dso_test.cpp | 153 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()
|
D | cmd_inject.cpp | 180 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 …]
|
D | ETMDecoder.h | 38 Dso* dso = nullptr; 55 Dso* dso = nullptr; 83 Dso* dso, const std::map<uint64_t, std::map<std::vector<bool>, uint64_t>>& branch_map,
|
D | thread_tree.cpp | 110 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 …]
|
D | dso.h | 101 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);
|
D | environment_test.cpp | 39 std::unique_ptr<Dso> dso = Dso::CreateDso(DSO_ELF_FILE, "[vdso]", in TEST()
|
D | OfflineUnwinder_test.cpp | 49 std::unique_ptr<Dso> fake_dso = Dso::CreateDso(DSO_UNKNOWN_FILE, "unknown"); in TEST()
|
D | report_lib_interface.cpp | 147 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()
|
D | cmd_report_sample.cpp | 69 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()
|
D | cmd_debug_unwind.cpp | 168 if (!Dso::SetSymFsDir(args[i])) { in ParseOptions() 277 Dso* dso = map->dso; in CollectHitFileInfo()
|
D | ETMDecoder.cpp | 277 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()
|
D | cmd_report.cpp | 573 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()
|
D | record_file_writer.cpp | 323 bool RecordFileWriter::WriteFileFeatures(const std::vector<Dso*>& files) { in WriteFileFeatures() 324 for (Dso* dso : files) { in WriteFileFeatures()
|
D | cmd_record.cpp | 878 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()
|
D | cmd_dumprecord.cpp | 45 Dso* dso; 197 if (!Dso::AddSymbolDir(args[i])) { in ParseOptions()
|
D | record_file.h | 60 bool WriteFileFeatures(const std::vector<Dso*>& files);
|
D | record_file_reader.cpp | 545 Dso::SetBuildIds(build_ids); in LoadBuildIdAndFileFeatures()
|
D | environment.cpp | 543 Dso::SetVdsoFile(tmpfile->path, sizeof(size_t) == sizeof(uint64_t)); in PrepareVdsoFile()
|
/system/extras/simpleperf/scripts/ |
D | utils.py | 421 class Dso(object): class in Addr2Nearestline 456 dso = self.dso_map[dso_path] = self.Dso()
|