kcsan: Disable branch tracing in core runtime
authorMarco Elver <elver@google.com>
Thu, 18 Jun 2020 09:31:18 +0000 (11:31 +0200)
committerPaul E. McKenney <paulmck@kernel.org>
Mon, 29 Jun 2020 19:04:48 +0000 (12:04 -0700)
commit61d56d7aa5eca3b909bce51ba8125b0fa44d7e17
treed3bf5b8c4209bbe7212524bf01418ea0b0c3d215
parent2839a232071f588d334543fb86f5689b43353842
kcsan: Disable branch tracing in core runtime

Disable branch tracing in core KCSAN runtime if branches are being
traced (TRACE_BRANCH_PROFILING). This it to avoid its performance
impact, but also avoid recursion in case KCSAN is enabled for the branch
tracing runtime.

The latter had already been a problem for KASAN:
https://lore.kernel.org/lkml/CANpmjNOeXmD5E3O50Z3MjkiuCYaYOPyi+1rq=GZvEKwBvLR0Ug@mail.gmail.com/

Signed-off-by: Marco Elver <elver@google.com>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
kernel/kcsan/Makefile