Add support for CPU cycles measurement
diff --git a/common.h b/common.h
index 3e02e19..f2d601a 100644
--- a/common.h
+++ b/common.h
@@ -52,7 +52,8 @@
_HF_DYNFILE_NONE = 0x0,
_HF_DYNFILE_INSTR_COUNT = 0x1,
_HF_DYNFILE_BRANCH_COUNT = 0x2,
- _HF_DYNFILE_UNIQUE_PC_COUNT = 0x4,
+ _HF_DYNFILE_CYCLE_COUNT = 0x4,
+ _HF_DYNFILE_UNIQUE_PC_COUNT = 0x8,
} dynFileMethod_t;
typedef struct {
@@ -82,7 +83,7 @@
uint8_t *dynamicFileBest;
size_t dynamicFileBestSz;
dynFileMethod_t dynFileMethod;
- int64_t branchBestCnt[3];
+ int64_t branchBestCnt[4];
int dynamicRegressionCnt;
uint64_t dynamicCutOffAddr;
pthread_mutex_t dynamicFile_mutex;
@@ -101,7 +102,7 @@
/* For linux/ code */
uint8_t *dynamicFile;
- int64_t branchCnt[3];
+ int64_t branchCnt[4];
size_t dynamicFileSz;
} fuzzer_t;