diff options
-rw-r--r-- | compiler-rt/lib/fuzzer/FuzzerLoop.cpp | 6 | ||||
-rw-r--r-- | llvm/docs/LibFuzzer.rst | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/compiler-rt/lib/fuzzer/FuzzerLoop.cpp b/compiler-rt/lib/fuzzer/FuzzerLoop.cpp index 7a3ce341f16..cd835bea56e 100644 --- a/compiler-rt/lib/fuzzer/FuzzerLoop.cpp +++ b/compiler-rt/lib/fuzzer/FuzzerLoop.cpp @@ -329,6 +329,8 @@ void Fuzzer::PrintStats(const char *Where, const char *End, size_t Units) { 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::string> &CorpusDirs) { 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 { diff --git a/llvm/docs/LibFuzzer.rst b/llvm/docs/LibFuzzer.rst index 7a105e5ed12..b546dec4be7 100644 --- a/llvm/docs/LibFuzzer.rst +++ b/llvm/docs/LibFuzzer.rst @@ -369,14 +369,16 @@ possible event codes are: Each output line also reports the following statistics (when non-zero): ``cov:`` - Total number of code blocks or edges covered by the executing the current - corpus. + Total number of code blocks or edges covered by executing the current corpus. ``ft:`` libFuzzer uses different signals to evaluate the code coverage: edge coverage, edge counters, value profiles, indirect caller/callee pairs, etc. These signals combined are called *features* (`ft:`). ``corp:`` Number of entries in the current in-memory test corpus and its size in bytes. +``lim:`` + Current limit on the length of new entries in the corpus. Increases over time + until the max length (``-max_len``) is reached. ``exec/s:`` Number of fuzzer iterations per second. ``rss:`` |