Kostya Serebryany | 556894f | 2016-09-21 02:05:39 +0000 | [diff] [blame] | 1 | //===- FuzzerOptions.h - Internal header for the Fuzzer ---------*- C++ -* ===// |
| 2 | // |
| 3 | // The LLVM Compiler Infrastructure |
| 4 | // |
| 5 | // This file is distributed under the University of Illinois Open Source |
| 6 | // License. See LICENSE.TXT for details. |
| 7 | // |
| 8 | //===----------------------------------------------------------------------===// |
| 9 | // fuzzer::FuzzingOptions |
| 10 | //===----------------------------------------------------------------------===// |
| 11 | |
| 12 | #ifndef LLVM_FUZZER_OPTIONS_H |
| 13 | #define LLVM_FUZZER_OPTIONS_H |
| 14 | |
| 15 | #include "FuzzerDefs.h" |
| 16 | |
| 17 | namespace fuzzer { |
| 18 | |
| 19 | struct FuzzingOptions { |
| 20 | int Verbosity = 1; |
| 21 | size_t MaxLen = 0; |
| 22 | int UnitTimeoutSec = 300; |
| 23 | int TimeoutExitCode = 77; |
| 24 | int ErrorExitCode = 77; |
| 25 | int MaxTotalTimeSec = 0; |
| 26 | int RssLimitMb = 0; |
| 27 | bool DoCrossOver = true; |
| 28 | int MutateDepth = 5; |
| 29 | bool UseCounters = false; |
| 30 | bool UseIndirCalls = true; |
| 31 | bool UseMemcmp = true; |
| 32 | bool UseMemmem = true; |
Kostya Serebryany | ab73c69 | 2016-09-23 00:46:18 +0000 | [diff] [blame] | 33 | bool UseValueProfile = false; |
Kostya Serebryany | d216922 | 2016-10-01 01:04:29 +0000 | [diff] [blame] | 34 | bool Shrink = false; |
Kostya Serebryany | 9adc7c8 | 2016-10-08 22:12:14 +0000 | [diff] [blame^] | 35 | int ReloadIntervalSec = 1; |
Kostya Serebryany | 556894f | 2016-09-21 02:05:39 +0000 | [diff] [blame] | 36 | bool ShuffleAtStartUp = true; |
| 37 | bool PreferSmall = true; |
| 38 | size_t MaxNumberOfRuns = -1L; |
| 39 | int ReportSlowUnits = 10; |
| 40 | bool OnlyASCII = false; |
| 41 | std::string OutputCorpus; |
| 42 | std::string ArtifactPrefix = "./"; |
| 43 | std::string ExactArtifactPath; |
Kostya Serebryany | 5ff481f | 2016-09-27 00:10:20 +0000 | [diff] [blame] | 44 | std::string ExitOnSrcPos; |
Kostya Serebryany | d216922 | 2016-10-01 01:04:29 +0000 | [diff] [blame] | 45 | std::string ExitOnItem; |
Kostya Serebryany | 556894f | 2016-09-21 02:05:39 +0000 | [diff] [blame] | 46 | bool SaveArtifacts = true; |
| 47 | bool PrintNEW = true; // Print a status line when new units are found; |
| 48 | bool OutputCSV = false; |
| 49 | bool PrintNewCovPcs = false; |
| 50 | bool PrintFinalStats = false; |
Kostya Serebryany | 29bb664 | 2016-09-21 22:42:17 +0000 | [diff] [blame] | 51 | bool PrintCorpusStats = false; |
Kostya Serebryany | 556894f | 2016-09-21 02:05:39 +0000 | [diff] [blame] | 52 | bool PrintCoverage = false; |
| 53 | bool DetectLeaks = true; |
Kostya Serebryany | 556894f | 2016-09-21 02:05:39 +0000 | [diff] [blame] | 54 | }; |
| 55 | |
| 56 | } // namespace fuzzer |
| 57 | |
| 58 | #endif // LLVM_FUZZER_OPTIONS_H |