Home
last modified time | relevance | path

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

/Linux-v5.15/kernel/locking/
Dlocktorture.c118 if (!(torture_random(trsp) % in torture_lock_busted_write_delay()
121 if (!(torture_random(trsp) % (cxt.nrealwriters_stress * 20000))) in torture_lock_busted_write_delay()
163 if (!(torture_random(trsp) % in torture_spin_lock_write_delay()
166 if (!(torture_random(trsp) % in torture_spin_lock_write_delay()
169 if (!(torture_random(trsp) % (cxt.nrealwriters_stress * 20000))) in torture_spin_lock_write_delay()
234 if (!(torture_random(trsp) % in torture_rwlock_write_delay()
262 if (!(torture_random(trsp) % in torture_rwlock_read_delay()
343 if (!(torture_random(trsp) % in torture_mutex_delay()
348 if (!(torture_random(trsp) % (cxt.nrealwriters_stress * 20000))) in torture_mutex_delay()
487 if (trsp && !(torture_random(trsp) % in torture_rtmutex_boost()
[all …]
/Linux-v5.15/kernel/
Dscftorture.c248 unsigned long w = torture_random(trsp) % (scf_sel_totweight + 1); in scf_sel_rand()
264 unsigned long r = torture_random(this_cpu_ptr(&scf_torture_rand)); in scf_handler()
341 cpu = torture_random(trsp) % nr_cpu_ids; in scftorture_invoke_one()
347 cpu = torture_random(trsp) % nr_cpu_ids; in scftorture_invoke_one()
370 cpu = torture_random(trsp) % nr_cpu_ids; in scftorture_invoke_one()
436 if (!(torture_random(trsp) & 0xfff)) in scftorture_invoke_one()
Dtorture.c91 hto += (torture_random(trsp) >> 3) % fuzzt_ns; in torture_hrtimeout_ns()
361 cpu = (torture_random(&rand) >> 4) % (maxcpu + 1); in torture_onoff()
450 torture_random(struct torture_random_state *trsp) in torture_random() function
460 EXPORT_SYMBOL_GPL(torture_random);
/Linux-v5.15/kernel/rcu/
Drcutorture.c383 !(torture_random(rrsp) % (nrealreaders * 2000 * longdelay_ms))) { in rcu_read_delay()
394 if (!(torture_random(rrsp) % (nrealreaders * 2 * shortdelay_us))) { in rcu_read_delay()
399 !(torture_random(rrsp) % (nrealreaders * 500))) { in rcu_read_delay()
581 delay = torture_random(rrsp) % in srcu_read_delay()
1183 udelay(torture_random(&rand) & 0x3ff); in rcu_torture_writer()
1209 switch (synctype[torture_random(&rand) % nsynctypes]) { in rcu_torture_writer()
1222 torture_hrtimeout_jiffies(torture_random(&rand) % 16, &rand); in rcu_torture_writer()
1232 torture_hrtimeout_jiffies(torture_random(&rand) % 16, in rcu_torture_writer()
1250 !(torture_random(&rand) & 0xff & (!!expediting - 1))) { in rcu_torture_writer()
1310 torture_hrtimeout_jiffies(torture_random(&rand) % 10, &rand); in rcu_torture_fakewriter()
[all …]
Drcuscale.c683 (kfree_rcu_test_both && torture_random(&tr) & 0x800)) in kfree_scale_thread()
/Linux-v5.15/include/linux/
Dtorture.h73 unsigned long torture_random(struct torture_random_state *trsp);