kcsan: Expose core configuration parameters as module params
authorMarco Elver <elver@google.com>
Fri, 7 Feb 2020 18:59:10 +0000 (19:59 +0100)
committerIngo Molnar <mingo@kernel.org>
Sat, 21 Mar 2020 08:43:35 +0000 (09:43 +0100)
commit80d4c4775216602ccdc9e761ce251c8451d0c6ca
treed3dac351e3d2dfb461f26bb96c304e8895c5ebbf
parenta312013578e4775003689e31c1f487df11f362a3
kcsan: Expose core configuration parameters as module params

This adds early_boot, udelay_{task,interrupt}, and skip_watch as module
params. The latter parameters are useful to modify at runtime to tune
KCSAN's performance on new systems. This will also permit auto-tuning
these parameters to maximize overall system performance and KCSAN's race
detection ability.

None of the parameters are used in the fast-path and referring to them
via static variables instead of CONFIG constants will not affect
performance.

Signed-off-by: Marco Elver <elver@google.com>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Cc: Qian Cai <cai@lca.pw>
kernel/kcsan/core.c