summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Fuzzer/FuzzerInternal.h
diff options
context:
space:
mode:
authorKostya Serebryany <kcc@google.com>2015-08-12 01:55:37 +0000
committerKostya Serebryany <kcc@google.com>2015-08-12 01:55:37 +0000
commit12c7837381a478ab7836f8176ccff37c8d182a1b (patch)
treeb591a2cd64be30698cc328d89d62e74fe7d155f7 /llvm/lib/Fuzzer/FuzzerInternal.h
parent91009b3856cd242707e05f838eff29436979a73a (diff)
downloadbcm5719-llvm-12c7837381a478ab7836f8176ccff37c8d182a1b.tar.gz
bcm5719-llvm-12c7837381a478ab7836f8176ccff37c8d182a1b.zip
[libFuzzer] add two flags, -tbm_depth and -tbm_width to control how the trace-based-mutations are applied
llvm-svn: 244712
Diffstat (limited to 'llvm/lib/Fuzzer/FuzzerInternal.h')
-rw-r--r--llvm/lib/Fuzzer/FuzzerInternal.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Fuzzer/FuzzerInternal.h b/llvm/lib/Fuzzer/FuzzerInternal.h
index 6f7525e7875..d9dc5283689 100644
--- a/llvm/lib/Fuzzer/FuzzerInternal.h
+++ b/llvm/lib/Fuzzer/FuzzerInternal.h
@@ -74,6 +74,8 @@ class Fuzzer {
int SyncTimeout = 600;
int ReportSlowUnits = 10;
bool OnlyASCII = false;
+ int TBMDepth = 10;
+ int TBMWidth = 10;
std::string OutputCorpus;
std::string SyncCommand;
std::vector<std::string> Tokens;
@@ -136,6 +138,7 @@ class Fuzzer {
Unit CurrentUnit;
size_t TotalNumberOfRuns = 0;
+ size_t TotalNumberOfExecutedTraceBasedMutations = 0;
std::vector<Unit> Corpus;
std::unordered_set<std::string> UnitHashesAddedToCorpus;
OpenPOWER on IntegriCloud