1*4bc4b131SDaniel Bristot de Oliveira // SPDX-License-Identifier: GPL-2.0
2*4bc4b131SDaniel Bristot de Oliveira 
3*4bc4b131SDaniel Bristot de Oliveira #include <tracefs.h>
4*4bc4b131SDaniel Bristot de Oliveira 
5*4bc4b131SDaniel Bristot de Oliveira struct trace_instance {
6*4bc4b131SDaniel Bristot de Oliveira 	struct tracefs_instance		*inst;
7*4bc4b131SDaniel Bristot de Oliveira 	struct tep_handle		*tep;
8*4bc4b131SDaniel Bristot de Oliveira 	struct trace_seq		*seq;
9*4bc4b131SDaniel Bristot de Oliveira };
10*4bc4b131SDaniel Bristot de Oliveira 
11*4bc4b131SDaniel Bristot de Oliveira int trace_instance_init(struct trace_instance *trace, char *name);
12*4bc4b131SDaniel Bristot de Oliveira int trace_instance_start(struct trace_instance *trace);
13*4bc4b131SDaniel Bristot de Oliveira void trace_instance_destroy(struct trace_instance *trace);
14*4bc4b131SDaniel Bristot de Oliveira 
15*4bc4b131SDaniel Bristot de Oliveira int collect_registered_events(struct tep_event *event, struct tep_record *record,
16*4bc4b131SDaniel Bristot de Oliveira 			      int cpu, void *context);
17