diff options
| author | Simon Resch <simon.resch@code-intelligence.de> | 2025-03-18 17:32:29 +0100 |
|---|---|---|
| committer | Simon Resch <simon.resch@code-intelligence.de> | 2025-03-18 17:42:25 +0100 |
| commit | a44eb2dea812943be003b15832b85bc465cf58e8 (patch) | |
| tree | 11cdc64f1d1ca17548a18f8ef7caa2a922e10fca | |
| parent | defed1013fdacd7090617ecc1ced8bdcc3c617d6 (diff) | |
Include corpus queue size in stats filepr1-branch
Adds the size of the dynamic corpus to the stats file. This metric is
otherwise only output in the TTY output.
| -rw-r--r-- | fuzz.c | 5 | ||||
| -rw-r--r-- | honggfuzz.c | 2 |
2 files changed, 4 insertions, 3 deletions
@@ -260,7 +260,7 @@ static void fuzz_perfFeedback(run_t* run) { dprintf(run->global->io.statsFileFd, "%lu, %lu, %lu, %lu, " - "%" PRIu64 ", %" PRIu64 ", %" PRIu64 ", %" PRIu64 ", %" PRIu64 "\n", + "%" PRIu64 ", %" PRIu64 ", %" PRIu64 ", %" PRIu64 ", %" PRIu64 ", %" PRIu64 "\n", curr_sec, /* unix_time */ run->global->timing.lastCovUpdate, /* last_cov_update */ curr_exec_cnt, /* total_exec */ @@ -269,7 +269,8 @@ static void fuzz_perfFeedback(run_t* run) { run->global->cnts.uniqueCrashesCnt, /* unique_crashes */ run->global->cnts.timeoutedCnt, /* hangs */ run->global->feedback.hwCnts.softCntEdge, /* edge_cov */ - run->global->feedback.hwCnts.softCntPc /* block_cov */ + run->global->feedback.hwCnts.softCntPc, /* block_cov */ + run->global->io.dynfileqCnt /* corpus_count */ ); } diff --git a/honggfuzz.c b/honggfuzz.c index aa0174bb..003ea873 100644 --- a/honggfuzz.c +++ b/honggfuzz.c @@ -428,7 +428,7 @@ int main(int argc, char** argv) { PLOG_F("Couldn't open statsfile open('%s')", hfuzz.io.statsFileName); } else { dprintf(hfuzz.io.statsFileFd, "# unix_time, last_cov_update, total_exec, exec_per_sec, " - "crashes, unique_crashes, hangs, edge_cov, block_cov\n"); + "crashes, unique_crashes, hangs, edge_cov, block_cov, corpus_count\n"); } } |
