lib-add-trivial-kunit-test-for-ratelimit.patch removed from -mm tree
The quilt patch titled
Subject: lib: add trivial kunit test for ratelimit
has been removed from the -mm tree. Its filename was
lib-add-trivial-kunit-test-for-ratelimit.patch
This patch was dropped because it was merged into mainline or a subsystem tree
------------------------------------------------------
From: "Paul E. McKenney" <[email protected]>
Subject: lib: add trivial kunit test for ratelimit
Date: Wed, 9 Jul 2025 11:03:33 -0700
Patch series "ratelimit: Add tests for lib/ratelimit.c", v6.
Add a simple "smoke" test along with a simple stress test:
1. Add trivial kunit test for ratelimit.
2. Make the ratelimit test more reliable, courtesy of Petr Mladek.
3. Add stress test for ratelimit.
This patch (of 3):
Add a simple single-threaded smoke test for lib/ratelimit.c
To run on x86:
make ARCH=x86_64 mrproper ./tools/testing/kunit/kunit.py run --arch x86_64 --kconfig_add CONFIG_RATELIMIT_KUNIT_TEST=y --kconfig_add CONFIG_SMP=y lib_ratelimit
This will fail on old ___ratelimit(), and subsequent patches provide the fixes that are required.
---
lib/Kconfig.debug | 11 ++++ lib/tests/Makefile | 1 lib/tests/test_ratelimit.c | 79 +++++++++++++++++++++++++++++++++++ 3 files changed, 91 insertions(+)
lib/Kconfig.debug renamed from lib/Kconfig.debug~lib-add-trivial-kunit-test-for-ratelimit +11 -0
@@ -3225,6 +3225,17 @@ config TEST_OBJPOOL If unsure, say N. +config RATELIMIT_KUNIT_TEST + tristate "KUnit Test for correctness and stress of ratelimit" if !KUNIT_ALL_TESTS + depends on KUNIT + default KUNIT_ALL_TESTS + help + This builds the "test_ratelimit" module that should be used + for correctness verification and concurrent testings of rate + limiting. + + If unsure, say N. + config INT_POW_KUNIT_TEST tristate "Integer exponentiation (int_pow) test" if !KUNIT_ALL_TESTS depends on KUNIT
lib/tests/Makefile renamed from lib/tests/Makefile~lib-add-trivial-kunit-test-for-ratelimit +1 -0
@@ -46,5 +46,6 @@ obj-$(CONFIG_STRING_KUNIT_TEST) += strin obj-$(CONFIG_STRING_HELPERS_KUNIT_TEST) += string_helpers_kunit.o obj-$(CONFIG_USERCOPY_KUNIT_TEST) += usercopy_kunit.o obj-$(CONFIG_UTIL_MACROS_KUNIT) += util_macros_kunit.o +obj-$(CONFIG_RATELIMIT_KUNIT_TEST) += test_ratelimit.o obj-$(CONFIG_TEST_RUNTIME_MODULE) += module/
lib/tests/test_ratelimit.c new file +79 -0
79 lines not on this page · raw message
_
Patches currently in -mm which might be from [email protected] are
lib-add-stress-test-for-ratelimit.patch