Lines Matching refs:trsp
96 void (*write_delay)(struct torture_random_state *trsp);
97 void (*task_boost)(struct torture_random_state *trsp);
100 void (*read_delay)(struct torture_random_state *trsp);
128 static void torture_lock_busted_write_delay(struct torture_random_state *trsp) in torture_lock_busted_write_delay() argument
133 if (!(torture_random(trsp) % in torture_lock_busted_write_delay()
137 if (!(torture_random(trsp) % (cxt.nrealwriters_stress * 20000))) in torture_lock_busted_write_delay()
147 static void torture_boost_dummy(struct torture_random_state *trsp) in torture_boost_dummy() argument
171 static void torture_spin_lock_write_delay(struct torture_random_state *trsp) in torture_spin_lock_write_delay() argument
179 if (!(torture_random(trsp) % in torture_spin_lock_write_delay()
182 if (!(torture_random(trsp) % in torture_spin_lock_write_delay()
186 if (!(torture_random(trsp) % (cxt.nrealwriters_stress * 20000))) in torture_spin_lock_write_delay()
242 static void torture_rwlock_write_delay(struct torture_random_state *trsp) in torture_rwlock_write_delay() argument
250 if (!(torture_random(trsp) % in torture_rwlock_write_delay()
268 static void torture_rwlock_read_delay(struct torture_random_state *trsp) in torture_rwlock_read_delay() argument
276 if (!(torture_random(trsp) % in torture_rwlock_read_delay()
348 static void torture_mutex_delay(struct torture_random_state *trsp) in torture_mutex_delay() argument
353 if (!(torture_random(trsp) % in torture_mutex_delay()
359 if (!(torture_random(trsp) % (cxt.nrealwriters_stress * 20000))) in torture_mutex_delay()
389 static void torture_rtmutex_boost(struct torture_random_state *trsp) in torture_rtmutex_boost() argument
401 if (!(torture_random(trsp) % in torture_rtmutex_boost()
415 if (!trsp || !(torture_random(trsp) % in torture_rtmutex_boost()
426 static void torture_rtmutex_delay(struct torture_random_state *trsp) in torture_rtmutex_delay() argument
435 if (!(torture_random(trsp) % in torture_rtmutex_delay()
438 if (!(torture_random(trsp) % in torture_rtmutex_delay()
442 if (!(torture_random(trsp) % (cxt.nrealwriters_stress * 20000))) in torture_rtmutex_delay()
471 static void torture_rwsem_write_delay(struct torture_random_state *trsp) in torture_rwsem_write_delay() argument
476 if (!(torture_random(trsp) % in torture_rwsem_write_delay()
482 if (!(torture_random(trsp) % (cxt.nrealwriters_stress * 20000))) in torture_rwsem_write_delay()
498 static void torture_rwsem_read_delay(struct torture_random_state *trsp) in torture_rwsem_read_delay() argument
503 if (!(torture_random(trsp) % in torture_rwsem_read_delay()
509 if (!(torture_random(trsp) % (cxt.nrealreaders_stress * 20000))) in torture_rwsem_read_delay()