aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNguyễn Gia Phong <cnx@loang.net>2024-11-26 16:04:54 +0900
committerNguyễn Gia Phong <cnx@loang.net>2024-11-26 16:07:54 +0900
commite5c98d0d1d7b9bfac02234607c351c486955d3e4 (patch)
treef7471dde6a54d62c87f322f9d7bc34ef039938bb /include
parent943b8a3d7ab56a393fe2fe3060a584b35beba1eb (diff)
downloadafl++-e5c98d0d1d7b9bfac02234607c351c486955d3e4.tar.gz
Calculate mean proximity score
Co-authored-by: 김태은 <goodtaeeun@kaist.ac.kr>
Diffstat (limited to 'include')
-rw-r--r--include/afl-fuzz.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/afl-fuzz.h b/include/afl-fuzz.h
index 0f0e45d3..ab5d29bf 100644
--- a/include/afl-fuzz.h
+++ b/include/afl-fuzz.h
@@ -237,6 +237,7 @@ struct queue_entry {
handicap, /* Number of queue cycles behind */
depth, /* Path depth */
exec_cksum, /* Checksum of the execution trace */
+ prox_score, /* Proximity score of the test case */
custom, /* Marker for custom mutators */
stats_mutated; /* stats: # of mutations performed */
@@ -698,6 +699,8 @@ typedef struct afl_state {
u64 total_bitmap_size, /* Total bit count for all bitmaps */
total_bitmap_entries; /* Number of bitmaps counted */
+ u64 mean_prox_score; /* Mean of proximity scores */
+
s32 cpu_core_count, /* CPU core count */
cpu_to_bind; /* bind to specific CPU */