Skip to content

Commit

Permalink
kcsan: Add test suite
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
melver authored and paulmckrcu committed Jun 29, 2020
1 parent c93773c commit 1fe84fd
Show file tree
Hide file tree
Showing 3 changed files with 1,109 additions and 1 deletion.
3 changes: 3 additions & 0 deletions kernel/kcsan/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Loading

0 comments on commit 1fe84fd

Please sign in to comment.