[llvm] [HWASAN] Follow up for #83503 implement selective instrumentation (PR #83942)
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 6 09:59:29 PST 2024
================
@@ -188,9 +190,13 @@ static cl::opt<bool>
static cl::opt<int> HotPercentileCutoff("hwasan-percentile-cutoff-hot",
cl::init(0));
-STATISTIC(NumTotalFuncs, "Number of total funcs HWASAN");
-STATISTIC(NumInstrumentedFuncs, "Number of HWASAN instrumented funcs");
-STATISTIC(NumNoProfileSummaryFuncs, "Number of HWASAN funcs without PS");
+static cl::opt<float> SkipInstRandomRate(
+ "hwasan-skip-inst-random-rate", cl::init(0.0),
----------------
vitalybuka wrote:
For consistently, by comment for UBSAN:
+static cl::opt<float>
+ RandomRate("remove-traps-random-rate", cl::init(0.0),
+ cl::desc("Probability value in the range [0.0, 1.0] of "
+ "unconditional pseudo-random checks removal."));
https://github.com/llvm/llvm-project/pull/83942
More information about the llvm-commits
mailing list