[PATCH] D43597: [libFuzzer] Include TEMP_MAX_LEN in Fuzzer::PrintStats.
Matt Morehouse via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 22 11:04:08 PST 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rL325817: [libFuzzer] Include TEMP_MAX_LEN in Fuzzer::PrintStats. (authored by morehouse, committed by ).
Herald added a subscriber: delcypher.
Changed prior to commit:
https://reviews.llvm.org/D43597?vs=135467&id=135475#toc
Repository:
rL LLVM
https://reviews.llvm.org/D43597
Files:
compiler-rt/trunk/lib/fuzzer/FuzzerLoop.cpp
llvm/trunk/docs/LibFuzzer.rst
Index: llvm/trunk/docs/LibFuzzer.rst
===================================================================
--- llvm/trunk/docs/LibFuzzer.rst
+++ llvm/trunk/docs/LibFuzzer.rst
@@ -369,14 +369,16 @@
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:``
Index: compiler-rt/trunk/lib/fuzzer/FuzzerLoop.cpp
===================================================================
--- compiler-rt/trunk/lib/fuzzer/FuzzerLoop.cpp
+++ compiler-rt/trunk/lib/fuzzer/FuzzerLoop.cpp
@@ -329,6 +329,8 @@
Printf("/%zdMb", N >> 20);
}
}
+ if (TmpMaxMutationLen)
+ Printf(" lim: %zd", TmpMaxMutationLen);
if (Units)
Printf(" units: %zd", Units);
@@ -761,10 +763,6 @@
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 {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D43597.135475.patch
Type: text/x-patch
Size: 1858 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180222/22674d1f/attachment.bin>
More information about the llvm-commits
mailing list