summaryrefslogtreecommitdiffstats
path: root/tools/verification/rv/include/trace.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/verification/rv/include/trace.h')
-rw-r--r--tools/verification/rv/include/trace.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/tools/verification/rv/include/trace.h b/tools/verification/rv/include/trace.h
new file mode 100644
index 0000000000..8d89e8c303
--- /dev/null
+++ b/tools/verification/rv/include/trace.h
@@ -0,0 +1,16 @@
+// SPDX-License-Identifier: GPL-2.0
+
+#include <tracefs.h>
+
+struct trace_instance {
+ struct tracefs_instance *inst;
+ struct tep_handle *tep;
+ struct trace_seq *seq;
+};
+
+int trace_instance_init(struct trace_instance *trace, char *name);
+int trace_instance_start(struct trace_instance *trace);
+void trace_instance_destroy(struct trace_instance *trace);
+
+int collect_registered_events(struct tep_event *event, struct tep_record *record,
+ int cpu, void *context);