Lines Matching refs:trsp
83 void (*write_delay)(struct torture_random_state *trsp);
84 void (*task_boost)(struct torture_random_state *trsp);
88 void (*read_delay)(struct torture_random_state *trsp);
117 static void torture_lock_busted_write_delay(struct torture_random_state *trsp) in torture_lock_busted_write_delay() argument
122 if (!(torture_random(trsp) % in torture_lock_busted_write_delay()
125 if (!(torture_random(trsp) % (cxt.nrealwriters_stress * 20000))) in torture_lock_busted_write_delay()
134 static void __torture_rt_boost(struct torture_random_state *trsp) in __torture_rt_boost() argument
144 if (trsp && !(torture_random(trsp) % in __torture_rt_boost()
158 if (!trsp || !(torture_random(trsp) % in __torture_rt_boost()
166 static void torture_rt_boost(struct torture_random_state *trsp) in torture_rt_boost() argument
171 __torture_rt_boost(trsp); in torture_rt_boost()
194 static void torture_spin_lock_write_delay(struct torture_random_state *trsp) in torture_spin_lock_write_delay() argument
203 if (!(torture_random(trsp) % (cxt.nrealwriters_stress * 2000 * longdelay_ms))) { in torture_spin_lock_write_delay()
208 if (!(torture_random(trsp) % (cxt.nrealwriters_stress * 200 * shortdelay_us))) in torture_spin_lock_write_delay()
210 if (!(torture_random(trsp) % (cxt.nrealwriters_stress * 20000))) in torture_spin_lock_write_delay()
320 static void torture_rwlock_write_delay(struct torture_random_state *trsp) in torture_rwlock_write_delay() argument
328 if (!(torture_random(trsp) % in torture_rwlock_write_delay()
348 static void torture_rwlock_read_delay(struct torture_random_state *trsp) in torture_rwlock_read_delay() argument
356 if (!(torture_random(trsp) % in torture_rwlock_read_delay()
454 static void torture_mutex_delay(struct torture_random_state *trsp) in torture_mutex_delay() argument
459 if (!(torture_random(trsp) % in torture_mutex_delay()
462 if (!(torture_random(trsp) % (cxt.nrealwriters_stress * 20000))) in torture_mutex_delay()
626 static void torture_rtmutex_delay(struct torture_random_state *trsp) in torture_rtmutex_delay() argument
635 if (!(torture_random(trsp) % in torture_rtmutex_delay()
638 if (!(torture_random(trsp) % in torture_rtmutex_delay()
641 if (!(torture_random(trsp) % (cxt.nrealwriters_stress * 20000))) in torture_rtmutex_delay()
651 static void torture_rt_boost_rtmutex(struct torture_random_state *trsp) in torture_rt_boost_rtmutex() argument
656 __torture_rt_boost(trsp); in torture_rt_boost_rtmutex()
692 static void torture_rwsem_write_delay(struct torture_random_state *trsp) in torture_rwsem_write_delay() argument
697 if (!(torture_random(trsp) % in torture_rwsem_write_delay()
700 if (!(torture_random(trsp) % (cxt.nrealwriters_stress * 20000))) in torture_rwsem_write_delay()
717 static void torture_rwsem_read_delay(struct torture_random_state *trsp) in torture_rwsem_read_delay() argument
722 if (!(torture_random(trsp) % in torture_rwsem_read_delay()
727 if (!(torture_random(trsp) % (cxt.nrealreaders_stress * 20000))) in torture_rwsem_read_delay()