summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Fuzzer/FuzzerLoop.cpp
diff options
context:
space:
mode:
authorKostya Serebryany <kcc@google.com>2016-09-17 05:04:47 +0000
committerKostya Serebryany <kcc@google.com>2016-09-17 05:04:47 +0000
commit3e36ec1d18188810b19bb7d2153039ae2cc8c0db (patch)
treec6b6a188e57ec99534ee410782dbd6f878f0e747 /llvm/lib/Fuzzer/FuzzerLoop.cpp
parent8ad415574543c5ee4de98678fbe7452f60a086e3 (diff)
downloadbcm5719-llvm-3e36ec1d18188810b19bb7d2153039ae2cc8c0db.tar.gz
bcm5719-llvm-3e36ec1d18188810b19bb7d2153039ae2cc8c0db.zip
[libFuzzer] change trace-pc to use 8-byte guards
llvm-svn: 281810
Diffstat (limited to 'llvm/lib/Fuzzer/FuzzerLoop.cpp')
-rw-r--r--llvm/lib/Fuzzer/FuzzerLoop.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Fuzzer/FuzzerLoop.cpp b/llvm/lib/Fuzzer/FuzzerLoop.cpp
index 7cb1d4906a5..348e7573773 100644
--- a/llvm/lib/Fuzzer/FuzzerLoop.cpp
+++ b/llvm/lib/Fuzzer/FuzzerLoop.cpp
@@ -170,6 +170,8 @@ Fuzzer::Fuzzer(UserCallback CB, MutationDispatcher &MD, FuzzingOptions Options)
PcBuffer = new uintptr_t[PcBufferLen];
EF->__sanitizer_set_coverage_pc_buffer(PcBuffer, PcBufferLen);
}
+ if (Options.Verbosity)
+ TPC.PrintModuleInfo();
}
Fuzzer::~Fuzzer() { }
@@ -735,6 +737,7 @@ size_t Fuzzer::ChooseUnitIdxToMutate() {
void Fuzzer::ResetCoverage() {
ResetEdgeCoverage();
MaxCoverage.Reset();
+ TPC.Reset();
PrepareCounters(&MaxCoverage);
}
OpenPOWER on IntegriCloud