Skip to content

Commit 8a7e8f5

Browse files
committed
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 <[email protected]>
1 parent 24bb9ec commit 8a7e8f5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

kernel/rcu/Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
# and is generally not a function of system call inputs.
44
KCOV_INSTRUMENT := n
55

6+
ifeq ($(CONFIG_KCSAN),y)
7+
KBUILD_CFLAGS += -g -fno-omit-frame-pointer
8+
endif
9+
610
obj-y += update.o sync.o
711
obj-$(CONFIG_TREE_SRCU) += srcutree.o
812
obj-$(CONFIG_TINY_SRCU) += srcutiny.o

0 commit comments

Comments
 (0)