kfence: add test suite
[platform/kernel/linux-starfive.git] / lib / Kconfig.kfence
index 605125a..78f50cc 100644 (file)
@@ -66,4 +66,17 @@ config KFENCE_STRESS_TEST_FAULTS
 
          Only for KFENCE testing; set to 0 if you are not a KFENCE developer.
 
+config KFENCE_KUNIT_TEST
+       tristate "KFENCE integration test suite" if !KUNIT_ALL_TESTS
+       default KUNIT_ALL_TESTS
+       depends on TRACEPOINTS && KUNIT
+       help
+         Test suite for KFENCE, testing various error detection scenarios with
+         various allocation types, and checking that reports are correctly
+         output to console.
+
+         Say Y here if you want the test to be built into the kernel and run
+         during boot; say M if you want the test to build as a module; say N
+         if you are unsure.
+
 endif # KFENCE