diff options
author | vanhauser-thc <vh@thc.org> | 2023-03-27 17:51:53 +0200 |
---|---|---|
committer | vanhauser-thc <vh@thc.org> | 2023-03-27 17:52:01 +0200 |
commit | b1bfc1ae76bacbf48b81c81480a9f32e0c8919f6 (patch) | |
tree | 7cdcf7af55f384b7f2580c3894de270619171024 /src/afl-fuzz-stats.c | |
parent | 0faa323f121f16faba9b8fe20552a421b09d5ec3 (diff) | |
download | afl++-b1bfc1ae76bacbf48b81c81480a9f32e0c8919f6.tar.gz |
time_wo_finds in fuzzer_stats
Diffstat (limited to 'src/afl-fuzz-stats.c')
-rw-r--r-- | src/afl-fuzz-stats.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/afl-fuzz-stats.c b/src/afl-fuzz-stats.c index f53fd610..25ebe987 100644 --- a/src/afl-fuzz-stats.c +++ b/src/afl-fuzz-stats.c @@ -251,6 +251,7 @@ void write_stats_file(afl_state_t *afl, u32 t_bytes, double bitmap_cvg, "fuzzer_pid : %u\n" "cycles_done : %llu\n" "cycles_wo_finds : %llu\n" + "time_wo_finds : %llu\n" "execs_done : %llu\n" "execs_per_sec : %0.02f\n" "execs_ps_last_min : %0.02f\n" @@ -291,6 +292,11 @@ void write_stats_file(afl_state_t *afl, u32 t_bytes, double bitmap_cvg, (afl->start_time - afl->prev_run_time) / 1000, cur_time / 1000, (afl->prev_run_time + cur_time - afl->start_time) / 1000, (u32)getpid(), afl->queue_cycle ? (afl->queue_cycle - 1) : 0, afl->cycles_wo_finds, + afl->longest_find_time > cur_time - afl->last_find_time + ? afl->longest_find_time / 1000 + : ((afl->start_time == 0 || afl->last_find_time == 0) + ? 0 + : (cur_time - afl->last_find_time) / 1000), afl->fsrv.total_execs, afl->fsrv.total_execs / ((double)(afl->prev_run_time + get_cur_time() - afl->start_time) / |