[libFuzzer] Mutation tracking and logging implemented.
authorMax Moroz <mmoroz@chromium.org>
Tue, 17 Jul 2018 20:37:40 +0000 (20:37 +0000)
committerMax Moroz <mmoroz@chromium.org>
Tue, 17 Jul 2018 20:37:40 +0000 (20:37 +0000)
commit061b4af998fc4a211566505555403806c373886a
tree5da0adedac3b4f0a9f6f721f0b11366bc77db882
parentd3a308789eaa0f878bc3a254917ae89efdbd3096
[libFuzzer] Mutation tracking and logging implemented.

Summary:
Code now exists to track number of mutations that are used in fuzzing in total
and ones that produce new coverage. The stats are currently being dumped to the
command line.

Patch by Kodé Williams (@kodewilliams).

Reviewers: metzman, Dor1s, morehouse, kcc

Reviewed By: Dor1s, morehouse, kcc

Subscribers: delcypher, kubamracek, kcc, morehouse, llvm-commits, #sanitizers, mgorny

Differential Revision: https://reviews.llvm.org/D48054

llvm-svn: 337324
compiler-rt/lib/fuzzer/FuzzerDriver.cpp
compiler-rt/lib/fuzzer/FuzzerFlags.def
compiler-rt/lib/fuzzer/FuzzerLoop.cpp
compiler-rt/lib/fuzzer/FuzzerMutate.cpp
compiler-rt/lib/fuzzer/FuzzerMutate.h
compiler-rt/lib/fuzzer/FuzzerOptions.h
compiler-rt/test/fuzzer/fuzzer-mutationstats.test [new file with mode: 0644]