Lines Matching refs:selection
26 EventSelection selection; in AddEventType() local
27 selection.event_type = &event_type; in AddEventType()
28 selection.event_attr = CreateDefaultPerfEventAttr(event_type); in AddEventType()
29 selections_.push_back(std::move(selection)); in AddEventType()
33 for (auto& selection : selections_) { in EnableOnExec() local
34 selection.event_attr.enable_on_exec = 1; in EnableOnExec()
39 for (auto& selection : selections_) { in SampleIdAll() local
40 selection.event_attr.sample_id_all = 1; in SampleIdAll()
45 for (auto& selection : selections_) { in SetSampleFreq() local
46 perf_event_attr& attr = selection.event_attr; in SetSampleFreq()
53 for (auto& selection : selections_) { in SetSamplePeriod() local
54 perf_event_attr& attr = selection.event_attr; in SetSamplePeriod()
65 for (auto& selection : selections_) { in OpenEventFilesForAllCpus() local
67 auto event_fd = EventFd::OpenEventFileForCpu(selection.event_attr, cpu); in OpenEventFilesForAllCpus()
69 selection.event_fds.push_back(std::move(event_fd)); in OpenEventFilesForAllCpus()
74 if (selection.event_fds.empty()) { in OpenEventFilesForAllCpus()
75 LOG(ERROR) << "failed to open perf event file for event_type " << selection.event_type->name in OpenEventFilesForAllCpus()
84 for (auto& selection : selections_) { in OpenEventFilesForProcess() local
85 auto event_fd = EventFd::OpenEventFileForProcess(selection.event_attr, pid); in OpenEventFilesForProcess()
87 PLOG(ERROR) << "failed to open perf event file for event type " << selection.event_type->name in OpenEventFilesForProcess()
91 selection.event_fds.push_back(std::move(event_fd)); in OpenEventFilesForProcess()
97 for (auto& selection : selections_) { in EnableEvents() local
98 for (auto& event_fd : selection.event_fds) { in EnableEvents()
109 for (auto& selection : selections_) { in ReadCounters() local
111 for (auto& event_fd : selection.event_fds) { in ReadCounters()
118 counters_map->insert(std::make_pair(selection.event_type, counters)); in ReadCounters()
124 for (auto& selection : selections_) { in PreparePollForEventFiles() local
125 for (auto& event_fd : selection.event_fds) { in PreparePollForEventFiles()
134 for (auto& selection : selections_) { in MmapEventFiles() local
135 for (auto& event_fd : selection.event_fds) { in MmapEventFiles()
164 for (auto& selection : selections_) { in ReadMmapEventData() local
165 for (auto& event_fd : selection.event_fds) { in ReadMmapEventData()
181 for (auto& selection : selections_) { in FindEventFileNameById() local
182 for (auto& event_fd : selection.event_fds) { in FindEventFileNameById()
193 for (auto& selection : selections_) { in FindSelectionByType() local
194 if (strcmp(selection.event_type->name, event_type.name) == 0) { in FindSelectionByType()
195 return &selection; in FindSelectionByType()