Lines Matching refs:dso_path
139 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
897 BuildId build_id = FindExpectedBuildIdForPath(dso_path); in CreateDso()
898 std::string debug_path = debug_elf_file_finder_.FindDebugFile(dso_path, force_64bit, build_id); in CreateDso()
901 return std::unique_ptr<Dso>(new ElfDso(dso_path, debug_path)); in CreateDso()
903 return std::unique_ptr<Dso>(new KernelDso(dso_path, debug_path)); in CreateDso()
905 return std::unique_ptr<Dso>(new DexFileDso(dso_path, dso_path)); in CreateDso()
907 return std::unique_ptr<Dso>(new SymbolMapFileDso(dso_path)); in CreateDso()
909 return std::unique_ptr<Dso>(new UnknownDso(dso_path)); in CreateDso()
916 std::unique_ptr<Dso> Dso::CreateDsoWithBuildId(DsoType dso_type, const std::string& dso_path, in CreateDsoWithBuildId() argument
918 std::string debug_path = debug_elf_file_finder_.FindDebugFile(dso_path, false, build_id); in CreateDsoWithBuildId()
921 return std::unique_ptr<Dso>(new ElfDso(dso_path, debug_path)); in CreateDsoWithBuildId()
923 return std::unique_ptr<Dso>(new KernelDso(dso_path, debug_path)); in CreateDsoWithBuildId()
925 return std::unique_ptr<Dso>(new KernelModuleDso(dso_path, debug_path, 0, 0, nullptr)); in CreateDsoWithBuildId()
932 std::unique_ptr<Dso> Dso::CreateKernelModuleDso(const std::string& dso_path, uint64_t memory_start, in CreateKernelModuleDso() argument
934 BuildId build_id = FindExpectedBuildIdForPath(dso_path); in CreateKernelModuleDso()
935 std::string debug_path = debug_elf_file_finder_.FindDebugFile(dso_path, false, build_id); in CreateKernelModuleDso()
937 new KernelModuleDso(dso_path, debug_path, memory_start, memory_end, kernel_dso)); in CreateKernelModuleDso()
957 bool GetBuildIdFromDsoPath(const std::string& dso_path, BuildId* build_id) { in GetBuildIdFromDsoPath() argument
959 auto elf = ElfFile::Open(dso_path, &status); in GetBuildIdFromDsoPath()