diff options
author | 2020-05-05 20:28:21 +0200 | |
---|---|---|
committer | 2020-06-29 12:04:48 -0700 | |
commit | 1fe84fd4a4027a17d511a832f89ab14107650ba4 (patch) | |
tree | 14decdabdefe090b83f9ea76e9bfddaac75030a8 /kernel/kcsan/Makefile | |
parent | rculist: Add ASSERT_EXCLUSIVE_ACCESS() to __list_splice_init_rcu() (diff) | |
download | linux-1fe84fd4a4027a17d511a832f89ab14107650ba4.tar.gz linux-1fe84fd4a4027a17d511a832f89ab14107650ba4.tar.bz2 linux-1fe84fd4a4027a17d511a832f89ab14107650ba4.zip |
kcsan: Add test suite
This adds KCSAN test focusing on behaviour of the integrated runtime.
Tests various race scenarios, and verifies the reports generated to
console. Makes use of KUnit for test organization, and the Torture
framework for test thread control.
Signed-off-by: Marco Elver <elver@google.com>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Diffstat (limited to 'kernel/kcsan/Makefile')
-rw-r--r-- | kernel/kcsan/Makefile | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/kernel/kcsan/Makefile b/kernel/kcsan/Makefile index d4999b38d1be..14533cf24bc3 100644 --- a/kernel/kcsan/Makefile +++ b/kernel/kcsan/Makefile @@ -12,3 +12,6 @@ CFLAGS_core.o := $(call cc-option,-fno-conserve-stack,) \ obj-y := core.o debugfs.o report.o obj-$(CONFIG_KCSAN_SELFTEST) += test.o + +CFLAGS_kcsan-test.o := $(CFLAGS_KCSAN) -g -fno-omit-frame-pointer +obj-$(CONFIG_KCSAN_TEST) += kcsan-test.o |