• Home
  • Raw
  • Download

Lines Matching refs:event_data

121 	struct etm_event_data *event_data;  in free_event_data()  local
124 event_data = container_of(work, struct etm_event_data, work); in free_event_data()
125 mask = &event_data->mask; in free_event_data()
130 if (event_data->snk_config) { in free_event_data()
132 sink = coresight_get_sink(event_data->path[cpu]); in free_event_data()
134 sink_ops(sink)->free_buffer(event_data->snk_config); in free_event_data()
138 if (!(IS_ERR_OR_NULL(event_data->path[cpu]))) in free_event_data()
139 coresight_release_path(event_data->path[cpu]); in free_event_data()
142 kfree(event_data->path); in free_event_data()
143 kfree(event_data); in free_event_data()
150 struct etm_event_data *event_data; in alloc_event_data() local
153 event_data = kzalloc(sizeof(struct etm_event_data), GFP_KERNEL); in alloc_event_data()
154 if (!event_data) in alloc_event_data()
161 mask = &event_data->mask; in alloc_event_data()
176 event_data->path = kcalloc(size, in alloc_event_data()
178 if (!event_data->path) { in alloc_event_data()
179 kfree(event_data); in alloc_event_data()
183 return event_data; in alloc_event_data()
188 struct etm_event_data *event_data = data; in etm_free_aux() local
190 schedule_work(&event_data->work); in etm_free_aux()
199 struct etm_event_data *event_data = NULL; in etm_setup_aux() local
201 event_data = alloc_event_data(event_cpu); in etm_setup_aux()
202 if (!event_data) in etm_setup_aux()
204 INIT_WORK(&event_data->work, free_event_data); in etm_setup_aux()
221 mask = &event_data->mask; in etm_setup_aux()
236 event_data->path[cpu] = coresight_build_path(csdev, sink); in etm_setup_aux()
237 if (IS_ERR(event_data->path[cpu])) in etm_setup_aux()
246 event_data->snk_config = in etm_setup_aux()
249 if (!event_data->snk_config) in etm_setup_aux()
253 return event_data; in etm_setup_aux()
256 etm_free_aux(event_data); in etm_setup_aux()
257 event_data = NULL; in etm_setup_aux()
264 struct etm_event_data *event_data; in etm_event_start() local
275 event_data = perf_aux_output_begin(handle, event); in etm_event_start()
276 if (!event_data) in etm_event_start()
280 sink = coresight_get_sink(event_data->path[cpu]); in etm_event_start()
286 event_data->snk_config)) in etm_event_start()
290 if (coresight_enable_path(event_data->path[cpu], CS_MODE_PERF)) in etm_event_start()
317 struct etm_event_data *event_data = perf_get_aux(handle); in etm_event_stop() local
325 sink = coresight_get_sink(event_data->path[cpu]); in etm_event_stop()
344 event_data->snk_config); in etm_event_stop()
350 event_data->snk_config, in etm_event_stop()
357 coresight_disable_path(event_data->path[cpu]); in etm_event_stop()