[compiler-rt] r333048 - [libFuzzer] modify -print_corpus_stats to print whether the input reaches the focus function
Kostya Serebryany via llvm-commits
llvm-commits at lists.llvm.org
Tue May 22 18:42:54 PDT 2018
Author: kcc
Date: Tue May 22 18:42:53 2018
New Revision: 333048
URL: http://llvm.org/viewvc/llvm-project?rev=333048&view=rev
Log:
[libFuzzer] modify -print_corpus_stats to print whether the input reaches the focus function
Modified:
compiler-rt/trunk/lib/fuzzer/FuzzerCorpus.h
Modified: compiler-rt/trunk/lib/fuzzer/FuzzerCorpus.h
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/fuzzer/FuzzerCorpus.h?rev=333048&r1=333047&r2=333048&view=diff
==============================================================================
--- compiler-rt/trunk/lib/fuzzer/FuzzerCorpus.h (original)
+++ compiler-rt/trunk/lib/fuzzer/FuzzerCorpus.h Tue May 22 18:42:53 2018
@@ -166,9 +166,9 @@ class InputCorpus {
void PrintStats() {
for (size_t i = 0; i < Inputs.size(); i++) {
const auto &II = *Inputs[i];
- Printf(" [%zd %s]\tsz: %zd\truns: %zd\tsucc: %zd\n", i,
+ Printf(" [% 3zd %s] sz: % 5zd runs: % 5zd succ: % 5zd focus: %d\n", i,
Sha1ToString(II.Sha1).c_str(), II.U.size(),
- II.NumExecutedMutations, II.NumSuccessfullMutations);
+ II.NumExecutedMutations, II.NumSuccessfullMutations, II.HasFocusFunction);
}
}
More information about the llvm-commits
mailing list