• Home
  • Raw
  • Download

Lines Matching refs:i

204 	unsigned int i = READ_ONCE(rcu_torture_writer_state);  in rcu_torture_writer_state_getname()  local
206 if (i >= ARRAY_SIZE(rcu_torture_writer_state_names)) in rcu_torture_writer_state_getname()
208 return rcu_torture_writer_state_names[i]; in rcu_torture_writer_state_getname()
375 int i; in rcu_torture_pipe_update_one() local
377 i = rp->rtort_pipe_count; in rcu_torture_pipe_update_one()
378 if (i > RCU_TORTURE_PIPE_LEN) in rcu_torture_pipe_update_one()
379 i = RCU_TORTURE_PIPE_LEN; in rcu_torture_pipe_update_one()
380 atomic_inc(&rcu_torture_wcount[i]); in rcu_torture_pipe_update_one()
945 int i; in rcu_torture_writer() local
1013 i = old_rp->rtort_pipe_count; in rcu_torture_writer()
1014 if (i > RCU_TORTURE_PIPE_LEN) in rcu_torture_writer()
1015 i = RCU_TORTURE_PIPE_LEN; in rcu_torture_writer()
1016 atomic_inc(&rcu_torture_wcount[i]); in rcu_torture_writer()
1031 i = torture_random(&rand) % 16; in rcu_torture_writer()
1032 if (i != 0) in rcu_torture_writer()
1033 schedule_timeout_interruptible(i); in rcu_torture_writer()
1070 for (i = 0; i < ARRAY_SIZE(rcu_tortures); i++) in rcu_torture_writer()
1071 if (list_empty(&rcu_tortures[i].rtort_free) && in rcu_torture_writer()
1073 &rcu_tortures[i]) { in rcu_torture_writer()
1075 WARN(1, "%s: rtort_pipe_count: %d\n", __func__, rcu_tortures[i].rtort_pipe_count); in rcu_torture_writer()
1238 int i; in rcutorture_loop_extend() local
1246 i = (torture_random(trsp) >> 3); in rcutorture_loop_extend()
1247 i = ((i | (i >> 3)) & RCUTORTURE_RDR_MAX_LOOPS) + 1; in rcutorture_loop_extend()
1248 for (j = 0; j < i; j++) { in rcutorture_loop_extend()
1262 int i; in rcu_torture_one_read() local
1316 i = 0; in rcu_torture_one_read()
1318 err_segs[i++] = *rtrsp1; in rcu_torture_one_read()
1319 rt_read_nsegs = i; in rcu_torture_one_read()
1402 int i; in rcu_torture_stats_print() local
1410 for (i = 0; i < RCU_TORTURE_PIPE_LEN + 1; i++) { in rcu_torture_stats_print()
1411 pipesummary[i] += per_cpu(rcu_torture_count, cpu)[i]; in rcu_torture_stats_print()
1412 batchsummary[i] += per_cpu(rcu_torture_batch, cpu)[i]; in rcu_torture_stats_print()
1415 for (i = RCU_TORTURE_PIPE_LEN - 1; i >= 0; i--) { in rcu_torture_stats_print()
1416 if (pipesummary[i] != 0) in rcu_torture_stats_print()
1450 i > 1) { in rcu_torture_stats_print()
1456 for (i = 0; i < RCU_TORTURE_PIPE_LEN + 1; i++) in rcu_torture_stats_print()
1457 pr_cont(" %ld", pipesummary[i]); in rcu_torture_stats_print()
1462 for (i = 0; i < RCU_TORTURE_PIPE_LEN + 1; i++) in rcu_torture_stats_print()
1463 pr_cont(" %ld", batchsummary[i]); in rcu_torture_stats_print()
1468 for (i = 0; i < RCU_TORTURE_PIPE_LEN + 1; i++) { in rcu_torture_stats_print()
1469 pr_cont(" %d", atomic_read(&rcu_torture_wcount[i])); in rcu_torture_stats_print()
1683 int i; in rcu_torture_fwd_cb_hist() local
1686 for (i = ARRAY_SIZE(n_launders_hist) - 1; i > 0; i--) in rcu_torture_fwd_cb_hist()
1687 if (n_launders_hist[i].n_launders > 0) in rcu_torture_fwd_cb_hist()
1692 for (j = 0; j <= i; j++) { in rcu_torture_fwd_cb_hist()
1706 int i; in rcu_torture_fwd_cb_cr() local
1717 i = ((jiffies - rcu_fwd_startat) / (HZ / FWD_CBS_HIST_DIV)); in rcu_torture_fwd_cb_cr()
1718 if (i >= ARRAY_SIZE(n_launders_hist)) in rcu_torture_fwd_cb_cr()
1719 i = ARRAY_SIZE(n_launders_hist) - 1; in rcu_torture_fwd_cb_cr()
1720 n_launders_hist[i].n_launders++; in rcu_torture_fwd_cb_cr()
1721 n_launders_hist[i].launder_gp_seq = cur_ops->get_gp_seq(); in rcu_torture_fwd_cb_cr()
1837 int i; in rcu_torture_fwd_prog_cr() local
1863 for (i = 0; i < ARRAY_SIZE(n_launders_hist); i++) in rcu_torture_fwd_prog_cr()
1864 n_launders_hist[i].n_launders = 0; in rcu_torture_fwd_prog_cr()
2047 int i; in rcu_torture_barrier() local
2055 for (i = 0; i < n_barrier_cbs; i++) in rcu_torture_barrier()
2056 wake_up(&barrier_cbs_wq[i]); in rcu_torture_barrier()
2082 int i; in rcu_torture_barrier_init() local
2105 for (i = 0; i < n_barrier_cbs; i++) { in rcu_torture_barrier_init()
2106 init_waitqueue_head(&barrier_cbs_wq[i]); in rcu_torture_barrier_init()
2108 (void *)(long)i, in rcu_torture_barrier_init()
2109 barrier_cbs_tasks[i]); in rcu_torture_barrier_init()
2119 int i; in rcu_torture_barrier_cleanup() local
2123 for (i = 0; i < n_barrier_cbs; i++) in rcu_torture_barrier_cleanup()
2125 barrier_cbs_tasks[i]); in rcu_torture_barrier_cleanup()
2167 int i; in rcu_torture_cleanup() local
2186 for (i = 0; i < nrealreaders; i++) in rcu_torture_cleanup()
2188 reader_tasks[i]); in rcu_torture_cleanup()
2194 for (i = 0; i < nfakewriters; i++) { in rcu_torture_cleanup()
2196 fakewriter_tasks[i]); in rcu_torture_cleanup()
2227 for (i = 0; i < rt_read_nsegs; i++) { in rcu_torture_cleanup()
2228 pr_alert("\t%d: %#x ", i, err_segs[i].rt_readstate); in rcu_torture_cleanup()
2229 if (err_segs[i].rt_delay_jiffies != 0) { in rcu_torture_cleanup()
2231 err_segs[i].rt_delay_jiffies); in rcu_torture_cleanup()
2234 if (err_segs[i].rt_delay_ms != 0) { in rcu_torture_cleanup()
2236 err_segs[i].rt_delay_ms); in rcu_torture_cleanup()
2239 if (err_segs[i].rt_delay_us != 0) { in rcu_torture_cleanup()
2241 err_segs[i].rt_delay_us); in rcu_torture_cleanup()
2245 err_segs[i].rt_preempted ? "preempted" : ""); in rcu_torture_cleanup()
2326 long i; in rcu_torture_init() local
2338 for (i = 0; i < ARRAY_SIZE(torture_ops); i++) { in rcu_torture_init()
2339 cur_ops = torture_ops[i]; in rcu_torture_init()
2343 if (i == ARRAY_SIZE(torture_ops)) { in rcu_torture_init()
2347 for (i = 0; i < ARRAY_SIZE(torture_ops); i++) in rcu_torture_init()
2348 pr_cont(" %s", torture_ops[i]->name); in rcu_torture_init()
2374 for (i = 0; i < ARRAY_SIZE(rcu_tortures); i++) { in rcu_torture_init()
2375 rcu_tortures[i].rtort_mbtest = 0; in rcu_torture_init()
2376 list_add_tail(&rcu_tortures[i].rtort_free, in rcu_torture_init()
2394 for (i = 0; i < RCU_TORTURE_PIPE_LEN + 1; i++) in rcu_torture_init()
2395 atomic_set(&rcu_torture_wcount[i], 0); in rcu_torture_init()
2397 for (i = 0; i < RCU_TORTURE_PIPE_LEN + 1; i++) { in rcu_torture_init()
2398 per_cpu(rcu_torture_count, cpu)[i] = 0; in rcu_torture_init()
2399 per_cpu(rcu_torture_batch, cpu)[i] = 0; in rcu_torture_init()
2421 for (i = 0; i < nfakewriters; i++) { in rcu_torture_init()
2423 NULL, fakewriter_tasks[i]); in rcu_torture_init()
2434 for (i = 0; i < nrealreaders; i++) { in rcu_torture_init()
2435 firsterr = torture_create_kthread(rcu_torture_reader, (void *)i, in rcu_torture_init()
2436 reader_tasks[i]); in rcu_torture_init()