• Paul E. McKenney's avatar
    torture: Add fuzzed hrtimer-based sleep functions · ae19aaaf
    Paul E. McKenney authored
    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>
    ae19aaaf
torture.c 24.5 KB