[PATCH] D66020: [libFuzzer] Merge: print stats after reading the output corpus dir.
Max Moroz via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 9 11:03:26 PDT 2019
Dor1s created this revision.
Dor1s added reviewers: morehouse, hctim.
Herald added subscribers: llvm-commits, Sanitizers, delcypher.
Herald added projects: LLVM, Sanitizers.
The purpose is to be able to extract the number of new edges added to
the original (i.e. output) corpus directory after doing the merge. Use case
example: in ClusterFuzz, we do merge after every fuzzing session, to avoid
uploading too many corpus files, and we also record coverage stats at that
point. Having a separate line indicating stats after reading the initial output
corpus directory would make the stats extraction easier for both humans and
parsing scripts.
Context: https://github.com/google/clusterfuzz/issues/802.
Repository:
rCRT Compiler Runtime
https://reviews.llvm.org/D66020
Files:
lib/fuzzer/FuzzerMerge.cpp
Index: lib/fuzzer/FuzzerMerge.cpp
===================================================================
--- lib/fuzzer/FuzzerMerge.cpp
+++ lib/fuzzer/FuzzerMerge.cpp
@@ -239,6 +239,8 @@
// Show stats.
if (!(TotalNumberOfRuns & (TotalNumberOfRuns - 1)))
PrintStats("pulse ");
+ if (TotalNumberOfRuns == M.NumFilesInFirstCorpus)
+ PrintStats("INITED ");
// Write the post-run marker and the coverage.
OF << "FT " << i;
for (size_t F : UniqFeatures)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D66020.214406.patch
Type: text/x-patch
Size: 485 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190809/31bb3089/attachment.bin>
More information about the llvm-commits
mailing list