Home
last modified time | relevance | path

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

/linux-4.1.27/kernel/locking/
Dlocktorture.c128 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()
168 if (!(torture_random(trsp) % in torture_spin_lock_write_delay()
171 if (!(torture_random(trsp) % in torture_spin_lock_write_delay()
175 if (!(torture_random(trsp) % (cxt.nrealwriters_stress * 20000))) in torture_spin_lock_write_delay()
237 if (!(torture_random(trsp) % in torture_rwlock_write_delay()
263 if (!(torture_random(trsp) % in torture_rwlock_read_delay()
338 if (!(torture_random(trsp) % in torture_mutex_delay()
344 if (!(torture_random(trsp) % (cxt.nrealwriters_stress * 20000))) in torture_mutex_delay()
376 if (!(torture_random(trsp) % in torture_rwsem_write_delay()
[all …]
/linux-4.1.27/kernel/rcu/
Drcutorture.c284 if (!(torture_random(rrsp) % (nrealreaders * 2000 * longdelay_ms))) in rcu_read_delay()
286 if (!(torture_random(rrsp) % (nrealreaders * 2 * shortdelay_us))) in rcu_read_delay()
290 !(torture_random(rrsp) % (nrealreaders * 20000))) in rcu_read_delay()
494 delay = torture_random(rrsp) % in srcu_read_delay()
915 udelay(torture_random(&rand) & 0x3ff); in rcu_torture_writer()
928 switch (synctype[torture_random(&rand) % nsynctypes]) { in rcu_torture_writer()
941 i = torture_random(&rand) % 16; in rcu_torture_writer()
944 udelay(torture_random(&rand) % 1000); in rcu_torture_writer()
962 !(torture_random(&rand) & 0xff & (!!expediting - 1))) { in rcu_torture_writer()
998 schedule_timeout_uninterruptible(1 + torture_random(&rand)%10); in rcu_torture_fakewriter()
[all …]
/linux-4.1.27/kernel/
Dtorture.c108 cpu = (torture_random(&rand) >> 4) % (maxcpu + 1); in torture_onoff()
250 torture_random(struct torture_random_state *trsp) in torture_random() function
260 EXPORT_SYMBOL_GPL(torture_random);
/linux-4.1.27/include/linux/
Dtorture.h63 unsigned long torture_random(struct torture_random_state *trsp);