diff options
author | Paul E. McKenney <paulmck@kernel.org> | 2020-01-02 16:48:05 -0800 |
---|---|---|
committer | Paul E. McKenney <paulmck@kernel.org> | 2020-02-20 15:58:21 -0800 |
commit | 8a7e8f51714004112a0bbbf751f3dd0fcbbbc983 (patch) | |
tree | 0e69454b7ff44afc838b90eb58373730b2db7dd7 /kernel/rcu/Makefile | |
parent | 24bb9eccf7ff335c16c2970ac7cd5c32a92821a6 (diff) | |
download | lwn-8a7e8f51714004112a0bbbf751f3dd0fcbbbc983.tar.gz lwn-8a7e8f51714004112a0bbbf751f3dd0fcbbbc983.zip |
rcu: Provide debug symbols and line numbers in KCSAN runs
This commit adds "-g -fno-omit-frame-pointer" to ease interpretation
of KCSAN output, but only for CONFIG_KCSAN=y kerrnels.
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Diffstat (limited to 'kernel/rcu/Makefile')
-rw-r--r-- | kernel/rcu/Makefile | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/kernel/rcu/Makefile b/kernel/rcu/Makefile index 82d5fba48b2f..f91f2c2cf138 100644 --- a/kernel/rcu/Makefile +++ b/kernel/rcu/Makefile @@ -3,6 +3,10 @@ # and is generally not a function of system call inputs. KCOV_INSTRUMENT := n +ifeq ($(CONFIG_KCSAN),y) +KBUILD_CFLAGS += -g -fno-omit-frame-pointer +endif + obj-y += update.o sync.o obj-$(CONFIG_TREE_SRCU) += srcutree.o obj-$(CONFIG_TINY_SRCU) += srcutiny.o |