]> granicus.if.org Git - llvm/commitdiff
[libFuzzer] better documentation for -fsanitize-coverage=trace-cmp
authorKostya Serebryany <kcc@google.com>
Thu, 17 Nov 2016 17:31:54 +0000 (17:31 +0000)
committerKostya Serebryany <kcc@google.com>
Thu, 17 Nov 2016 17:31:54 +0000 (17:31 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@287240 91177308-0d34-0410-b5e6-96231b3b80d8

docs/LibFuzzer.rst

index a46c23ac28127f2683321fcaebd4a00f09204a17..a8530f95285914f8d522e250349fac19e04c2af9 100644 (file)
@@ -451,12 +451,22 @@ The dictionary syntax is similar to that used by AFL_ for its ``-x`` option::
   # the name of the keyword followed by '=' may be omitted:
   "foo\x0Abar"
 
-Value Profile
----------------
 
-*EXPERIMENTAL*.
+
+Tracing CMP instructions
+------------------------
+
 With an additional compiler flag ``-fsanitize-coverage=trace-cmp``
 (see SanitizerCoverageTraceDataFlow_)
+libFuzzer will intercept CMP instructions and guide mutations based
+on the arguments of intercepted CMP instructions. This may slow down
+the fuzzing but is very likely to improve the results.
+
+Value Profile
+-------------
+
+*EXPERIMENTAL*.
+With  ``-fsanitize-coverage=trace-cmp``
 and extra run-time flag ``-use_value_profile=1`` the fuzzer will
 collect value profiles for the parameters of compare instructions
 and treat some new values as new coverage.