• Home
  • Raw
  • Download

Lines Matching refs:item

114         for (const auto& item : hookCtx_) {  in CheckProcessName()  local
115 if (item->pid == pidValue) { in CheckProcessName()
337 for (const auto& item : hookCtx_) { in CreatePluginSession() local
338 …CHECK_TRUE(HandleHookContext(item), false, "handle hook context failed"); // Create the required r… in CreatePluginSession()
410 for (const auto& item : hookCtx_) { in DestroyPluginSession() local
411 if (item->eventPoller != nullptr) { in DestroyPluginSession()
413 if (item->eventNotifier != nullptr) { in DestroyPluginSession()
414 item->eventPoller->RemoveFileDescriptor(item->eventNotifier->GetFd()); in DestroyPluginSession()
416 item->eventPoller->Stop(); in DestroyPluginSession()
417 item->eventPoller->Finalize(); in DestroyPluginSession()
418 item->eventPoller = nullptr; in DestroyPluginSession()
421 if (item->shareMemoryBlock != nullptr) { in DestroyPluginSession()
422 ShareMemoryAllocator::GetInstance().ReleaseMemoryBlockLocal(item->smbName); in DestroyPluginSession()
423 item->shareMemoryBlock = nullptr; in DestroyPluginSession()
425 item->eventNotifier = nullptr; in DestroyPluginSession()
426 item->stackPreprocess = nullptr; in DestroyPluginSession()
427 item->stackData = nullptr; in DestroyPluginSession()
452 for (const auto& item : hookCtx_) { in StopPluginSession() local
453 if (item->pid > 0) { in StopPluginSession()
454 PROFILER_LOG_INFO(LOG_CORE, "stop command : send 37 signal to process %d", item->pid); in StopPluginSession()
455 if (kill(item->pid, SIGNAL_STOP_HOOK) == -1) { in StopPluginSession()
459 … PROFILER_LOG_ERROR(LOG_CORE, "send 37 signal to process %d , error = %s", item->pid, buf); in StopPluginSession()
462 … PROFILER_LOG_INFO(LOG_CORE, "StopPluginSession: pid(%d) is less or equal zero.", item->pid); in StopPluginSession()
464 CHECK_TRUE(item->stackPreprocess != nullptr, false, "stop StackPreprocess FAIL"); in StopPluginSession()
465 item->stackPreprocess->StopTakeResults(); in StopPluginSession()
468 item->stackPreprocess->FlushRecordStatistics(); in StopPluginSession()
470 if (item->stackData != nullptr) { in StopPluginSession()
471 item->stackData->Close(); in StopPluginSession()
566 for (const auto& item : hookCtx_) { in StartPluginSession() local
567 if (item->stackPreprocess == nullptr) { in StartPluginSession()
570 PROFILER_LOG_ERROR(LOG_CORE, "StartPluginSession name: %s", item->processName.c_str()); in StartPluginSession()
572 item->stackPreprocess->StartTakeResults(); in StartPluginSession()
574 if (item->pid > 0) { in StartPluginSession()
575 PROFILER_LOG_INFO(LOG_CORE, "start command : send 36 signal to process %d", item->pid); in StartPluginSession()
576 if (kill(item->pid, SIGNAL_START_HOOK) == -1) { in StartPluginSession()
583 … PROFILER_LOG_INFO(LOG_CORE, "StartPluginSession: pid(%d) is less or equal zero.", item->pid); in StartPluginSession()
590 for (const auto& item : hookCtx_) { in WriteHookConfig() local
591 if (item == nullptr) { in WriteHookConfig()
595 item->stackPreprocess->WriteHookConfig(); in WriteHookConfig()
601 for (const auto& item : hookCtx_) { in GetFds() local
602 if (item->pid == pid || item->processName == name) { in GetFds()
603 if (item->pid == -1) { in GetFds()
604 item->pid = pid; in GetFds()
606 item->stackPreprocess->SetPid(pid); in GetFds()
607 return {item->eventNotifier->GetFd(), item->shareMemoryBlock->GetfileDescriptor()}; in GetFds()