diff options
| author | Paul E. McKenney <[email protected]> | 2025-05-06 18:43:32 +0000 |
|---|---|---|
| committer | Paul E. McKenney <[email protected]> | 2025-06-24 12:47:35 +0000 |
| commit | 5c23ce0cb897b491a12667e3c15288eb03f8928d (patch) | |
| tree | bc4d32711ab34a499ab57717871836166168c989 /lib/crypto/mpi/mpi-cmp.c | |
| parent | lib: Make the ratelimit test more reliable (diff) | |
| download | kernel-5c23ce0cb897b491a12667e3c15288eb03f8928d.tar.gz kernel-5c23ce0cb897b491a12667e3c15288eb03f8928d.zip | |
lib: Add stress test for ratelimit
Add a simple stress test for lib/ratelimit.c
To run on x86:
./tools/testing/kunit/kunit.py run --arch x86_64 --kconfig_add CONFIG_RATELIMIT_KUNIT_TEST=y --kconfig_add CONFIG_SMP=y --qemu_args "-smp 4" lib_ratelimit
On a 16-CPU system, the "4" in "-smp 4" can be varied between 1 and 8.
Larger numbers have higher probabilities of introducing delays that
break the smoke test. In the extreme case, increasing the number to
larger than the number of CPUs in the underlying system is an excellent
way to get a test failure.
Link: https://lore.kernel.org/all/fbe93a52-365e-47fe-93a4-44a44547d601@paulmck-laptop/
Link: https://lore.kernel.org/all/[email protected]/
Signed-off-by: Paul E. McKenney <[email protected]>
Cc: Petr Mladek <[email protected]>
Cc: Andrew Morton <[email protected]>
Cc: Kuniyuki Iwashima <[email protected]>
Cc: Mateusz Guzik <[email protected]>
Cc: Steven Rostedt <[email protected]>
Cc: John Ogness <[email protected]>
Cc: Sergey Senozhatsky <[email protected]>
Cc: Jon Pan-Doh <[email protected]>
Cc: Bjorn Helgaas <[email protected]>
Cc: Karolina Stolarek <[email protected]>
Diffstat (limited to 'lib/crypto/mpi/mpi-cmp.c')
0 files changed, 0 insertions, 0 deletions
