Searched refs:trsp (Results 1 – 3 of 3) sorted by relevance
/kernel/locking/ |
D | locktorture.c | 79 void (*write_delay)(struct torture_random_state *trsp); 80 void (*task_boost)(struct torture_random_state *trsp); 83 void (*read_delay)(struct torture_random_state *trsp); 111 static void torture_lock_busted_write_delay(struct torture_random_state *trsp) in torture_lock_busted_write_delay() argument 116 if (!(torture_random(trsp) % in torture_lock_busted_write_delay() 119 if (!(torture_random(trsp) % (cxt.nrealwriters_stress * 20000))) in torture_lock_busted_write_delay() 128 static void torture_boost_dummy(struct torture_random_state *trsp) in torture_boost_dummy() argument 152 static void torture_spin_lock_write_delay(struct torture_random_state *trsp) in torture_spin_lock_write_delay() argument 160 if (!(torture_random(trsp) % in torture_spin_lock_write_delay() 163 if (!(torture_random(trsp) % in torture_spin_lock_write_delay() [all …]
|
/kernel/ |
D | torture.c | 306 torture_random(struct torture_random_state *trsp) in torture_random() argument 308 if (--trsp->trs_count < 0) { in torture_random() 309 trsp->trs_state += (unsigned long)local_clock(); in torture_random() 310 trsp->trs_count = TORTURE_RANDOM_REFRESH; in torture_random() 312 trsp->trs_state = trsp->trs_state * TORTURE_RANDOM_MULT + in torture_random() 314 return swahw32(trsp->trs_state); in torture_random()
|
/kernel/rcu/ |
D | rcutorture.c | 1143 struct torture_random_state *trsp, in rcutorture_one_extend() argument 1185 cur_ops->read_delay(trsp, rtrsp); in rcutorture_one_extend() 1210 rcutorture_extend_mask(int oldmask, struct torture_random_state *trsp) in rcutorture_extend_mask() argument 1213 unsigned long randmask1 = torture_random(trsp) >> 8; in rcutorture_extend_mask() 1235 rcutorture_loop_extend(int *readstate, struct torture_random_state *trsp, in rcutorture_loop_extend() argument 1246 i = (torture_random(trsp) >> 3); in rcutorture_loop_extend() 1249 mask = rcutorture_extend_mask(*readstate, trsp); in rcutorture_loop_extend() 1250 rcutorture_one_extend(readstate, mask, trsp, &rtrsp[j]); in rcutorture_loop_extend() 1260 static bool rcu_torture_one_read(struct torture_random_state *trsp) in rcu_torture_one_read() argument 1274 newstate = rcutorture_extend_mask(readstate, trsp); in rcu_torture_one_read() [all …]
|