Lines Matching defs:ptr

65 	struct cs_etm_recording *ptr;
71 ptr = container_of(itr, struct cs_etm_recording, itr);
72 cs_etm_pmu = ptr->cs_etm_pmu;
114 struct cs_etm_recording *ptr;
120 ptr = container_of(itr, struct cs_etm_recording, itr);
121 cs_etm_pmu = ptr->cs_etm_pmu;
197 struct cs_etm_recording *ptr =
210 ptr->snapshot_size = snapshot_size;
257 struct cs_etm_recording *ptr =
259 struct perf_pmu *cs_etm_pmu = ptr->cs_etm_pmu;
265 ptr->evlist = evlist;
266 ptr->snapshot_mode = opts->auxtrace_snapshot_mode;
440 struct cs_etm_recording *ptr =
442 struct perf_pmu *cs_etm_pmu = ptr->cs_etm_pmu;
443 struct evlist *evlist = ptr->evlist;
539 struct cs_etm_recording *ptr =
541 struct perf_pmu *cs_etm_pmu = ptr->cs_etm_pmu;
577 struct cs_etm_recording *ptr =
579 struct perf_pmu *cs_etm_pmu = ptr->cs_etm_pmu;
647 struct cs_etm_recording *ptr =
649 struct perf_pmu *cs_etm_pmu = ptr->cs_etm_pmu;
680 info->priv[CS_ETM_SNAPSHOT] = ptr->snapshot_mode;
693 static int cs_etm_alloc_wrapped_array(struct cs_etm_recording *ptr, int idx)
696 int cnt = ptr->wrapped_cnt;
698 /* Make @ptr->wrapped as big as @idx */
707 wrapped = realloc(ptr->wrapped, cnt * sizeof(bool));
712 ptr->wrapped_cnt = cnt;
713 ptr->wrapped = wrapped;
776 struct cs_etm_recording *ptr =
783 if (idx >= ptr->wrapped_cnt) {
784 err = cs_etm_alloc_wrapped_array(ptr, idx);
795 wrapped = ptr->wrapped[idx];
798 ptr->wrapped[idx] = true;
824 struct cs_etm_recording *ptr =
828 evlist__for_each_entry(ptr->evlist, evsel) {
829 if (evsel->core.attr.type == ptr->cs_etm_pmu->type)
837 struct cs_etm_recording *ptr =
841 evlist__for_each_entry(ptr->evlist, evsel) {
842 if (evsel->core.attr.type == ptr->cs_etm_pmu->type)
856 struct cs_etm_recording *ptr =
859 zfree(&ptr->wrapped);
860 free(ptr);
866 struct cs_etm_recording *ptr;
875 ptr = zalloc(sizeof(struct cs_etm_recording));
876 if (!ptr) {
881 ptr->cs_etm_pmu = cs_etm_pmu;
882 ptr->itr.pmu = cs_etm_pmu;
883 ptr->itr.parse_snapshot_options = cs_etm_parse_snapshot_options;
884 ptr->itr.recording_options = cs_etm_recording_options;
885 ptr->itr.info_priv_size = cs_etm_info_priv_size;
886 ptr->itr.info_fill = cs_etm_info_fill;
887 ptr->itr.find_snapshot = cs_etm_find_snapshot;
888 ptr->itr.snapshot_start = cs_etm_snapshot_start;
889 ptr->itr.snapshot_finish = cs_etm_snapshot_finish;
890 ptr->itr.reference = cs_etm_reference;
891 ptr->itr.free = cs_etm_recording_free;
892 ptr->itr.read_finish = auxtrace_record__read_finish;
895 return &ptr->itr;