Lines Matching refs:pluginName
132 std::string pluginName = pluginConfig.name(); in CreatePluginSession() local
134 std::tie(pluginId, pluginCtx) = GetPluginContext(pluginName); in CreatePluginSession()
141 …UE(cmd != nullptr, false, "CreatePluginSession BuildCreateSessionCmd FAIL %s", pluginName.c_str()); in CreatePluginSession()
143 auto smb = ShareMemoryAllocator::GetInstance().CreateMemoryBlockLocal(pluginName, bufferSize); in CreatePluginSession()
144 CHECK_TRUE(smb != nullptr, false, "CreateMemoryBlockLocal FAIL %s", pluginName.c_str()); in CreatePluginSession()
151 CHECK_NOTNULL(notifier, false, "create EventNotifier for %s failed!", pluginName.c_str()); in CreatePluginSession()
161 auto configIter = profilerSessionConfigs_.find(pluginName); in CreatePluginSession()
163 …LER_LOG_ERROR(LOG_CORE, "profiler session config not set fot plugin name: %s", pluginName.c_str()); in CreatePluginSession()
174 pluginName.c_str(), smb->GetfileDescriptor()); in CreatePluginSession()
184 std::string pluginName = pluginConfig.name(); in CreatePluginSession() local
185 std::tie(pluginId, pluginCtx) = GetPluginContext(pluginName); in CreatePluginSession()
192 …UE(cmd != nullptr, false, "CreatePluginSession BuildCreateSessionCmd FAIL %s", pluginName.c_str()); in CreatePluginSession()
197 PROFILER_LOG_DEBUG(LOG_CORE, "CreatePluginSession %s done!", pluginName.c_str()); in CreatePluginSession()
205 std::string pluginName = config.name(); in StartPluginSession() local
206 std::tie(pluginId, pluginCtx) = GetPluginContext(pluginName); in StartPluginSession()
210 …CHECK_TRUE(cmd != nullptr, false, "StartPluginSession BuildStartSessionCmd FAIL %s", pluginName.c_… in StartPluginSession()
215 PROFILER_LOG_INFO(LOG_CORE, "StartPluginSession %s done!", pluginName.c_str()); in StartPluginSession()
219 bool PluginService::StopPluginSession(const std::string& pluginName) in StopPluginSession() argument
223 std::tie(pluginId, pluginCtx) = GetPluginContext(pluginName); in StopPluginSession()
227 …CHECK_TRUE(cmd != nullptr, false, "StopPluginSession BuildStopSessionCmd FAIL %s", pluginName.c_st… in StopPluginSession()
233 CHECK_NOTNULL(sem, false, "create Semaphore for stop %s FAILED!", pluginName.c_str()); in StopPluginSession()
236 PROFILER_LOG_DEBUG(LOG_CORE, "=== StopPluginSession %s Waiting ... ===", pluginName.c_str()); in StopPluginSession()
243 PROFILER_LOG_DEBUG(LOG_CORE, "StopPluginSession %s done!", pluginName.c_str()); in StopPluginSession()
247 bool PluginService::DestroyPluginSession(const std::string& pluginName) in DestroyPluginSession() argument
251 std::tie(pluginId, pluginCtx) = GetPluginContext(pluginName); in DestroyPluginSession()
255 …(cmd != nullptr, false, "DestroyPluginSession BuildDestroySessionCmd FAIL %s", pluginName.c_str()); in DestroyPluginSession()
257 if (profilerSessionConfigs_.find(pluginName) != profilerSessionConfigs_.end()) { in DestroyPluginSession()
258 profilerSessionConfigs_.erase(profilerSessionConfigs_.find(pluginName)); in DestroyPluginSession()
261 ShareMemoryAllocator::GetInstance().ReleaseMemoryBlockLocal(pluginName); in DestroyPluginSession()
273 PROFILER_LOG_INFO(LOG_CORE, "DestroyPluginSession %s done!", pluginName.c_str()); in DestroyPluginSession()
277 bool PluginService::RefreshPluginSession(const std::string& pluginName) in RefreshPluginSession() argument
281 std::tie(pluginId, pluginCtx) = GetPluginContext(pluginName); in RefreshPluginSession()
285 …(cmd != nullptr, false, "RefreshPluginSession BuildRefreshSessionCmd FAIL %s", pluginName.c_str()); in RefreshPluginSession()
289 PROFILER_LOG_INFO(LOG_CORE, "RefreshPluginSession %s done!", pluginName.c_str()); in RefreshPluginSession()
293 bool PluginService::RemovePluginSessionCtx(const std::string& pluginName) in RemovePluginSessionCtx() argument
295 PluginContextPtr pluginCtx = GetPluginContext(pluginName).second; in RemovePluginSessionCtx()
299 ShareMemoryAllocator::GetInstance().ReleaseMemoryBlockLocal(pluginName); in RemovePluginSessionCtx()
309 PROFILER_LOG_INFO(LOG_CORE, "RemovePluginSessionCtx %s done!", pluginName.c_str()); in RemovePluginSessionCtx()
313 std::pair<uint32_t, PluginContextPtr> PluginService::GetPluginContext(const std::string& pluginName) in GetPluginContext() argument
316 CHECK_TRUE(nameIndex_.count(pluginName) > 0, std::make_pair(0, nullptr), in GetPluginContext()
317 "GetPluginContext failed, plugin name `%s` not found!", pluginName.c_str()); in GetPluginContext()
318 uint32_t id = nameIndex_[pluginName]; in GetPluginContext()
389 bool PluginService::GetPluginInfo(const std::string& pluginName, PluginInfo& pluginInfo) in GetPluginInfo() argument
393 std::tie(pluginId, pluginCtx) = GetPluginContext(pluginName); in GetPluginInfo()
394 CHECK_TRUE(pluginId, false, "plugin name %s not found!", pluginName.c_str()); in GetPluginInfo()
411 std::string pluginName = pluginCtx->config.name(); in RemovePluginInfo() local
412 CHECK_TRUE(ProfilerCapabilityManager::GetInstance().RemoveCapability(pluginName), false, in RemovePluginInfo()
417 std::vector<std::string> pluginNames = {pluginName}; in RemovePluginInfo()
420 this->RemovePluginSessionCtx(pluginName); in RemovePluginInfo()
424 nameIndex_.erase(pluginName); in RemovePluginInfo()
426 PROFILER_LOG_DEBUG(LOG_CORE, "RemovePluginInfo for %s done!", pluginName.c_str()); in RemovePluginInfo()
513 void PluginService::FlushAllData(const std::string& pluginName) in FlushAllData() argument
515 PROFILER_LOG_INFO(LOG_CORE, "FlushAllData for %s start!", pluginName.c_str()); in FlushAllData()
516 auto configIter = profilerSessionConfigs_.find(pluginName); in FlushAllData()
518 …LER_LOG_ERROR(LOG_CORE, "profiler session config not set fot plugin name: %s", pluginName.c_str()); in FlushAllData()
524 std::tie(pluginId, pluginCtx) = GetPluginContext(pluginName); in FlushAllData()
525 …K_NOTNULL(pluginCtx, NO_RETVAL, "%s: get PluginContext(%s) failed!", __func__, pluginName.c_str()); in FlushAllData()
532 PROFILER_LOG_INFO(LOG_CORE, "FlushAllData for %s done!", pluginName.c_str()); in FlushAllData()