aboutsummaryrefslogtreecommitdiff
path: root/include/cmplog.h
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2021-01-15 16:56:40 +0100
committervan Hauser <vh@thc.org>2021-01-15 16:56:40 +0100
commita0e884cf8bffe1a0394d106375f6a23edd2b60e6 (patch)
treeff1b4a01977ef9c133ec8dd8cbdd1b9db5a0367f /include/cmplog.h
parentfba8790e322ab933df9851f0cf6ce9ca941f3814 (diff)
downloadAFLplusplus-a0e884cf8bffe1a0394d106375f6a23edd2b60e6.tar.gz
merge cmplog
Diffstat (limited to 'include/cmplog.h')
-rw-r--r--include/cmplog.h17
1 files changed, 10 insertions, 7 deletions
diff --git a/include/cmplog.h b/include/cmplog.h
index bf557785..6392c503 100644
--- a/include/cmplog.h
+++ b/include/cmplog.h
@@ -30,8 +30,10 @@
#include "config.h"
+#define CMPLOG_LVL_MAX 3
+
#define CMP_MAP_W 65536
-#define CMP_MAP_H 256
+#define CMP_MAP_H 32
#define CMP_MAP_RTN_H (CMP_MAP_H / 4)
#define SHAPE_BYTES(x) (x + 1)
@@ -41,13 +43,12 @@
struct cmp_header {
- unsigned hits : 20;
-
- unsigned cnt : 20;
- unsigned id : 16;
-
- unsigned shape : 5; // from 0 to 31
+ unsigned hits : 24;
+ unsigned id : 24;
+ unsigned shape : 5;
unsigned type : 1;
+ unsigned attribute : 4;
+ unsigned reserved : 6;
} __attribute__((packed));
@@ -55,6 +56,8 @@ struct cmp_operands {
u64 v0;
u64 v1;
+ u64 v0_128;
+ u64 v1_128;
};