Lines Matching refs:cpu
456 for (const auto& cpu : cpus) { in CheckIfCpusOnline() local
457 if (std::find(online_cpus.begin(), online_cpus.end(), cpu) == in CheckIfCpusOnline()
459 LOG(ERROR) << "cpu " << cpu << " is not online."; in CheckIfCpusOnline()
467 pid_t tid, int cpu, in OpenEventFilesOnGroup() argument
475 EventFd::OpenEventFile(selection.event_attr, tid, cpu, group_fd, false); in OpenEventFilesOnGroup()
535 for (const auto& cpu : cpus) { in OpenEventFiles() local
536 if (OpenEventFilesOnGroup(group, tid, cpu, &failed_event_type)) { in OpenEventFiles()
586 counter->cpu = event_fd->Cpu(); in ReadCounter()
725 for (const auto& cpu : online_cpus_) { in DetectCpuHotplugEvents() local
726 if (std::find(new_cpus.begin(), new_cpus.end(), cpu) == new_cpus.end()) { in DetectCpuHotplugEvents()
728 monitored_cpus_.find(cpu) != monitored_cpus_.end()) { in DetectCpuHotplugEvents()
729 LOG(INFO) << "Cpu " << cpu << " is offlined"; in DetectCpuHotplugEvents()
730 if (!HandleCpuOfflineEvent(cpu)) { in DetectCpuHotplugEvents()
736 for (const auto& cpu : new_cpus) { in DetectCpuHotplugEvents() local
737 if (std::find(online_cpus_.begin(), online_cpus_.end(), cpu) == in DetectCpuHotplugEvents()
740 monitored_cpus_.find(cpu) != monitored_cpus_.end()) { in DetectCpuHotplugEvents()
741 LOG(INFO) << "Cpu " << cpu << " is onlined"; in DetectCpuHotplugEvents()
742 if (!HandleCpuOnlineEvent(cpu)) { in DetectCpuHotplugEvents()
752 bool EventSelectionSet::HandleCpuOfflineEvent(int cpu) { in HandleCpuOfflineEvent() argument
765 if (fd->Cpu() == cpu) { in HandleCpuOfflineEvent()
778 if ((*it)->Cpu() == cpu) { in HandleCpuOfflineEvent()
796 bool EventSelectionSet::HandleCpuOnlineEvent(int cpu) { in HandleCpuOnlineEvent() argument
807 if (!OpenEventFilesOnGroup(group, tid, cpu, &failed_event_type)) { in HandleCpuOnlineEvent()
812 << " on cpu " << cpu; in HandleCpuOnlineEvent()
819 if (!CreateMappedBufferForCpu(cpu)) { in HandleCpuOnlineEvent()
828 if (event_fd->Cpu() == cpu) { in HandleCpuOnlineEvent()
844 bool EventSelectionSet::CreateMappedBufferForCpu(int cpu) { in CreateMappedBufferForCpu() argument
849 if (fd->Cpu() == cpu) { in CreateMappedBufferForCpu()