Lines Matching refs:trsp

141 	void (*write_delay)(struct torture_random_state *trsp);
142 void (*task_boost)(struct torture_random_state *trsp);
146 void (*read_delay)(struct torture_random_state *trsp);
175 static void torture_lock_busted_write_delay(struct torture_random_state *trsp) in torture_lock_busted_write_delay() argument
178 if (long_hold && !(torture_random(trsp) % (cxt.nrealwriters_stress * 2000 * long_hold))) in torture_lock_busted_write_delay()
180 if (!(torture_random(trsp) % (cxt.nrealwriters_stress * 20000))) in torture_lock_busted_write_delay()
189 static void __torture_rt_boost(struct torture_random_state *trsp) in __torture_rt_boost() argument
199 if (trsp && !(torture_random(trsp) % in __torture_rt_boost()
213 if (!trsp || !(torture_random(trsp) % in __torture_rt_boost()
221 static void torture_rt_boost(struct torture_random_state *trsp) in torture_rt_boost() argument
226 __torture_rt_boost(trsp); in torture_rt_boost()
249 static void torture_spin_lock_write_delay(struct torture_random_state *trsp) in torture_spin_lock_write_delay() argument
257 if (long_hold && !(torture_random(trsp) % (cxt.nrealwriters_stress * 2000 * long_hold))) { in torture_spin_lock_write_delay()
262 if (!(torture_random(trsp) % (cxt.nrealwriters_stress * 200 * shortdelay_us))) in torture_spin_lock_write_delay()
264 if (!(torture_random(trsp) % (cxt.nrealwriters_stress * 20000))) in torture_spin_lock_write_delay()
428 static void torture_rwlock_write_delay(struct torture_random_state *trsp) in torture_rwlock_write_delay() argument
435 if (long_hold && !(torture_random(trsp) % (cxt.nrealwriters_stress * 2000 * long_hold))) in torture_rwlock_write_delay()
454 static void torture_rwlock_read_delay(struct torture_random_state *trsp) in torture_rwlock_read_delay() argument
461 if (long_hold && !(torture_random(trsp) % (cxt.nrealreaders_stress * 2000 * long_hold))) in torture_rwlock_read_delay()
558 static void torture_mutex_delay(struct torture_random_state *trsp) in torture_mutex_delay() argument
561 if (long_hold && !(torture_random(trsp) % (cxt.nrealwriters_stress * 2000 * long_hold))) in torture_mutex_delay()
563 if (!(torture_random(trsp) % (cxt.nrealwriters_stress * 20000))) in torture_mutex_delay()
727 static void torture_rtmutex_delay(struct torture_random_state *trsp) in torture_rtmutex_delay() argument
735 if (long_hold && !(torture_random(trsp) % (cxt.nrealwriters_stress * 2000 * long_hold))) in torture_rtmutex_delay()
737 if (!(torture_random(trsp) % in torture_rtmutex_delay()
740 if (!(torture_random(trsp) % (cxt.nrealwriters_stress * 20000))) in torture_rtmutex_delay()
750 static void torture_rt_boost_rtmutex(struct torture_random_state *trsp) in torture_rt_boost_rtmutex() argument
755 __torture_rt_boost(trsp); in torture_rt_boost_rtmutex()
791 static void torture_rwsem_write_delay(struct torture_random_state *trsp) in torture_rwsem_write_delay() argument
794 if (long_hold && !(torture_random(trsp) % (cxt.nrealwriters_stress * 2000 * long_hold))) in torture_rwsem_write_delay()
796 if (!(torture_random(trsp) % (cxt.nrealwriters_stress * 20000))) in torture_rwsem_write_delay()
813 static void torture_rwsem_read_delay(struct torture_random_state *trsp) in torture_rwsem_read_delay() argument
816 if (long_hold && !(torture_random(trsp) % (cxt.nrealreaders_stress * 2000 * long_hold))) in torture_rwsem_read_delay()
820 if (!(torture_random(trsp) % (cxt.nrealreaders_stress * 20000))) in torture_rwsem_read_delay()