torture_random
unsigned long torture_random(struct torture_random_state *trsp);
if (long_hold && !(torture_random(trsp) % (cxt.nrealwriters_stress * 2000 * long_hold)))
if (!(torture_random(trsp) % (cxt.nrealwriters_stress * 20000)))
if (trsp && !(torture_random(trsp) %
if (!trsp || !(torture_random(trsp) %
if (long_hold && !(torture_random(trsp) % (cxt.nrealwriters_stress * 2000 * long_hold))) {
if (!(torture_random(trsp) % (cxt.nrealwriters_stress * 200 * shortdelay_us)))
if (!(torture_random(trsp) % (cxt.nrealwriters_stress * 20000)))
if (long_hold && !(torture_random(trsp) % (cxt.nrealwriters_stress * 2000 * long_hold)))
if (long_hold && !(torture_random(trsp) % (cxt.nrealreaders_stress * 2000 * long_hold)))
if (long_hold && !(torture_random(trsp) % (cxt.nrealwriters_stress * 2000 * long_hold)))
if (!(torture_random(trsp) % (cxt.nrealwriters_stress * 20000)))
if (long_hold && !(torture_random(trsp) % (cxt.nrealwriters_stress * 2000 * long_hold)))
if (!(torture_random(trsp) %
if (!(torture_random(trsp) % (cxt.nrealwriters_stress * 20000)))
if (long_hold && !(torture_random(trsp) % (cxt.nrealwriters_stress * 2000 * long_hold)))
if (!(torture_random(trsp) % (cxt.nrealwriters_stress * 20000)))
if (long_hold && !(torture_random(trsp) % (cxt.nrealreaders_stress * 2000 * long_hold)))
if (!(torture_random(trsp) % (cxt.nrealreaders_stress * 20000)))
if ((torture_random(&rand) & 0xfffff) == 0)
lockset_mask = torture_random(&rand);
!(torture_random(&rand) % 100));
if ((torture_random(&rand) & 0xfffff) == 0)
schedule_timeout_idle(torture_random(&tr) % writer_holdoff_jiffies + 1);
(kfree_rcu_test_both && torture_random(&tr) & 0x800))
unsigned long r = torture_random(trsp);
udelay(torture_random(&rand) & 0x3ff);
switch (synctype[torture_random(&rand) % nsynctypes]) {
torture_hrtimeout_us(torture_random(&rand) % gp_cond_wi,
torture_hrtimeout_us(torture_random(&rand) % gp_cond_wi_exp,
torture_hrtimeout_us(torture_random(&rand) % gp_cond_wi,
torture_hrtimeout_us(torture_random(&rand) % gp_cond_wi_exp,
if (cur_ops->exp_current && !(torture_random(&rand) & 0xff))
torture_hrtimeout_us(torture_random(&rand) % gp_poll_wi,
if (cur_ops->exp_current && !(torture_random(&rand) & 0xff))
torture_hrtimeout_us(torture_random(&rand) % gp_poll_wi,
torture_hrtimeout_us(torture_random(&rand) % gp_poll_wi_exp,
torture_hrtimeout_us(torture_random(&rand) % gp_poll_wi_exp,
!(torture_random(&rand) & 0xff & (!!expediting - 1))) {
torture_hrtimeout_jiffies(torture_random(&rand) % 10, &rand);
torture_random(&rand) % (nrealfakewriters * 8) == 0) {
switch (synctype[torture_random(&rand) % nsynctypes]) {
torture_hrtimeout_jiffies(torture_random(&rand) % 16, &rand);
torture_hrtimeout_jiffies(torture_random(&rand) % 16, &rand);
torture_hrtimeout_jiffies(torture_random(&rand) % 16, &rand);
torture_hrtimeout_jiffies(torture_random(&rand) % 16, &rand);
torture_hrtimeout_jiffies(torture_random(&rand) % 16,
torture_hrtimeout_jiffies(torture_random(&rand) % 16,
torture_hrtimeout_jiffies(torture_random(&rand) % 16,
torture_hrtimeout_jiffies(torture_random(&rand) % 16,
rdrchked = torture_random(trsp) % nrealreaders;
rdrchker = torture_random(trsp) % nrealreaders;
lockit = !cur_ops->no_pi_lock && !statesnew && !(torture_random(trsp) & 0xffff);
unsigned long randmask1 = torture_random(trsp);
i = torture_random(trsp);
rtorsp->checkpolling = !(torture_random(trsp) & 0xfff);
t = torture_random(&rtorsup->rtorsu_trs) & 0xfffff; // One per million.
r = torture_random(&rand);
toggle_delay = torture_random(&rand) % toggle_fuzz + toggle_interval;
dur = sd4 + torture_random(&trs) % (sd - sd4);
!(torture_random(rrsp) % (nrealreaders * 2000 * longdelay_ms))) {
if (!(torture_random(rrsp) % (nrealreaders * 2 * shortdelay_us))) {
!(torture_random(rrsp) % (nrealreaders * 500)))
delay = torture_random(rrsp) %
idx = torture_random(this_cpu_ptr(&refscale_rand)) % rtsarray_size;
rtsp->a = torture_random(this_cpu_ptr(&refscale_rand));
unsigned long w = torture_random(trsp) % (scf_sel_totweight + 1);
unsigned long r = torture_random(this_cpu_ptr(&scf_torture_rand));
cpu = torture_random(trsp) % nr_cpu_ids;
cpu = torture_random(trsp) % nr_cpu_ids;
cpu = torture_random(trsp) % nr_cpu_ids;
else if (!(torture_random(trsp) & 0xfff))
cpu = torture_random(&rand) % (maxcpu + 1);
EXPORT_SYMBOL_GPL(torture_random);
if (!random_shuffle || torture_random(trp) & 0x1)
hto += torture_random(trsp) % fuzzt_ns;