summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/fuzzer/FuzzerTracePC.h
diff options
context:
space:
mode:
Diffstat (limited to 'compiler-rt/lib/fuzzer/FuzzerTracePC.h')
-rw-r--r--compiler-rt/lib/fuzzer/FuzzerTracePC.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/compiler-rt/lib/fuzzer/FuzzerTracePC.h b/compiler-rt/lib/fuzzer/FuzzerTracePC.h
index d68da76b2e2..e1db5127cf4 100644
--- a/compiler-rt/lib/fuzzer/FuzzerTracePC.h
+++ b/compiler-rt/lib/fuzzer/FuzzerTracePC.h
@@ -131,6 +131,9 @@ class TracePC {
CB(PC);
}
+ void SetFocusFunction(const std::string &FuncName);
+ bool ObservedFocusFunction();
+
private:
bool UseCounters = false;
bool UseValueProfile = false;
@@ -163,6 +166,9 @@ private:
Set<uintptr_t> ObservedPCs;
Set<uintptr_t> ObservedFuncs;
+ std::pair<size_t, size_t> FocusFunction = {-1, -1}; // Module and PC IDs.
+
+
ValueBitMap ValueProfileMap;
uintptr_t InitialStack;
};
OpenPOWER on IntegriCloud