Lines Matching refs:btsr

67 	struct intel_bts_recording *btsr =
69 struct perf_pmu *intel_bts_pmu = btsr->intel_bts_pmu;
100 auxtrace_info->priv[INTEL_BTS_SNAPSHOT_MODE] = btsr->snapshot_mode;
109 struct intel_bts_recording *btsr =
111 struct perf_pmu *intel_bts_pmu = btsr->intel_bts_pmu;
121 btsr->evlist = evlist;
122 btsr->snapshot_mode = opts->auxtrace_snapshot_mode;
254 struct intel_bts_recording *btsr =
268 btsr->snapshot_size = snapshot_size;
278 static int intel_bts_alloc_snapshot_refs(struct intel_bts_recording *btsr,
282 int cnt = btsr->snapshot_ref_cnt, new_cnt = cnt * 2;
295 memcpy(refs, btsr->snapshot_refs, cnt * sz);
297 btsr->snapshot_refs = refs;
298 btsr->snapshot_ref_cnt = new_cnt;
303 static void intel_bts_free_snapshot_refs(struct intel_bts_recording *btsr)
307 for (i = 0; i < btsr->snapshot_ref_cnt; i++)
308 zfree(&btsr->snapshot_refs[i].ref_buf);
309 zfree(&btsr->snapshot_refs);
314 struct intel_bts_recording *btsr =
317 intel_bts_free_snapshot_refs(btsr);
318 free(btsr);
323 struct intel_bts_recording *btsr =
327 evlist__for_each_entry(btsr->evlist, evsel) {
328 if (evsel->core.attr.type == btsr->intel_bts_pmu->type)
336 struct intel_bts_recording *btsr =
340 evlist__for_each_entry(btsr->evlist, evsel) {
341 if (evsel->core.attr.type == btsr->intel_bts_pmu->type)
368 struct intel_bts_recording *btsr =
376 if (idx >= btsr->snapshot_ref_cnt) {
377 err = intel_bts_alloc_snapshot_refs(btsr, idx);
382 wrapped = btsr->snapshot_refs[idx].wrapped;
384 btsr->snapshot_refs[idx].wrapped = true;
419 struct intel_bts_recording *btsr;
429 btsr = zalloc(sizeof(struct intel_bts_recording));
430 if (!btsr) {
435 btsr->intel_bts_pmu = intel_bts_pmu;
436 btsr->itr.pmu = intel_bts_pmu;
437 btsr->itr.recording_options = intel_bts_recording_options;
438 btsr->itr.info_priv_size = intel_bts_info_priv_size;
439 btsr->itr.info_fill = intel_bts_info_fill;
440 btsr->itr.free = intel_bts_recording_free;
441 btsr->itr.snapshot_start = intel_bts_snapshot_start;
442 btsr->itr.snapshot_finish = intel_bts_snapshot_finish;
443 btsr->itr.find_snapshot = intel_bts_find_snapshot;
444 btsr->itr.parse_snapshot_options = intel_bts_parse_snapshot_options;
445 btsr->itr.reference = intel_bts_reference;
446 btsr->itr.read_finish = auxtrace_record__read_finish;
447 btsr->itr.alignment = sizeof(struct branch);
448 return &btsr->itr;