Home | History | Annotate | Download | only in simpleperf

Lines Matching refs:event_attr

25 #include "event_attr.h"
56 selection.event_attr = CreateDefaultPerfEventAttr(event_type_modifier.event_type);
57 selection.event_attr.exclude_user = event_type_modifier.exclude_user;
58 selection.event_attr.exclude_kernel = event_type_modifier.exclude_kernel;
59 selection.event_attr.exclude_hv = event_type_modifier.exclude_hv;
60 selection.event_attr.exclude_host = event_type_modifier.exclude_host;
61 selection.event_attr.exclude_guest = event_type_modifier.exclude_guest;
62 selection.event_attr.precise_ip = event_type_modifier.precise_ip;
63 if (!IsEventAttrSupportedByKernel(selection.event_attr)) {
77 sample_type |= selection.event_attr.sample_type;
80 selection.event_attr.sample_type = sample_type;
91 selection.event_attr.enable_on_exec = 1;
92 selection.event_attr.disabled = 1;
94 selection.event_attr.enable_on_exec = 0;
95 selection.event_attr.disabled = 0;
102 if (selection.event_attr.enable_on_exec == 0) {
111 selection.event_attr.sample_id_all = 1;
117 perf_event_attr& attr = selection.event_attr;
125 perf_event_attr& attr = selection.event_attr;
143 perf_event_attr& attr = selection.event_attr;
156 selection.event_attr.sample_type |= PERF_SAMPLE_CALLCHAIN;
166 selection.event_attr.sample_type |=
168 selection.event_attr.exclude_callchain_user = 1;
169 selection.event_attr.sample_regs_user = GetSupportedRegMask(GetBuildArch());
170 selection.event_attr.sample_stack_user = dump_stack_size;
177 selection.event_attr.inherit = (enable ? 1 : 0);
214 auto event_fd = EventFd::OpenEventFile(selection.event_attr, tid, cpu);
322 return (selection != nullptr) ? &selection->event_attr : nullptr;