mirror of
https://github.com/lkl/linux.git
synced 2025-12-19 16:13:19 +09:00
Kernel Concurrency Sanitizer (KCSAN) is a dynamic data-race detector for kernel space. KCSAN is a sampling watchpoint-based data-race detector. See the included Documentation/dev-tools/kcsan.rst for more details. This patch adds basic infrastructure, but does not yet enable KCSAN for any architecture. Signed-off-by: Marco Elver <elver@google.com> Acked-by: Paul E. McKenney <paulmck@kernel.org> Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
12 lines
294 B
Makefile
12 lines
294 B
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
KCSAN_SANITIZE := n
|
|
KCOV_INSTRUMENT := n
|
|
|
|
CFLAGS_REMOVE_core.o = $(CC_FLAGS_FTRACE)
|
|
|
|
CFLAGS_core.o := $(call cc-option,-fno-conserve-stack,) \
|
|
$(call cc-option,-fno-stack-protector,)
|
|
|
|
obj-y := core.o debugfs.o report.o
|
|
obj-$(CONFIG_KCSAN_SELFTEST) += test.o
|