Home
last modified time | relevance | path

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

/kernel/locking/
Dlocktorture.c80 void (*write_delay)(struct torture_random_state *trsp);
81 void (*task_boost)(struct torture_random_state *trsp);
84 void (*read_delay)(struct torture_random_state *trsp);
113 static void torture_lock_busted_write_delay(struct torture_random_state *trsp) in torture_lock_busted_write_delay() argument
118 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()
130 static void torture_boost_dummy(struct torture_random_state *trsp) in torture_boost_dummy() argument
155 static void torture_spin_lock_write_delay(struct torture_random_state *trsp) in torture_spin_lock_write_delay() argument
163 if (!(torture_random(trsp) % in torture_spin_lock_write_delay()
166 if (!(torture_random(trsp) % in torture_spin_lock_write_delay()
[all …]
/kernel/
Dtorture.c86 int torture_hrtimeout_ns(ktime_t baset_ns, u32 fuzzt_ns, struct torture_random_state *trsp) in torture_hrtimeout_ns() argument
90 if (trsp) in torture_hrtimeout_ns()
91 hto += (torture_random(trsp) >> 3) % fuzzt_ns; in torture_hrtimeout_ns()
101 int torture_hrtimeout_us(u32 baset_us, u32 fuzzt_ns, struct torture_random_state *trsp) in torture_hrtimeout_us() argument
105 return torture_hrtimeout_ns(baset_ns, fuzzt_ns, trsp); in torture_hrtimeout_us()
113 int torture_hrtimeout_ms(u32 baset_ms, u32 fuzzt_us, struct torture_random_state *trsp) in torture_hrtimeout_ms() argument
122 return torture_hrtimeout_ns(baset_ns, fuzzt_ns, trsp); in torture_hrtimeout_ms()
131 int torture_hrtimeout_jiffies(u32 baset_j, struct torture_random_state *trsp) in torture_hrtimeout_jiffies() argument
135 return torture_hrtimeout_ns(baset_ns, jiffies_to_nsecs(1), trsp); in torture_hrtimeout_jiffies()
143 int torture_hrtimeout_s(u32 baset_s, u32 fuzzt_ms, struct torture_random_state *trsp) in torture_hrtimeout_s() argument
[all …]
Dscftorture.c242 static struct scf_selector *scf_sel_rand(struct torture_random_state *trsp) in scf_sel_rand() argument
245 unsigned long w = torture_random(trsp) % (scf_sel_totweight + 1); in scf_sel_rand()
314 static void scftorture_invoke_one(struct scf_statistics *scfp, struct torture_random_state *trsp) in scftorture_invoke_one() argument
319 struct scf_selector *scfsp = scf_sel_rand(trsp); in scftorture_invoke_one()
340 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()
/kernel/rcu/
Drcutorture.c1299 static void do_rtws_sync(struct torture_random_state *trsp, void (*sync)(void)) in do_rtws_sync() argument
1305 unsigned long r = torture_random(trsp); in do_rtws_sync()
1668 struct torture_random_state *trsp) in rcu_torture_reader_do_mbchk() argument
1687 rdrchked = torture_random(trsp) % nrealreaders; in rcu_torture_reader_do_mbchk()
1689 rdrchker = torture_random(trsp) % nrealreaders; in rcu_torture_reader_do_mbchk()
1732 struct torture_random_state *trsp, in rcutorture_one_extend() argument
1788 lockit = !cur_ops->no_pi_lock && !statesnew && !(torture_random(trsp) & 0xffff); in rcutorture_one_extend()
1800 cur_ops->read_delay(trsp, rtrsp); in rcutorture_one_extend()
1831 rcutorture_extend_mask(int oldmask, struct torture_random_state *trsp) in rcutorture_extend_mask() argument
1834 unsigned long randmask1 = torture_random(trsp) >> 8; in rcutorture_extend_mask()
[all …]