Lines Matching defs:trsp

140 	void (*write_delay)(struct torture_random_state *trsp);
141 void (*task_boost)(struct torture_random_state *trsp);
145 void (*read_delay)(struct torture_random_state *trsp);
174 static void torture_lock_busted_write_delay(struct torture_random_state *trsp)
177 if (long_hold && !(torture_random(trsp) % (cxt.nrealwriters_stress * 2000 * long_hold)))
179 if (!(torture_random(trsp) % (cxt.nrealwriters_stress * 20000)))
188 static void __torture_rt_boost(struct torture_random_state *trsp)
198 if (trsp && !(torture_random(trsp) %
209 * When @trsp is nil, we want to force-reset the task for
212 if (!trsp || !(torture_random(trsp) %
220 static void torture_rt_boost(struct torture_random_state *trsp)
225 __torture_rt_boost(trsp);
248 static void torture_spin_lock_write_delay(struct torture_random_state *trsp)
256 if (long_hold && !(torture_random(trsp) % (cxt.nrealwriters_stress * 2000 * long_hold))) {
261 if (!(torture_random(trsp) % (cxt.nrealwriters_stress * 200 * shortdelay_us)))
263 if (!(torture_random(trsp) % (cxt.nrealwriters_stress * 20000)))
373 static void torture_rwlock_write_delay(struct torture_random_state *trsp)
380 if (long_hold && !(torture_random(trsp) % (cxt.nrealwriters_stress * 2000 * long_hold)))
399 static void torture_rwlock_read_delay(struct torture_random_state *trsp)
406 if (long_hold && !(torture_random(trsp) % (cxt.nrealreaders_stress * 2000 * long_hold)))
503 static void torture_mutex_delay(struct torture_random_state *trsp)
506 if (long_hold && !(torture_random(trsp) % (cxt.nrealwriters_stress * 2000 * long_hold)))
508 if (!(torture_random(trsp) % (cxt.nrealwriters_stress * 20000)))
672 static void torture_rtmutex_delay(struct torture_random_state *trsp)
680 if (long_hold && !(torture_random(trsp) % (cxt.nrealwriters_stress * 2000 * long_hold)))
682 if (!(torture_random(trsp) %
685 if (!(torture_random(trsp) % (cxt.nrealwriters_stress * 20000)))
695 static void torture_rt_boost_rtmutex(struct torture_random_state *trsp)
700 __torture_rt_boost(trsp);
736 static void torture_rwsem_write_delay(struct torture_random_state *trsp)
739 if (long_hold && !(torture_random(trsp) % (cxt.nrealwriters_stress * 2000 * long_hold)))
741 if (!(torture_random(trsp) % (cxt.nrealwriters_stress * 20000)))
758 static void torture_rwsem_read_delay(struct torture_random_state *trsp)
761 if (long_hold && !(torture_random(trsp) % (cxt.nrealreaders_stress * 2000 * long_hold)))
765 if (!(torture_random(trsp) % (cxt.nrealreaders_stress * 20000)))