Home
last modified time | relevance | path

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

/Linux-v5.10/kernel/locking/
Dlocktorture.c115 if (!(torture_random(trsp) % in torture_lock_busted_write_delay()
118 if (!(torture_random(trsp) % (cxt.nrealwriters_stress * 20000))) in torture_lock_busted_write_delay()
159 if (!(torture_random(trsp) % in torture_spin_lock_write_delay()
162 if (!(torture_random(trsp) % in torture_spin_lock_write_delay()
165 if (!(torture_random(trsp) % (cxt.nrealwriters_stress * 20000))) in torture_spin_lock_write_delay()
228 if (!(torture_random(trsp) % in torture_rwlock_write_delay()
254 if (!(torture_random(trsp) % in torture_rwlock_read_delay()
331 if (!(torture_random(trsp) % in torture_mutex_delay()
336 if (!(torture_random(trsp) % (cxt.nrealwriters_stress * 20000))) in torture_mutex_delay()
447 if (trsp && !(torture_random(trsp) % in torture_rtmutex_boost()
[all …]
/Linux-v5.10/kernel/rcu/
Drcutorture.c354 !(torture_random(rrsp) % (nrealreaders * 2000 * longdelay_ms))) { in rcu_read_delay()
365 if (!(torture_random(rrsp) % (nrealreaders * 2 * shortdelay_us))) { in rcu_read_delay()
370 !(torture_random(rrsp) % (nrealreaders * 500))) { in rcu_read_delay()
541 delay = torture_random(rrsp) % in srcu_read_delay()
1084 udelay(torture_random(&rand) & 0x3ff); in rcu_torture_writer()
1098 switch (synctype[torture_random(&rand) % nsynctypes]) { in rcu_torture_writer()
1111 i = torture_random(&rand) % 16; in rcu_torture_writer()
1114 udelay(torture_random(&rand) % 1000); in rcu_torture_writer()
1133 !(torture_random(&rand) & 0xff & (!!expediting - 1))) { in rcu_torture_writer()
1188 schedule_timeout_uninterruptible(1 + torture_random(&rand)%10); in rcu_torture_fakewriter()
[all …]
/Linux-v5.10/kernel/
Dscftorture.c230 unsigned long w = torture_random(trsp) % (scf_sel_totweight + 1); in scf_sel_rand()
246 unsigned long r = torture_random(this_cpu_ptr(&scf_torture_rand)); in scf_handler()
318 cpu = torture_random(trsp) % nr_cpu_ids; in scftorture_invoke_one()
377 if (!(torture_random(trsp) & 0xfff)) in scftorture_invoke_one()
Dtorture.c243 cpu = (torture_random(&rand) >> 4) % (maxcpu + 1); in torture_onoff()
331 torture_random(struct torture_random_state *trsp) in torture_random() function
341 EXPORT_SYMBOL_GPL(torture_random);
/Linux-v5.10/include/linux/
Dtorture.h57 unsigned long torture_random(struct torture_random_state *trsp);