diff options
author | vanhauser-thc <vh@thc.org> | 2021-10-17 13:05:33 +0200 |
---|---|---|
committer | vanhauser-thc <vh@thc.org> | 2021-10-17 13:05:33 +0200 |
commit | ed10f3783bd8fab33ab5750f56bf87ed008f28ed (patch) | |
tree | 089ce2615c348812175533e9e07a5bb0ba092551 /src/afl-fuzz.c | |
parent | 34f1074ba308e850feb08c51aad781f7d307a260 (diff) | |
download | afl++-ed10f3783bd8fab33ab5750f56bf87ed008f28ed.tar.gz |
new rtn cmplog: instrumentation side + supporting functions
Diffstat (limited to 'src/afl-fuzz.c')
-rw-r--r-- | src/afl-fuzz.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/afl-fuzz.c b/src/afl-fuzz.c index 92a37697..6ec033b2 100644 --- a/src/afl-fuzz.c +++ b/src/afl-fuzz.c @@ -2261,6 +2261,20 @@ stop_fuzzing: } + if (afl->not_on_tty) { + + u32 t_bytes = count_non_255_bytes(afl, afl->virgin_bits); + u8 time_tmp[64]; + u_stringify_time_diff(time_tmp, get_cur_time(), afl->start_time); + ACTF( + "Statistics: %u new paths found, %.02f%% coverage achieved, %llu " + "crashes found, %llu timeouts found, total runtime %s", + afl->queued_discovered, + ((double)t_bytes * 100) / afl->fsrv.real_map_size, afl->unique_crashes, + afl->unique_hangs, time_tmp); + + } + #ifdef PROFILING SAYF(cYEL "[!] " cRST "Profiling information: %llu ms total work, %llu ns/run\n", |