torture: Add fuzzed hrtimer-based sleep functions
authorPaul E. McKenney <paulmck@kernel.org>
Tue, 17 Nov 2020 19:30:18 +0000 (11:30 -0800)
committerPaul E. McKenney <paulmck@kernel.org>
Thu, 7 Jan 2021 01:17:19 +0000 (17:17 -0800)
commitae19aaafae95a5487469433e9cae4c208f8d15cd
tree35b99f140c8f40c06954ab3e5608ff59cebdf21c
parent682189a3f874db57b3e755512f2a2953f61fc54e
torture: Add fuzzed hrtimer-based sleep functions

This commit adds torture_hrtimeout_ns(), torture_hrtimeout_us(),
torture_hrtimeout_ms(), torture_hrtimeout_jiffies(), and
torture_hrtimeout_s(), each of which uses hrtimers to block for a fuzzed
time interval.  These functions are intended to be used by the various
torture tests to decouple wakeups from the timer wheel, thus providing
more opportunity for Murphy to insert destructive race conditions.

Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
include/linux/torture.h
kernel/torture.c