]> git.baikalelectronics.ru Git - kernel.git/commit
torture: Add --kcsan argument to top-level kvm.sh script
authorPaul E. McKenney <paulmck@kernel.org>
Wed, 8 Apr 2020 00:31:35 +0000 (17:31 -0700)
committerPaul E. McKenney <paulmck@kernel.org>
Thu, 7 May 2020 17:15:28 +0000 (10:15 -0700)
commit901acfc70503cc4474b32ff7afe7eca777711fb8
treec625e4888023a9176bb8b9b8bc92f072aeb99164
parentbe38296af513d049688d27bd6040ed5efccb058a
torture: Add --kcsan argument to top-level kvm.sh script

Although the existing --kconfig argument can be used to run KCSAN for
an rcutorture test, it is not as straightforward as one might like:

--kconfig "CONFIG_DEBUG_INFO=y CONFIG_KCSAN=y \
   CONFIG_KCSAN_ASSUME_PLAIN_WRITES_ATOMIC=n \
   CONFIG_KCSAN_REPORT_VALUE_CHANGE_ONLY=n \
   CONFIG_KCSAN_REPORT_ONCE_IN_MS=100000 \
   CONFIG_KCSAN_VERBOSE=y CONFIG_KCSAN_INTERRUPT_WATCHER=y"

This commit therefore adds a "--kcsan" argument that emulates the above
--kconfig command.  Note that if you specify a Kconfig option using
-kconfig that conflicts with one that --kcsan adds, you get whatever
the script and the build system decide to give you.

Cc: Marco Elver <elver@google.com>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
tools/testing/selftests/rcutorture/bin/kvm.sh