Lines Matching refs:attr
133 if (evsel->core.attr.type == arm_spe_pmu->type) {
138 evsel->core.attr.freq = 0;
139 evsel->core.attr.sample_period = arm_spe_pmu->default_config->sample_period;
234 if (arm_spe_evsel->core.attr.config & bit)
245 tracking_evsel->core.attr.freq = 0;
246 tracking_evsel->core.attr.sample_period = 1;
255 tracking_evsel->core.attr.context_switch = 1;
287 if (evsel->core.attr.type == ptr->arm_spe_pmu->type)
300 if (evsel->core.attr.type == ptr->arm_spe_pmu->type)
501 struct perf_event_attr *attr;
503 attr = zalloc(sizeof(struct perf_event_attr));
504 if (!attr) {
514 &attr->sample_period) != 1) {
516 attr->sample_period = 4096;
522 return attr;