[compiler-rt] r325817 - [libFuzzer] Include TEMP_MAX_LEN in Fuzzer::PrintStats.
Matt Morehouse via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 22 11:00:17 PST 2018
Author: morehouse
Date: Thu Feb 22 11:00:17 2018
New Revision: 325817
URL: http://llvm.org/viewvc/llvm-project?rev=325817&view=rev
Log:
[libFuzzer] Include TEMP_MAX_LEN in Fuzzer::PrintStats.
Reviewers: kcc
Reviewed By: kcc
Subscribers: llvm-commits
Differential Revision: https://reviews.llvm.org/D43597
Modified:
compiler-rt/trunk/lib/fuzzer/FuzzerLoop.cpp
Modified: compiler-rt/trunk/lib/fuzzer/FuzzerLoop.cpp
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/fuzzer/FuzzerLoop.cpp?rev=325817&r1=325816&r2=325817&view=diff
==============================================================================
--- compiler-rt/trunk/lib/fuzzer/FuzzerLoop.cpp (original)
+++ compiler-rt/trunk/lib/fuzzer/FuzzerLoop.cpp Thu Feb 22 11:00:17 2018
@@ -329,6 +329,8 @@ void Fuzzer::PrintStats(const char *Wher
Printf("/%zdMb", N >> 20);
}
}
+ if (TmpMaxMutationLen)
+ Printf(" lim: %zd", TmpMaxMutationLen);
if (Units)
Printf(" units: %zd", Units);
@@ -761,10 +763,6 @@ void Fuzzer::Loop(const Vector<std::stri
Options.LenControl * Log(TmpMaxMutationLen)) {
TmpMaxMutationLen =
Min(MaxMutationLen, TmpMaxMutationLen + Log(TmpMaxMutationLen));
- if (TmpMaxMutationLen <= MaxMutationLen)
- Printf("#%zd\tTEMP_MAX_LEN: %zd (%zd %zd)\n", TotalNumberOfRuns,
- TmpMaxMutationLen, Options.LenControl,
- LastCorpusUpdateRun);
LastCorpusUpdateRun = TotalNumberOfRuns;
}
} else {
More information about the llvm-commits
mailing list