From d04bdf2e841fa6706c16bbba1cb6f6c73d647767 Mon Sep 17 00:00:00 2001 From: Huanyao Rong Date: Fri, 21 Jun 2024 21:03:37 -0700 Subject: Implement AFLRun References: https://github.com/Mem2019/AFLRun/commit/f5bb87f78ef1 References: https://github.com/Mem2019/AFLRun/commit/3af5f11b5644 --- include/trace.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 include/trace.h (limited to 'include/trace.h') 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 +using namespace std; +#else +#include +#endif + +typedef struct _trace_t { +#ifdef AFLRUN_OVERHEAD + atomic_ullong overhead; +#endif // AFLRUN_OVERHEAD + atomic_size_t num; + ctx_t trace[]; +} trace_t; + +#endif -- cgit 1.4.1