[llvm] r268656 - [libFuzzer] better docs for coverage

Kostya Serebryany via llvm-commits llvm-commits at lists.llvm.org
Thu May 5 11:07:09 PDT 2016


Author: kcc
Date: Thu May  5 13:07:09 2016
New Revision: 268656

URL: http://llvm.org/viewvc/llvm-project?rev=268656&view=rev
Log:
[libFuzzer] better docs for coverage

Modified:
    llvm/trunk/docs/LibFuzzer.rst

Modified: llvm/trunk/docs/LibFuzzer.rst
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/docs/LibFuzzer.rst?rev=268656&r1=268655&r2=268656&view=diff
==============================================================================
--- llvm/trunk/docs/LibFuzzer.rst (original)
+++ llvm/trunk/docs/LibFuzzer.rst Thu May  5 13:07:09 2016
@@ -598,12 +598,15 @@ You can get the coverage for your corpus
 
 .. code-block:: console
 
-  ASAN_OPTIONS=coverage=1 ./fuzzer CORPUS_DIR -runs=0
+  ASAN_OPTIONS=coverage=1:html_cov_report=1 ./fuzzer CORPUS_DIR -runs=0
 
-This will run all the tests in the CORPUS_DIR but will not generate any new tests
-and dump covered PCs to disk before exiting.
-Then you can subtract the set of covered PCs from the set of all instrumented PCs in the binary,
-see SanitizerCoverage_ for details.
+This will run all tests in the CORPUS_DIR but will not perform any fuzzing.
+At the end of the process it will dump a single html file with coverage information.
+See SanitizerCoverage_ for details.
+
+You may also use other ways to visualize coverage,
+e.g. `llvm-cov <http://llvm.org/docs/CommandGuide/llvm-cov.html>`_, but those will require
+you to rebuild the code with different compiler flags. 
 
 User-supplied mutators
 ----------------------




More information about the llvm-commits mailing list