summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/fuzzer/FuzzerOptions.h
diff options
context:
space:
mode:
authorMax Moroz <mmoroz@chromium.org>2018-08-02 22:30:03 +0000
committerMax Moroz <mmoroz@chromium.org>2018-08-02 22:30:03 +0000
commit5a9baa330caf473b9b1fd7c256258411932fba4c (patch)
tree806996e2639fb5054676dab7f2c3cf64799577f1 /compiler-rt/lib/fuzzer/FuzzerOptions.h
parent7d36e92c9c0f0d4de8bcf5e4dd55a717df956aed (diff)
downloadbcm5719-llvm-5a9baa330caf473b9b1fd7c256258411932fba4c.tar.gz
bcm5719-llvm-5a9baa330caf473b9b1fd7c256258411932fba4c.zip
[libFuzzer] Initial implementation of weighted mutation leveraging during runtime.
Summary: Added functions that calculate stats while fuzz targets are running and give mutations weight based on how much new coverage they provide, and choose better performing mutations more often. Patch by Kodé Williams (@kodewilliams). Reviewers: Dor1s, metzman, morehouse Reviewed By: Dor1s, morehouse Subscribers: delcypher, kcc, llvm-commits, #sanitizers Differential Revision: https://reviews.llvm.org/D49621 llvm-svn: 338776
Diffstat (limited to 'compiler-rt/lib/fuzzer/FuzzerOptions.h')
-rw-r--r--compiler-rt/lib/fuzzer/FuzzerOptions.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler-rt/lib/fuzzer/FuzzerOptions.h b/compiler-rt/lib/fuzzer/FuzzerOptions.h
index ce39c0876cd..82855ce0b6e 100644
--- a/compiler-rt/lib/fuzzer/FuzzerOptions.h
+++ b/compiler-rt/lib/fuzzer/FuzzerOptions.h
@@ -53,6 +53,7 @@ struct FuzzingOptions {
int PrintNewCovFuncs = 0;
bool PrintFinalStats = false;
bool PrintMutationStats = false;
+ bool UseWeightedMutations = false;
bool PrintCorpusStats = false;
bool PrintCoverage = false;
bool PrintUnstableStats = false;
OpenPOWER on IntegriCloud