Lines Matching refs:HintManager

51 bool HintManager::ValidateHint(const std::string& hint_type) const {  in ValidateHint()
59 bool HintManager::IsHintSupported(const std::string& hint_type) const { in IsHintSupported()
67 bool HintManager::IsHintEnabled(const std::string &hint_type) const { in IsHintEnabled()
72 bool HintManager::InitHintStatus(const std::unique_ptr<HintManager> &hm) { in InitHintStatus()
94 void HintManager::DoHintStatus(const std::string &hint_type, std::chrono::milliseconds timeout_ms) { in DoHintStatus()
112 void HintManager::EndHintStatus(const std::string &hint_type) { in EndHintStatus()
126 void HintManager::DoHintAction(const std::string &hint_type) { in DoHintAction()
157 void HintManager::EndHintAction(const std::string &hint_type) { in EndHintAction()
167 bool HintManager::DoHint(const std::string& hint_type) { in DoHint()
178 bool HintManager::DoHint(const std::string& hint_type, in DoHint()
197 bool HintManager::EndHint(const std::string& hint_type) { in EndHint()
207 bool HintManager::IsRunning() const { in IsRunning()
211 std::vector<std::string> HintManager::GetHints() const { in GetHints()
219 HintStats HintManager::GetHintStats(const std::string &hint_type) const { in GetHintStats()
231 void HintManager::DumpToFd(int fd) { in DumpToFd()
280 bool HintManager::Start() { in Start()
284 std::unique_ptr<HintManager> HintManager::sInstance = nullptr;
286 void HintManager::Reload(bool start) { in Reload()
298 HintManager::GetFromJSON(config_path, start); in Reload()
304 HintManager *HintManager::GetInstance() { in GetInstance()
306 HintManager::Reload(false); in GetInstance()
327 HintManager *HintManager::GetFromJSON(const std::string &config_path, bool start) { in GetFromJSON()
340 std::vector<std::shared_ptr<AdpfConfig>> adpfs = HintManager::ParseAdpfConfigs(json_doc); in GetFromJSON()
345 std::unordered_map<std::string, Hint> actions = HintManager::ParseActions(json_doc, nodes); in GetFromJSON()
355 sInstance = std::make_unique<HintManager>(std::move(nm), actions, adpfs, gpu_sysfs_node); in GetFromJSON()
357 if (!HintManager::InitHintStatus(sInstance)) { in GetFromJSON()
368 return HintManager::GetInstance(); in GetFromJSON()
371 std::vector<std::unique_ptr<Node>> HintManager::ParseNodes( in ParseNodes()
538 std::unordered_map<std::string, Hint> HintManager::ParseActions( in ParseActions()
682 std::vector<std::shared_ptr<AdpfConfig>> HintManager::ParseAdpfConfigs( in ParseAdpfConfigs()
836 std::shared_ptr<AdpfConfig> HintManager::GetAdpfProfile() const { in GetAdpfProfile()
842 bool HintManager::SetAdpfProfile(const std::string &profile_name) { in SetAdpfProfile()
852 bool HintManager::IsAdpfProfileSupported(const std::string &profile_name) const { in IsAdpfProfileSupported()
861 std::optional<std::string> HintManager::gpu_sysfs_config_path() const { in gpu_sysfs_config_path()