about summary refs log tree commit diff
path: root/src/afl-fuzz.c
diff options
context:
space:
mode:
authorvanhauser-thc <vh@thc.org>2021-03-27 12:50:57 +0100
committervanhauser-thc <vh@thc.org>2021-03-27 12:50:57 +0100
commit1edc3ece6172be28802f1856bee758ff5acfd91c (patch)
tree8237db5bfbc875a23e464f131162ab220ffab02b /src/afl-fuzz.c
parenteda1ee0807fdc17e52b44202e58da70ada92c4d2 (diff)
downloadafl++-1edc3ece6172be28802f1856bee758ff5acfd91c.tar.gz
add introspection
Diffstat (limited to 'src/afl-fuzz.c')
-rw-r--r--src/afl-fuzz.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/afl-fuzz.c b/src/afl-fuzz.c
index a7edb924..9bd7fca0 100644
--- a/src/afl-fuzz.c
+++ b/src/afl-fuzz.c
@@ -1980,6 +1980,13 @@ int main(int argc, char **argv_orig, char **envp) {
 
       }
 
+  #ifdef INTROSPECTION
+      fprintf(afl->introspection_file,
+              "CYCLE cycle=%llu cycle_wo_finds=%llu expand_havoc=%u queue=%u\n",
+              afl->queue_cycle, afl->cycles_wo_finds, afl->expand_havoc,
+              afl->queued_paths);
+  #endif
+
       if (afl->cycle_schedules) {
 
         /* we cannot mix non-AFLfast schedules with others */