[llvm] [HWASAN] Follow up for #83503 implement selective instrumentation (PR #83942)

Dmitry Vyukov via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 6 09:20:16 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),
----------------
dvyukov wrote:

Do we want to bound it to [0, 1000]? Please also add the expected range of values to the descirption.

https://github.com/llvm/llvm-project/pull/83942


More information about the llvm-commits mailing list