about summary refs log tree commit diff
path: root/include/trace.h
blob: f7253ac72c6fda2fd1f591fa93ef430c005acc03 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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