Lines Matching refs:event_data
47 struct etm_event_data *event_data; member
195 static void free_sink_buffer(struct etm_event_data *event_data) in free_sink_buffer() argument
198 cpumask_t *mask = &event_data->mask; in free_sink_buffer()
201 if (!event_data->snk_config) in free_sink_buffer()
208 sink = coresight_get_sink(etm_event_cpu_path(event_data, cpu)); in free_sink_buffer()
209 sink_ops(sink)->free_buffer(event_data->snk_config); in free_sink_buffer()
216 struct etm_event_data *event_data; in free_event_data() local
218 event_data = container_of(work, struct etm_event_data, work); in free_event_data()
219 mask = &event_data->mask; in free_event_data()
222 free_sink_buffer(event_data); in free_event_data()
225 if (event_data->cfg_hash) in free_event_data()
226 cscfg_deactivate_config(event_data->cfg_hash); in free_event_data()
231 ppath = etm_event_cpu_path_ptr(event_data, cpu); in free_event_data()
250 free_percpu(event_data->path); in free_event_data()
251 kfree(event_data); in free_event_data()
257 struct etm_event_data *event_data; in alloc_event_data() local
260 event_data = kzalloc(sizeof(struct etm_event_data), GFP_KERNEL); in alloc_event_data()
261 if (!event_data) in alloc_event_data()
265 mask = &event_data->mask; in alloc_event_data()
279 event_data->path = alloc_percpu(struct list_head *); in alloc_event_data()
281 if (!event_data->path) { in alloc_event_data()
282 kfree(event_data); in alloc_event_data()
286 return event_data; in alloc_event_data()
291 struct etm_event_data *event_data = data; in etm_free_aux() local
293 schedule_work(&event_data->work); in etm_free_aux()
324 struct etm_event_data *event_data = NULL; in etm_setup_aux() local
326 event_data = alloc_event_data(cpu); in etm_setup_aux()
327 if (!event_data) in etm_setup_aux()
329 INIT_WORK(&event_data->work, free_event_data); in etm_setup_aux()
342 event_data->cfg_hash = cfg_hash; in etm_setup_aux()
345 mask = &event_data->mask; in etm_setup_aux()
418 *etm_event_cpu_path_ptr(event_data, cpu) = path; in etm_setup_aux()
439 event_data->snk_config = in etm_setup_aux()
442 if (!event_data->snk_config) in etm_setup_aux()
446 return event_data; in etm_setup_aux()
449 etm_free_aux(event_data); in etm_setup_aux()
450 event_data = NULL; in etm_setup_aux()
457 struct etm_event_data *event_data; in etm_event_start() local
469 if (WARN_ON(ctxt->event_data)) in etm_event_start()
476 event_data = perf_aux_output_begin(handle, event); in etm_event_start()
477 if (!event_data) in etm_event_start()
492 if (!cpumask_test_cpu(cpu, &event_data->mask)) in etm_event_start()
495 path = etm_event_cpu_path(event_data, cpu); in etm_event_start()
514 if (!cpumask_test_cpu(cpu, &event_data->aux_hwid_done)) { in etm_event_start()
515 cpumask_set_cpu(cpu, &event_data->aux_hwid_done); in etm_event_start()
533 ctxt->event_data = event_data; in etm_event_start()
560 struct etm_event_data *event_data; in etm_event_stop() local
568 WARN_ON(perf_get_aux(handle) != ctxt->event_data)) in etm_event_stop()
571 event_data = ctxt->event_data; in etm_event_stop()
573 ctxt->event_data = NULL; in etm_event_stop()
579 if (WARN_ON(!event_data)) in etm_event_stop()
589 !cpumask_test_cpu(cpu, &event_data->mask)) { in etm_event_stop()
598 path = etm_event_cpu_path(event_data, cpu); in etm_event_stop()
627 event_data->snk_config); in etm_event_stop()