Lines Matching refs:build_id

91       BuildId build_id;  in CollectBuildIdInDir()  local
94 if (status == ElfStatus::NO_ERROR && elf->GetBuildId(&build_id) == ElfStatus::NO_ERROR) { in CollectBuildIdInDir()
95 build_id_to_file_map_[build_id.ToString()] = path; in CollectBuildIdInDir()
109 static bool CheckDebugFilePath(const std::string& path, BuildId& build_id, in CheckDebugFilePath() argument
124 bool match = build_id == debug_build_id; in CheckDebugFilePath()
126 LOG(WARNING) << path << " isn't used because of build id mismatch: expected " << build_id in CheckDebugFilePath()
133 BuildId& build_id) { in FindDebugFile() argument
141 if (build_id.IsEmpty()) { in FindDebugFile()
143 GetBuildIdFromDsoPath(dso_path, &build_id); in FindDebugFile()
148 if (!build_id.IsEmpty() || GetBuildIdFromDsoPath(dso_path, &build_id)) { in FindDebugFile()
149 auto it = build_id_to_file_map_.find(build_id.ToString()); in FindDebugFile()
150 if (it != build_id_to_file_map_.end() && CheckDebugFilePath(it->second, build_id, false)) { in FindDebugFile()
158 if (CheckDebugFilePath(path, build_id, true)) { in FindDebugFile()
163 if (CheckDebugFilePath(path, build_id, false)) { in FindDebugFile()
169 if (CheckDebugFilePath("/usr/lib/debug" + dso_path, build_id, false)) { in FindDebugFile()
505 BuildId build_id = GetExpectedBuildId(); in GetMinExecutableVaddr() local
508 auto elf = ElfFile::Open(debug_file_path_, &build_id, &status); in GetMinExecutableVaddr()
559 BuildId build_id = GetExpectedBuildId(); in LoadSymbols() local
566 auto elf = ElfFile::Open(debug_file_path_, &build_id, &status); in LoadSymbols()
596 BuildId build_id = GetExpectedBuildId(); in LoadSymbols() local
604 auto elf = ElfFile::Open(vmlinux_, &build_id, &status); in LoadSymbols()
611 } else if (read_kernel_symbols_from_proc_ || !build_id.IsEmpty()) { in LoadSymbols()
615 if (!build_id.IsEmpty()) { in LoadSymbols()
617 if (!GetKernelBuildId(&real_build_id) || build_id != real_build_id) { in LoadSymbols()
668 BuildId build_id = GetExpectedBuildId(); in LoadSymbols() local
675 auto elf = ElfFile::Open(debug_file_path_, &build_id, &status); in LoadSymbols()
704 BuildId build_id = FindExpectedBuildIdForPath(dso_path); in CreateDso() local
706 debug_elf_file_finder_.FindDebugFile(dso_path, force_64bit, build_id))); in CreateDso()
711 BuildId build_id = FindExpectedBuildIdForPath(dso_path); in CreateDso() local
713 dso_path, debug_elf_file_finder_.FindDebugFile(dso_path, force_64bit, build_id))); in CreateDso()
725 std::unique_ptr<Dso> Dso::CreateElfDsoWithBuildId(const std::string& dso_path, BuildId& build_id) { in CreateElfDsoWithBuildId() argument
727 new ElfDso(dso_path, debug_elf_file_finder_.FindDebugFile(dso_path, false, build_id))); in CreateElfDsoWithBuildId()
745 bool GetBuildIdFromDsoPath(const std::string& dso_path, BuildId* build_id) { in GetBuildIdFromDsoPath() argument
748 if (status == ElfStatus::NO_ERROR && elf->GetBuildId(build_id) == ElfStatus::NO_ERROR) { in GetBuildIdFromDsoPath()