[PATCH] D85928: [libFuzzer] Added -print_full_coverage flag.

Matt Morehouse via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 23 15:53:16 PDT 2020


morehouse accepted this revision.
morehouse added inline comments.
This revision is now accepted and ready to land.


================
Comment at: compiler-rt/lib/fuzzer/FuzzerTracePC.cpp:304
+    if (PrintAllCounters) {
+      if (UncoveredPCs.size() > 0) {
+        Printf("U");
----------------
Dor1s wrote:
> mbarbella-chromium wrote:
> > Dor1s wrote:
> > > morehouse wrote:
> > > > Do we need to exclude the U and C when the vectors are empty?  It's slightly cleaner to exclude these if-statements.
> > > I think it depends on the consuming side. Marty, what do you think?
> > This should be easy enough to handle, though it may need a small update to the training script. I agree that it's cleaner to output them unconditionally, but I don't have strong feelings either way.
> I think leaving this is-is would be slightly better, as at least from the user perspective it'd be explicit that this code was executed and the counters were empty.
Leaving as-is actually leaves it a mystery whether this code was executed or not.  I was suggesting printing the U and C unconditionally (removing the if statements).


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D85928/new/

https://reviews.llvm.org/D85928



More information about the llvm-commits mailing list