Lines Matching refs:attr

45   perf_event_attr attr = CreateDefaultPerfEventAttr(*type);  in IsBranchSamplingSupported()  local
46 attr.sample_type |= PERF_SAMPLE_BRANCH_STACK; in IsBranchSamplingSupported()
47 attr.branch_sample_type = PERF_SAMPLE_BRANCH_ANY; in IsBranchSamplingSupported()
48 return IsEventAttrSupported(attr, type->name); in IsBranchSamplingSupported()
56 perf_event_attr attr = CreateDefaultPerfEventAttr(*type); in IsDwarfCallChainSamplingSupported() local
57 attr.sample_type |= in IsDwarfCallChainSamplingSupported()
59 attr.exclude_callchain_user = 1; in IsDwarfCallChainSamplingSupported()
60 attr.sample_regs_user = GetSupportedRegMask(GetBuildArch()); in IsDwarfCallChainSamplingSupported()
61 attr.sample_stack_user = 8192; in IsDwarfCallChainSamplingSupported()
62 return IsEventAttrSupported(attr, type->name); in IsDwarfCallChainSamplingSupported()
82 perf_event_attr attr = CreateDefaultPerfEventAttr(*event_type); in IsDumpingRegsForTracepointEventsSupported() local
83 attr.freq = 0; in IsDumpingRegsForTracepointEventsSupported()
84 attr.sample_period = 1; in IsDumpingRegsForTracepointEventsSupported()
86 EventFd::OpenEventFile(attr, thread_id, -1, nullptr, event_type->name); in IsDumpingRegsForTracepointEventsSupported()
97 ReadRecordsFromBuffer(attr, buffer.data(), buffer.size()); in IsDumpingRegsForTracepointEventsSupported()
119 perf_event_attr attr = CreateDefaultPerfEventAttr(*type); in IsSettingClockIdSupported() local
120 attr.use_clockid = 1; in IsSettingClockIdSupported()
121 attr.clockid = CLOCK_MONOTONIC; in IsSettingClockIdSupported()
122 is_supported = IsEventAttrSupported(attr, type->name) ? 1 : 0; in IsSettingClockIdSupported()
133 perf_event_attr attr = CreateDefaultPerfEventAttr(*type); in IsMmap2Supported() local
134 attr.mmap2 = 1; in IsMmap2Supported()
135 return IsEventAttrSupported(attr, type->name); in IsMmap2Supported()
319 attr_id.attr = &selection.event_attr; in GetEventAttrWithId()
411 perf_event_attr& attr = selection.event_attr; in SetBranchSampling() local
413 attr.sample_type |= PERF_SAMPLE_BRANCH_STACK; in SetBranchSampling()
415 attr.sample_type &= ~PERF_SAMPLE_BRANCH_STACK; in SetBranchSampling()
417 attr.branch_sample_type = branch_sample_type; in SetBranchSampling()