aboutsummaryrefslogtreecommitdiff
path: root/simpletrace.h
diff options
context:
space:
mode:
Diffstat (limited to 'simpletrace.h')
-rw-r--r--simpletrace.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/simpletrace.h b/simpletrace.h
index 7d0661b720..b0161d1ff4 100644
--- a/simpletrace.h
+++ b/simpletrace.h
@@ -12,9 +12,16 @@
#define SIMPLETRACE_H
#include <stdint.h>
+#include <stdbool.h>
+#include <stdio.h>
typedef uint64_t TraceEventID;
+typedef struct {
+ const char *tp_name;
+ bool state;
+} TraceEvent;
+
void trace0(TraceEventID event);
void trace1(TraceEventID event, uint64_t x1);
void trace2(TraceEventID event, uint64_t x1, uint64_t x2);
@@ -22,5 +29,8 @@ void trace3(TraceEventID event, uint64_t x1, uint64_t x2, uint64_t x3);
void trace4(TraceEventID event, uint64_t x1, uint64_t x2, uint64_t x3, uint64_t x4);
void trace5(TraceEventID event, uint64_t x1, uint64_t x2, uint64_t x3, uint64_t x4, uint64_t x5);
void trace6(TraceEventID event, uint64_t x1, uint64_t x2, uint64_t x3, uint64_t x4, uint64_t x5, uint64_t x6);
+void st_print_trace(FILE *stream, int (*stream_printf)(FILE *stream, const char *fmt, ...));
+void st_print_trace_events(FILE *stream, int (*stream_printf)(FILE *stream, const char *fmt, ...));
+void st_change_trace_event_state(const char *tname, bool tstate);
#endif /* SIMPLETRACE_H */