diff options
author | Andrea Fioraldi <andreafioraldi@gmail.com> | 2020-01-30 22:49:31 +0100 |
---|---|---|
committer | Andrea Fioraldi <andreafioraldi@gmail.com> | 2020-01-30 22:49:31 +0100 |
commit | f07fc52cd061fadde21a57fd757e316d6254f588 (patch) | |
tree | 46d6008c6d17f48f600096222bc271045946a3b4 /src/afl-fuzz-stats.c | |
parent | c8581050ff372aa76ed22c636e62913f3225389f (diff) | |
download | afl++-f07fc52cd061fadde21a57fd757e316d6254f588.tar.gz |
stats screen for cmplog only
Diffstat (limited to 'src/afl-fuzz-stats.c')
-rw-r--r-- | src/afl-fuzz-stats.c | 31 |
1 files changed, 22 insertions, 9 deletions
diff --git a/src/afl-fuzz-stats.c b/src/afl-fuzz-stats.c index 0605fca2..14ffd41a 100644 --- a/src/afl-fuzz-stats.c +++ b/src/afl-fuzz-stats.c @@ -596,15 +596,28 @@ void show_stats(void) { : cRST), tmp); - sprintf(tmp, "%s/%s, %s/%s, %s/%s, %s/%s", DI(stage_finds[STAGE_PYTHON]), - DI(stage_cycles[STAGE_PYTHON]), DI(stage_finds[STAGE_CUSTOM_MUTATOR]), - DI(stage_cycles[STAGE_CUSTOM_MUTATOR]), - DI(stage_finds[STAGE_COLORIZATION]), - DI(stage_cycles[STAGE_COLORIZATION]), DI(stage_finds[STAGE_ITS]), - DI(stage_cycles[STAGE_ITS])); - - SAYF(bV bSTOP " custom/rq : " cRST "%-36s " bSTG bVR bH20 bH2 bH bRB "\n", - tmp); + if (cmplog_mode) { + + sprintf(tmp, "%s/%s, %s/%s, %s/%s, %s/%s", DI(stage_finds[STAGE_PYTHON]), + DI(stage_cycles[STAGE_PYTHON]), DI(stage_finds[STAGE_CUSTOM_MUTATOR]), + DI(stage_cycles[STAGE_CUSTOM_MUTATOR]), + DI(stage_finds[STAGE_COLORIZATION]), + DI(stage_cycles[STAGE_COLORIZATION]), DI(stage_finds[STAGE_ITS]), + DI(stage_cycles[STAGE_ITS])); + + SAYF(bV bSTOP " custom/rq : " cRST "%-36s " bSTG bVR bH20 bH2 bH bRB "\n", + tmp); + + } else { + + sprintf(tmp, "%s/%s, %s/%s", DI(stage_finds[STAGE_PYTHON]), + DI(stage_cycles[STAGE_PYTHON]), DI(stage_finds[STAGE_CUSTOM_MUTATOR]), + DI(stage_cycles[STAGE_CUSTOM_MUTATOR])); + + SAYF(bV bSTOP " py/custom : " cRST "%-36s " bSTG bVR bH20 bH2 bH bRB "\n", + tmp); + + } if (!bytes_trim_out) { |