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