Skip to content
Commit ae19aaaf authored by Paul E. McKenney's avatar Paul E. McKenney
Browse files

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: default avatarPaul E. McKenney <paulmck@kernel.org>
parent 682189a3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment