Lines Matching refs:selection
54 EventSelection selection; in AddEventType() local
55 selection.event_type_modifier = event_type_modifier; in AddEventType()
56 selection.event_attr = CreateDefaultPerfEventAttr(event_type_modifier.event_type); in AddEventType()
57 selection.event_attr.exclude_user = event_type_modifier.exclude_user; in AddEventType()
58 selection.event_attr.exclude_kernel = event_type_modifier.exclude_kernel; in AddEventType()
59 selection.event_attr.exclude_hv = event_type_modifier.exclude_hv; in AddEventType()
60 selection.event_attr.exclude_host = event_type_modifier.exclude_host; in AddEventType()
61 selection.event_attr.exclude_guest = event_type_modifier.exclude_guest; in AddEventType()
62 selection.event_attr.precise_ip = event_type_modifier.precise_ip; in AddEventType()
63 if (!IsEventAttrSupportedByKernel(selection.event_attr)) { in AddEventType()
67 selections_.push_back(std::move(selection)); in AddEventType()
76 for (auto& selection : selections_) { in UnionSampleType() local
77 sample_type |= selection.event_attr.sample_type; in UnionSampleType()
79 for (auto& selection : selections_) { in UnionSampleType() local
80 selection.event_attr.sample_type = sample_type; in UnionSampleType()
85 for (auto& selection : selections_) { in SetEnableOnExec() local
91 selection.event_attr.enable_on_exec = 1; in SetEnableOnExec()
92 selection.event_attr.disabled = 1; in SetEnableOnExec()
94 selection.event_attr.enable_on_exec = 0; in SetEnableOnExec()
95 selection.event_attr.disabled = 0; in SetEnableOnExec()
101 for (auto& selection : selections_) { in GetEnableOnExec() local
102 if (selection.event_attr.enable_on_exec == 0) { in GetEnableOnExec()
110 for (auto& selection : selections_) { in SampleIdAll() local
111 selection.event_attr.sample_id_all = 1; in SampleIdAll()
116 for (auto& selection : selections_) { in SetSampleFreq() local
117 perf_event_attr& attr = selection.event_attr; in SetSampleFreq()
124 for (auto& selection : selections_) { in SetSamplePeriod() local
125 perf_event_attr& attr = selection.event_attr; in SetSamplePeriod()
142 for (auto& selection : selections_) { in SetBranchSampling() local
143 perf_event_attr& attr = selection.event_attr; in SetBranchSampling()
155 for (auto& selection : selections_) { in EnableFpCallChainSampling() local
156 selection.event_attr.sample_type |= PERF_SAMPLE_CALLCHAIN; in EnableFpCallChainSampling()
165 for (auto& selection : selections_) { in EnableDwarfCallChainSampling() local
166 selection.event_attr.sample_type |= in EnableDwarfCallChainSampling()
168 selection.event_attr.exclude_callchain_user = 1; in EnableDwarfCallChainSampling()
169 selection.event_attr.sample_regs_user = GetSupportedRegMask(GetBuildArch()); in EnableDwarfCallChainSampling()
170 selection.event_attr.sample_stack_user = dump_stack_size; in EnableDwarfCallChainSampling()
176 for (auto& selection : selections_) { in SetInherit() local
177 selection.event_attr.inherit = (enable ? 1 : 0); in SetInherit()
210 for (auto& selection : selections_) { in OpenEventFiles() local
214 auto event_fd = EventFd::OpenEventFile(selection.event_attr, tid, cpu); in OpenEventFiles()
217 selection.event_fds.push_back(std::move(event_fd)); in OpenEventFiles()
225 << selection.event_type_modifier.name << " for " in OpenEventFiles()
236 for (auto& selection : selections_) { in ReadCounters() local
238 counters_info.event_type = &selection.event_type_modifier; in ReadCounters()
239 for (auto& event_fd : selection.event_fds) { in ReadCounters()
254 for (auto& selection : selections_) { in PreparePollForEventFiles() local
255 for (auto& event_fd : selection.event_fds) { in PreparePollForEventFiles()
264 for (auto& selection : selections_) { in MmapEventFiles() local
265 for (auto& event_fd : selection.event_fds) { in MmapEventFiles()
293 for (auto& selection : selections_) { in ReadMmapEventData() local
294 for (auto& event_fd : selection.event_fds) { in ReadMmapEventData()
311 for (auto& selection : selections_) { in FindSelectionByType() local
312 if (selection.event_type_modifier.name == event_type_modifier.name) { in FindSelectionByType()
313 return &selection; in FindSelectionByType()
321 EventSelection* selection = FindSelectionByType(event_type_modifier); in FindEventAttrByType() local
322 return (selection != nullptr) ? &selection->event_attr : nullptr; in FindEventAttrByType()
327 EventSelection* selection = FindSelectionByType(event_type_modifier); in FindEventFdsByType() local
328 return (selection != nullptr) ? &selection->event_fds : nullptr; in FindEventFdsByType()