diff options
| author | George Karpenkov <ekarpenkov@apple.com> | 2017-08-21 23:25:50 +0000 |
|---|---|---|
| committer | George Karpenkov <ekarpenkov@apple.com> | 2017-08-21 23:25:50 +0000 |
| commit | 10ab2ace1359fd96cd662ad235797e29f9ba3daa (patch) | |
| tree | c5d47c489b54be9c936b8c27a6c89baad3294d61 /compiler-rt/lib/fuzzer/FuzzerOptions.h | |
| parent | 9f6f74c2c5ef8bb1e9fa9b0f2c7c3e31d69e62ac (diff) | |
| download | bcm5719-llvm-10ab2ace1359fd96cd662ad235797e29f9ba3daa.tar.gz bcm5719-llvm-10ab2ace1359fd96cd662ad235797e29f9ba3daa.zip | |
Move libFuzzer to compiler_rt.
Resulting library binaries will be named libclang_rt.fuzzer*, and will
be placed in Clang toolchain, allowing redistribution.
Differential Revision: https://reviews.llvm.org/D36908
llvm-svn: 311407
Diffstat (limited to 'compiler-rt/lib/fuzzer/FuzzerOptions.h')
| -rw-r--r-- | compiler-rt/lib/fuzzer/FuzzerOptions.h | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/compiler-rt/lib/fuzzer/FuzzerOptions.h b/compiler-rt/lib/fuzzer/FuzzerOptions.h new file mode 100644 index 00000000000..9500235e2b1 --- /dev/null +++ b/compiler-rt/lib/fuzzer/FuzzerOptions.h @@ -0,0 +1,68 @@ +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// fuzzer::FuzzingOptions +//===----------------------------------------------------------------------===// + +#ifndef LLVM_FUZZER_OPTIONS_H +#define LLVM_FUZZER_OPTIONS_H + +#include "FuzzerDefs.h" + +namespace fuzzer { + +struct FuzzingOptions { + int Verbosity = 1; + size_t MaxLen = 0; + bool ExperimentalLenControl = false; + int UnitTimeoutSec = 300; + int TimeoutExitCode = 77; + int ErrorExitCode = 77; + int MaxTotalTimeSec = 0; + int RssLimitMb = 0; + bool DoCrossOver = true; + int MutateDepth = 5; + bool UseCounters = false; + bool UseIndirCalls = true; + bool UseMemmem = true; + bool UseCmp = false; + bool UseValueProfile = false; + bool Shrink = false; + bool ReduceInputs = false; + int ReloadIntervalSec = 1; + bool ShuffleAtStartUp = true; + bool PreferSmall = true; + size_t MaxNumberOfRuns = -1L; + int ReportSlowUnits = 10; + bool OnlyASCII = false; + std::string OutputCorpus; + std::string ArtifactPrefix = "./"; + std::string ExactArtifactPath; + std::string ExitOnSrcPos; + std::string ExitOnItem; + bool SaveArtifacts = true; + bool PrintNEW = true; // Print a status line when new units are found; + bool PrintNewCovPcs = false; + bool PrintFinalStats = false; + bool PrintCorpusStats = false; + bool PrintCoverage = false; + bool DumpCoverage = false; + bool DetectLeaks = true; + int TraceMalloc = 0; + bool HandleAbrt = false; + bool HandleBus = false; + bool HandleFpe = false; + bool HandleIll = false; + bool HandleInt = false; + bool HandleSegv = false; + bool HandleTerm = false; + bool HandleXfsz = false; +}; + +} // namespace fuzzer + +#endif // LLVM_FUZZER_OPTIONS_H |

