kcsan: Switch to KUNIT_CASE_PARAM for parameterized tests
authorMarco Elver <elver@google.com>
Wed, 13 Jan 2021 16:05:57 +0000 (17:05 +0100)
committerPaul E. McKenney <paulmck@kernel.org>
Mon, 8 Mar 2021 22:27:43 +0000 (14:27 -0800)
commitf6a149140321274cbd955dee50798fe191841f94
treef3ab8d90ca933998d153f90d9b5d30a3dafa3785
parenta146fed56f8a06a6f17ac11ebdc7ca3f396bcb55
kcsan: Switch to KUNIT_CASE_PARAM for parameterized tests

Since KUnit now support parameterized tests via KUNIT_CASE_PARAM, update
KCSAN's test to switch to it for parameterized tests. This simplifies
parameterized tests and gets rid of the "parameters in case name"
workaround (hack).

At the same time, we can increase the maximum number of threads used,
because on systems with too few CPUs, KUnit allows us to now stop at the
maximum useful threads and not unnecessarily execute redundant test
cases with (the same) limited threads as had been the case before.

Reviewed-by: David Gow <davidgow@google.com>
Signed-off-by: Marco Elver <elver@google.com>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
kernel/kcsan/kcsan_test.c