From 70c68ad58bdc2727782b78eaf06347c77120219e Mon Sep 17 00:00:00 2001 From: Kostya Serebryany Date: Fri, 25 Aug 2017 20:09:25 +0000 Subject: [libFuzzer] add -print_funcs=1 (on bey default): print newly discovered functions during fuzzing git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@311797 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/fuzzer/FuzzerTracePC.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/fuzzer/FuzzerTracePC.h') diff --git a/lib/fuzzer/FuzzerTracePC.h b/lib/fuzzer/FuzzerTracePC.h index 0c9d4b69b..76aa0748f 100644 --- a/lib/fuzzer/FuzzerTracePC.h +++ b/lib/fuzzer/FuzzerTracePC.h @@ -82,6 +82,7 @@ class TracePC { void SetUseCounters(bool UC) { UseCounters = UC; } void SetUseValueProfile(bool VP) { UseValueProfile = VP; } void SetPrintNewPCs(bool P) { DoPrintNewPCs = P; } + void SetPrintNewFuncs(bool P) { DoPrintNewFuncs = P; } void UpdateObservedPCs(); template void CollectFeatures(Callback CB) const; @@ -133,6 +134,7 @@ private: bool UseCounters = false; bool UseValueProfile = false; bool DoPrintNewPCs = false; + bool DoPrintNewFuncs = false; struct Module { uint32_t *Start, *Stop; @@ -158,6 +160,7 @@ private: uintptr_t *PCs() const; std::set ObservedPCs; + std::set ObservedFuncs; ValueBitMap ValueProfileMap; uintptr_t InitialStack; -- cgit v1.2.3