Lines Matching refs:attr
798 if ((evsel->core.attr.sample_type & PERF_SAMPLE_TIME))
1061 return evsel->core.attr.type == spe->pmu_type;
1094 struct perf_event_attr *attr, u64 id)
1101 return perf_event__synthesize_attr(&arm_spe_synth.dummy_tool, attr, 1,
1125 struct perf_event_attr attr;
1131 if (evsel->core.attr.type == spe->pmu_type) {
1142 memset(&attr, 0, sizeof(struct perf_event_attr));
1143 attr.size = sizeof(struct perf_event_attr);
1144 attr.type = PERF_TYPE_HARDWARE;
1145 attr.sample_type = evsel->core.attr.sample_type &
1147 attr.sample_type |= PERF_SAMPLE_IP | PERF_SAMPLE_TID |
1151 attr.sample_type &= ~(u64)PERF_SAMPLE_TIME;
1153 attr.sample_type |= PERF_SAMPLE_TIME;
1155 spe->sample_type = attr.sample_type;
1157 attr.exclude_user = evsel->core.attr.exclude_user;
1158 attr.exclude_kernel = evsel->core.attr.exclude_kernel;
1159 attr.exclude_hv = evsel->core.attr.exclude_hv;
1160 attr.exclude_host = evsel->core.attr.exclude_host;
1161 attr.exclude_guest = evsel->core.attr.exclude_guest;
1162 attr.sample_id_all = evsel->core.attr.sample_id_all;
1163 attr.read_format = evsel->core.attr.read_format;
1175 err = arm_spe_synth_event(session, &attr, id);
1183 err = arm_spe_synth_event(session, &attr, id);
1195 err = arm_spe_synth_event(session, &attr, id);
1203 err = arm_spe_synth_event(session, &attr, id);
1215 err = arm_spe_synth_event(session, &attr, id);
1223 err = arm_spe_synth_event(session, &attr, id);
1235 err = arm_spe_synth_event(session, &attr, id);
1247 err = arm_spe_synth_event(session, &attr, id);
1258 err = arm_spe_synth_event(session, &attr, id);
1276 attr.config = PERF_COUNT_HW_INSTRUCTIONS;
1277 attr.sample_period = spe->synth_opts.period;
1278 spe->instructions_sample_period = attr.sample_period;
1279 err = arm_spe_synth_event(session, &attr, id);