Lines Matching full:flags
1 //===- FuzzerDriver.cpp - FuzzerDriver function and flags -----------------===//
46 } Flags; variable
50 {#Name, Description, Default, &Flags.Name, nullptr, nullptr},
53 nullptr, nullptr, &Flags.Name},
55 {#Name, Description, 0, nullptr, &Flags.Name, nullptr},
102 Printf("WARNING: libFuzzer ignores flags that start with '--'\n"); in ParseOneFlag()
113 if (Flags.verbosity >= 2) in ParseOneFlag()
119 if (Flags.verbosity >= 2) in ParseOneFlag()
124 if (Flags.verbosity >= 2) in ParseOneFlag()
169 if (Flags.verbosity) in WorkerThread()
232 if (Flags.help) { in FuzzerDriver()
237 if (Flags.jobs > 0 && Flags.workers == 0) { in FuzzerDriver()
238 Flags.workers = std::min(NumberOfCpuCores() / 2, Flags.jobs); in FuzzerDriver()
239 if (Flags.workers > 1) in FuzzerDriver()
240 Printf("Running %d workers\n", Flags.workers); in FuzzerDriver()
243 if (Flags.workers > 0 && Flags.jobs > 0) in FuzzerDriver()
244 return RunInMultipleProcesses(Args, Flags.workers, Flags.jobs); in FuzzerDriver()
247 Options.Verbosity = Flags.verbosity; in FuzzerDriver()
248 Options.MaxLen = Flags.max_len; in FuzzerDriver()
249 Options.UnitTimeoutSec = Flags.timeout; in FuzzerDriver()
250 Options.MaxTotalTimeSec = Flags.max_total_time; in FuzzerDriver()
251 Options.DoCrossOver = Flags.cross_over; in FuzzerDriver()
252 Options.MutateDepth = Flags.mutate_depth; in FuzzerDriver()
253 Options.ExitOnFirst = Flags.exit_on_first; in FuzzerDriver()
254 Options.UseCounters = Flags.use_counters; in FuzzerDriver()
255 Options.UseIndirCalls = Flags.use_indir_calls; in FuzzerDriver()
256 Options.UseTraces = Flags.use_traces; in FuzzerDriver()
257 Options.ShuffleAtStartUp = Flags.shuffle; in FuzzerDriver()
259 Flags.prefer_small_during_initial_shuffle; in FuzzerDriver()
260 Options.Reload = Flags.reload; in FuzzerDriver()
261 Options.OnlyASCII = Flags.only_ascii; in FuzzerDriver()
262 Options.TBMDepth = Flags.tbm_depth; in FuzzerDriver()
263 Options.TBMWidth = Flags.tbm_width; in FuzzerDriver()
264 Options.OutputCSV = Flags.output_csv; in FuzzerDriver()
265 if (Flags.runs >= 0) in FuzzerDriver()
266 Options.MaxNumberOfRuns = Flags.runs; in FuzzerDriver()
269 if (Flags.sync_command) in FuzzerDriver()
270 Options.SyncCommand = Flags.sync_command; in FuzzerDriver()
271 Options.SyncTimeout = Flags.sync_timeout; in FuzzerDriver()
272 Options.ReportSlowUnits = Flags.report_slow_units; in FuzzerDriver()
273 if (Flags.artifact_prefix) in FuzzerDriver()
274 Options.ArtifactPrefix = Flags.artifact_prefix; in FuzzerDriver()
275 if (Flags.exact_artifact_path) in FuzzerDriver()
276 Options.ExactArtifactPath = Flags.exact_artifact_path; in FuzzerDriver()
278 if (Flags.dict) in FuzzerDriver()
279 if (!ParseDictionaryFile(FileToString(Flags.dict), &Dictionary)) in FuzzerDriver()
281 if (Flags.verbosity > 0 && !Dictionary.empty()) in FuzzerDriver()
283 Options.SaveArtifacts = !Flags.test_single_input; in FuzzerDriver()
291 if (Flags.timeout > 0) in FuzzerDriver()
292 SetTimer(Flags.timeout / 2 + 1); in FuzzerDriver()
294 if (Flags.test_single_input) { in FuzzerDriver()
295 RunOneTest(&F, Flags.test_single_input); in FuzzerDriver()
299 if (Flags.save_minimized_corpus) { in FuzzerDriver()
304 if (Flags.merge) { in FuzzerDriver()
309 unsigned Seed = Flags.seed; in FuzzerDriver()
313 if (Flags.verbosity) in FuzzerDriver()
325 if (Flags.drill) in FuzzerDriver()
330 if (Flags.verbosity) in FuzzerDriver()