[libFuzzer] Mutation tracking and logging implemented.
authorMax Moroz <mmoroz@chromium.org>
Mon, 16 Jul 2018 17:50:46 +0000 (17:50 +0000)
committerMax Moroz <mmoroz@chromium.org>
Mon, 16 Jul 2018 17:50:46 +0000 (17:50 +0000)
commit8a5083df53127a463ff07388c804cc1b108bb278
tree6f8c35eb50c31cabce30f65b457fcb70a0f9f7cb
parent0876a889f78f0d0db0e7921e32be078b4961212f
[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: 337194
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]