about summary refs log tree commit diff
path: root/include/trace.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/trace.h')
-rw-r--r--include/trace.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/include/trace.h b/include/trace.h
new file mode 100644
index 00000000..f7253ac7
--- /dev/null
+++ b/include/trace.h
@@ -0,0 +1,19 @@
+#ifndef _HAVE_TRACE_H
+#define _HAVE_TRACE_H
+
+#ifdef __cplusplus
+#include <atomic>
+using namespace std;
+#else
+#include <stdatomic.h>
+#endif
+
+typedef struct _trace_t {
+#ifdef AFLRUN_OVERHEAD
+  atomic_ullong overhead;
+#endif // AFLRUN_OVERHEAD
+  atomic_size_t num;
+  ctx_t trace[];
+} trace_t;
+
+#endif