Home
last modified time | relevance | path

Searched refs:dso_path (Results 1 – 5 of 5) sorted by relevance

/system/extras/simpleperf/scripts/test/
Dtools_test.py100 for dso_path in test_map:
101 test_addrs = test_map[dso_path]
103 addr2line.add_addr(dso_path, None, test_addr['func_addr'], test_addr['addr'])
105 for dso_path in test_map:
106 dso = addr2line.get_dso(dso_path)
107 self.assertIsNotNone(dso, dso_path)
108 test_addrs = test_map[dso_path]
129 (dso_path, test_addr['addr']))
137 (dso_path, test_addr['addr'], expected_source, actual_source))
180 for dso_path in test_map:
[all …]
/system/extras/simpleperf/
Ddso.cpp139 std::string DebugElfFileFinder::FindDebugFile(const std::string& dso_path, bool force_64bit, in FindDebugFile() argument
141 if (dso_path == "[vdso]") { in FindDebugFile()
150 GetBuildIdFromDsoPath(dso_path, &build_id); in FindDebugFile()
155 if (!build_id.IsEmpty() || GetBuildIdFromDsoPath(dso_path, &build_id)) { in FindDebugFile()
164 std::string path = GetPathInSymFsDir(dso_path); in FindDebugFile()
169 path = symfs_dir_ + OS_PATH_SEPARATOR + android::base::Basename(dso_path); in FindDebugFile()
176 if (CheckDebugFilePath("/usr/lib/debug" + dso_path, build_id, false)) { in FindDebugFile()
177 return "/usr/lib/debug" + dso_path; in FindDebugFile()
179 return dso_path; in FindDebugFile()
895 std::unique_ptr<Dso> Dso::CreateDso(DsoType dso_type, const std::string& dso_path, in CreateDso() argument
[all …]
Ddso.h44 std::string FindDebugFile(const std::string& dso_path, bool force_64bit, BuildId& build_id);
132 static std::unique_ptr<Dso> CreateDso(DsoType dso_type, const std::string& dso_path,
134 static std::unique_ptr<Dso> CreateDsoWithBuildId(DsoType dso_type, const std::string& dso_path,
136 static std::unique_ptr<Dso> CreateKernelModuleDso(const std::string& dso_path,
221 bool GetBuildIdFromDsoPath(const std::string& dso_path, BuildId* build_id);
/system/extras/simpleperf/scripts/
Dsimpleperf_utils.py568 def add_addr(self, dso_path: str, build_id: Optional[str], func_addr: int, addr: int):
569 dso = self.dso_map.get(dso_path)
571 dso = self.dso_map[dso_path] = self.Dso(build_id)
576 for dso_path, dso in self.dso_map.items():
577 self._convert_addrs_in_one_dso(dso_path, dso)
579 def _convert_addrs_in_one_dso(self, dso_path: str, dso: Addr2Nearestline.Dso):
580 real_path = self.binary_finder.find_binary(dso_path, dso.build_id)
582 if dso_path not in ['//anon', 'unknown', '[kernel.kallsyms]']:
583 log_debug("Can't find dso %s" % dso_path)
718 def get_dso(self, dso_path: str) -> Addr2Nearestline.Dso:
[all …]
Dannotate.py61 def add_addr(self, dso_path: str, build_id: str, func_addr: int, addr: int):
62 self.addr2line.add_addr(dso_path, func_addr, addr)
67 def get_sources(self, dso_path, addr): argument
68 dso = self.addr2line.get_dso(dso_path)