Skip to content

Commit 1fe84fd

Browse files
melverpaulmckrcu
authored andcommitted
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 <[email protected]> Signed-off-by: Paul E. McKenney <[email protected]>
1 parent c93773c commit 1fe84fd

File tree

3 files changed

+1109
-1
lines changed

3 files changed

+1109
-1
lines changed

kernel/kcsan/Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,6 @@ CFLAGS_core.o := $(call cc-option,-fno-conserve-stack,) \
1212

1313
obj-y := core.o debugfs.o report.o
1414
obj-$(CONFIG_KCSAN_SELFTEST) += test.o
15+
16+
CFLAGS_kcsan-test.o := $(CFLAGS_KCSAN) -g -fno-omit-frame-pointer
17+
obj-$(CONFIG_KCSAN_TEST) += kcsan-test.o

0 commit comments

Comments
 (0)