xref: /linux/kernel/kcsan/.kunitconfig (revision 4f2c0a4acffbec01079c28f839422e64ddeff004)
1*426752b2SDavid Gow# Note that the KCSAN tests need to run on an SMP setup.
2*426752b2SDavid Gow# Under kunit_tool, this can be done by using the --qemu_args
3*426752b2SDavid Gow# option to configure a machine with several cores. For example:
4*426752b2SDavid Gow# ./tools/testing/kunit/kunit.py run --kunitconfig=kernel/kcsan \
5*426752b2SDavid Gow# 				 --arch=x86_64 --qemu_args="-smp 8"
6*426752b2SDavid Gow
7*426752b2SDavid GowCONFIG_KUNIT=y
8*426752b2SDavid Gow
9*426752b2SDavid GowCONFIG_DEBUG_KERNEL=y
10*426752b2SDavid Gow
11*426752b2SDavid Gow# Need some level of concurrency to test a concurrency sanitizer.
12*426752b2SDavid GowCONFIG_SMP=y
13*426752b2SDavid Gow
14*426752b2SDavid GowCONFIG_KCSAN=y
15*426752b2SDavid GowCONFIG_KCSAN_KUNIT_TEST=y
16*426752b2SDavid Gow
17*426752b2SDavid Gow# Set these if you want to run test_barrier_nothreads
18*426752b2SDavid Gow#CONFIG_KCSAN_STRICT=y
19*426752b2SDavid Gow#CONFIG_KCSAN_WEAK_MEMORY=y
20*426752b2SDavid Gow
21*426752b2SDavid Gow# This prevents the test from timing out on many setups. Feel free to remove
22*426752b2SDavid Gow# (or alter) this, in conjunction with setting a different test timeout with,
23*426752b2SDavid Gow# for example, the --timeout kunit_tool option.
24*426752b2SDavid GowCONFIG_KCSAN_REPORT_ONCE_IN_MS=100
25