Home
last modified time | relevance | path

Searched refs:torture_random (Results 1 – 4 of 4) sorted by relevance

/Linux-v4.19/kernel/locking/
Dlocktorture.c129 if (!(torture_random(trsp) % in torture_lock_busted_write_delay()
132 if (!(torture_random(trsp) % (cxt.nrealwriters_stress * 20000))) in torture_lock_busted_write_delay()
173 if (!(torture_random(trsp) % in torture_spin_lock_write_delay()
176 if (!(torture_random(trsp) % in torture_spin_lock_write_delay()
179 if (!(torture_random(trsp) % (cxt.nrealwriters_stress * 20000))) in torture_spin_lock_write_delay()
242 if (!(torture_random(trsp) % in torture_rwlock_write_delay()
268 if (!(torture_random(trsp) % in torture_rwlock_read_delay()
345 if (!(torture_random(trsp) % in torture_mutex_delay()
350 if (!(torture_random(trsp) % (cxt.nrealwriters_stress * 20000))) in torture_mutex_delay()
463 if (trsp && !(torture_random(trsp) % in torture_rtmutex_boost()
[all …]
/Linux-v4.19/kernel/rcu/
Drcutorture.c325 if (!(torture_random(rrsp) % (nrealreaders * 2000 * longdelay_ms))) { in rcu_read_delay()
333 if (!(torture_random(rrsp) % (nrealreaders * 2 * shortdelay_us))) in rcu_read_delay()
336 !(torture_random(rrsp) % (nrealreaders * 500))) in rcu_read_delay()
542 delay = torture_random(rrsp) % in srcu_read_delay()
619 if (torture_random(&rand) & 0x800) in srcu_torture_cleanup()
1075 udelay(torture_random(&rand) & 0x3ff); in rcu_torture_writer()
1088 switch (synctype[torture_random(&rand) % nsynctypes]) { in rcu_torture_writer()
1101 i = torture_random(&rand) % 16; in rcu_torture_writer()
1104 udelay(torture_random(&rand) % 1000); in rcu_torture_writer()
1122 !(torture_random(&rand) & 0xff & (!!expediting - 1))) { in rcu_torture_writer()
[all …]
/Linux-v4.19/kernel/
Dtorture.c214 cpu = (torture_random(&rand) >> 4) % (maxcpu + 1); in torture_onoff()
303 torture_random(struct torture_random_state *trsp) in torture_random() function
313 EXPORT_SYMBOL_GPL(torture_random);
/Linux-v4.19/include/linux/
Dtorture.h69 unsigned long torture_random(struct torture_random_state *trsp);