Lines Matching refs:event_attr

178   selection->event_attr = CreateDefaultPerfEventAttr(event_type->event_type);  in BuildAndCheckEventSelection()
179 selection->event_attr.exclude_user = event_type->exclude_user; in BuildAndCheckEventSelection()
180 selection->event_attr.exclude_kernel = event_type->exclude_kernel; in BuildAndCheckEventSelection()
181 selection->event_attr.exclude_hv = event_type->exclude_hv; in BuildAndCheckEventSelection()
182 selection->event_attr.exclude_host = event_type->exclude_host; in BuildAndCheckEventSelection()
183 selection->event_attr.exclude_guest = event_type->exclude_guest; in BuildAndCheckEventSelection()
184 selection->event_attr.precise_ip = event_type->precise_ip; in BuildAndCheckEventSelection()
190 ETMRecorder::GetInstance().SetEtmPerfEventAttr(&selection->event_attr); in BuildAndCheckEventSelection()
195 selection->event_attr.freq = 0; in BuildAndCheckEventSelection()
196 selection->event_attr.sample_period = DEFAULT_SAMPLE_PERIOD_FOR_TRACEPOINT_EVENT; in BuildAndCheckEventSelection()
200 selection->event_attr.freq = 0; in BuildAndCheckEventSelection()
201 selection->event_attr.sample_period = 1; in BuildAndCheckEventSelection()
203 selection->event_attr.freq = 1; in BuildAndCheckEventSelection()
207 selection->event_attr.sample_freq = 1; in BuildAndCheckEventSelection()
213 selection->event_attr.mmap = 1; in BuildAndCheckEventSelection()
214 selection->event_attr.comm = 1; in BuildAndCheckEventSelection()
216 selection->event_attr.mmap2 = 1; in BuildAndCheckEventSelection()
222 !IsEventAttrSupported(selection->event_attr, selection->event_type_modifier.name)) { in BuildAndCheckEventSelection()
228 selection->event_attr.sample_freq = DEFAULT_SAMPLE_FREQ_FOR_NONTRACEPOINT_EVENT; in BuildAndCheckEventSelection()
259 if (IsEtmEventType(selection.event_attr.type)) { in AddEventGroup()
319 attr_id.attr = &selection.event_attr; in GetEventAttrWithId()
335 sample_type |= selection.event_attr.sample_type; in UnionSampleType()
340 selection.event_attr.sample_type = sample_type; in UnionSampleType()
354 selection.event_attr.enable_on_exec = 1; in SetEnableOnExec()
355 selection.event_attr.disabled = 1; in SetEnableOnExec()
357 selection.event_attr.enable_on_exec = 0; in SetEnableOnExec()
358 selection.event_attr.disabled = 0; in SetEnableOnExec()
367 if (selection.event_attr.enable_on_exec == 0) { in GetEnableOnExec()
378 selection.event_attr.sample_id_all = 1; in SampleIdAll()
387 selection.event_attr.freq = 1; in SetSampleSpeed()
388 selection.event_attr.sample_freq = speed.sample_freq; in SetSampleSpeed()
390 selection.event_attr.freq = 0; in SetSampleSpeed()
391 selection.event_attr.sample_period = speed.sample_period; in SetSampleSpeed()
411 perf_event_attr& attr = selection.event_attr; in SetBranchSampling()
426 selection.event_attr.sample_type |= PERF_SAMPLE_CALLCHAIN; in EnableFpCallChainSampling()
438 selection.event_attr.sample_type |= PERF_SAMPLE_CALLCHAIN | in EnableDwarfCallChainSampling()
441 selection.event_attr.exclude_callchain_user = 1; in EnableDwarfCallChainSampling()
442 selection.event_attr.sample_regs_user = in EnableDwarfCallChainSampling()
444 selection.event_attr.sample_stack_user = dump_stack_size; in EnableDwarfCallChainSampling()
453 selection.event_attr.inherit = (enable ? 1 : 0); in SetInherit()
461 selection.event_attr.use_clockid = 1; in SetClockId()
462 selection.event_attr.clockid = clock_id; in SetClockId()
480 groups_[0][0].event_attr.mmap_data = record ? 1 : 0; in SetRecordNotExecutableMaps()
484 return groups_[0][0].event_attr.mmap_data == 1; in RecordNotExecutableMaps()
493 if (group[0].event_attr.type == PERF_TYPE_TRACEPOINT) { in SetTracepointFilter()
561 selection.event_attr, tid, cpu, group_fd, selection.event_type_modifier.name, false); in OpenEventFilesOnGroup()
732 new simpleperf::RecordReadThread(record_buffer_size, groups_[0][0].event_attr, min_mmap_pages, in MmapEventFiles()