FuzzerFork.h 788 B

123456789101112131415161718192021222324
  1. //===- FuzzerFork.h - run fuzzing in sub-processes --------------*- C++ -* ===//
  2. //
  3. // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
  4. // See https://llvm.org/LICENSE.txt for license information.
  5. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  6. //
  7. //===----------------------------------------------------------------------===//
  8. #ifndef LLVM_FUZZER_FORK_H
  9. #define LLVM_FUZZER_FORK_H
  10. #include "FuzzerDefs.h"
  11. #include "FuzzerOptions.h"
  12. #include "FuzzerRandom.h"
  13. #include <string>
  14. namespace fuzzer {
  15. void FuzzWithFork(Random &Rand, const FuzzingOptions &Options,
  16. const std::vector<std::string> &Args,
  17. const std::vector<std::string> &CorpusDirs, int NumJobs);
  18. } // namespace fuzzer
  19. #endif // LLVM_FUZZER_FORK_H