• Home
  • Raw
  • Download

Lines Matching refs:i

261 	unsigned int i = READ_ONCE(rcu_torture_writer_state);  in rcu_torture_writer_state_getname()  local
263 if (i >= ARRAY_SIZE(rcu_torture_writer_state_names)) in rcu_torture_writer_state_getname()
265 return rcu_torture_writer_state_names[i]; in rcu_torture_writer_state_getname()
451 int i; in rcu_torture_pipe_update_one() local
458 i = READ_ONCE(rp->rtort_pipe_count); in rcu_torture_pipe_update_one()
459 if (i > RCU_TORTURE_PIPE_LEN) in rcu_torture_pipe_update_one()
460 i = RCU_TORTURE_PIPE_LEN; in rcu_torture_pipe_update_one()
461 atomic_inc(&rcu_torture_wcount[i]); in rcu_torture_pipe_update_one()
462 WRITE_ONCE(rp->rtort_pipe_count, i + 1); in rcu_torture_pipe_update_one()
1343 int i; in rcu_torture_writer() local
1384 i = old_rp->rtort_pipe_count; in rcu_torture_writer()
1385 if (i > RCU_TORTURE_PIPE_LEN) in rcu_torture_writer()
1386 i = RCU_TORTURE_PIPE_LEN; in rcu_torture_writer()
1387 atomic_inc(&rcu_torture_wcount[i]); in rcu_torture_writer()
1534 for (i = 0; i < ARRAY_SIZE(rcu_tortures); i++) in rcu_torture_writer()
1535 if (list_empty(&rcu_tortures[i].rtort_free) && in rcu_torture_writer()
1537 &rcu_tortures[i]) { in rcu_torture_writer()
1539 WARN(1, "%s: rtort_pipe_count: %d\n", __func__, rcu_tortures[i].rtort_pipe_count); in rcu_torture_writer()
1885 int i; in rcutorture_loop_extend() local
1893 i = (torture_random(trsp) >> 3); in rcutorture_loop_extend()
1894 i = ((i | (i >> 3)) & RCUTORTURE_RDR_MAX_LOOPS) + 1; in rcutorture_loop_extend()
1895 for (j = 0; j < i; j++) { in rcutorture_loop_extend()
1912 int i; in rcu_torture_one_read() local
1990 i = 0; in rcu_torture_one_read()
1992 err_segs[i++] = *rtrsp1; in rcu_torture_one_read()
1993 rt_read_nsegs = i; in rcu_torture_one_read()
2124 int i; in rcu_torture_stats_print() local
2133 for (i = 0; i < RCU_TORTURE_PIPE_LEN + 1; i++) { in rcu_torture_stats_print()
2134 pipesummary[i] += READ_ONCE(per_cpu(rcu_torture_count, cpu)[i]); in rcu_torture_stats_print()
2135 batchsummary[i] += READ_ONCE(per_cpu(rcu_torture_batch, cpu)[i]); in rcu_torture_stats_print()
2138 for (i = RCU_TORTURE_PIPE_LEN; i >= 0; i--) { in rcu_torture_stats_print()
2139 if (pipesummary[i] != 0) in rcu_torture_stats_print()
2177 i > 1) { in rcu_torture_stats_print()
2186 WARN_ON_ONCE(i > 1); // Too-short grace period in rcu_torture_stats_print()
2189 for (i = 0; i < RCU_TORTURE_PIPE_LEN + 1; i++) in rcu_torture_stats_print()
2190 pr_cont(" %ld", pipesummary[i]); in rcu_torture_stats_print()
2195 for (i = 0; i < RCU_TORTURE_PIPE_LEN + 1; i++) in rcu_torture_stats_print()
2196 pr_cont(" %ld", batchsummary[i]); in rcu_torture_stats_print()
2201 for (i = 0; i < RCU_TORTURE_PIPE_LEN + 1; i++) { in rcu_torture_stats_print()
2202 pr_cont(" %d", atomic_read(&rcu_torture_wcount[i])); in rcu_torture_stats_print()
2515 int i; in rcu_torture_fwd_cb_hist() local
2518 for (i = ARRAY_SIZE(rfp->n_launders_hist) - 1; i > 0; i--) in rcu_torture_fwd_cb_hist()
2519 if (rfp->n_launders_hist[i].n_launders > 0) in rcu_torture_fwd_cb_hist()
2524 for (j = 0; j <= i; j++) { in rcu_torture_fwd_cb_hist()
2539 int i; in rcu_torture_fwd_cb_cr() local
2551 i = ((jiffies - rfp->rcu_fwd_startat) / (HZ / FWD_CBS_HIST_DIV)); in rcu_torture_fwd_cb_cr()
2552 if (i >= ARRAY_SIZE(rfp->n_launders_hist)) in rcu_torture_fwd_cb_cr()
2553 i = ARRAY_SIZE(rfp->n_launders_hist) - 1; in rcu_torture_fwd_cb_cr()
2554 rfp->n_launders_hist[i].n_launders++; in rcu_torture_fwd_cb_cr()
2555 rfp->n_launders_hist[i].launder_gp_seq = cur_ops->get_gp_seq(); in rcu_torture_fwd_cb_cr()
2683 int i; in rcu_torture_fwd_prog_cr() local
2710 for (i = 0; i < ARRAY_SIZE(rfp->n_launders_hist); i++) in rcu_torture_fwd_prog_cr()
2711 rfp->n_launders_hist[i].n_launders = 0; in rcu_torture_fwd_prog_cr()
2787 int i; in rcutorture_oom_notify() local
2799 for (i = 0; i < fwd_progress; i++) { in rcutorture_oom_notify()
2800 rcu_torture_fwd_cb_hist(&rfp[i]); in rcutorture_oom_notify()
2801 rcu_fwd_progress_check(1 + (jiffies - READ_ONCE(rfp[i].rcu_fwd_startat)) / 2); in rcutorture_oom_notify()
2806 for (i = 0; i < fwd_progress; i++) in rcutorture_oom_notify()
2807 ncbs += rcu_torture_fwd_prog_cbfree(&rfp[i]); in rcutorture_oom_notify()
2811 for (i = 0; i < fwd_progress; i++) in rcutorture_oom_notify()
2812 ncbs += rcu_torture_fwd_prog_cbfree(&rfp[i]); in rcutorture_oom_notify()
2816 for (i = 0; i < fwd_progress; i++) in rcutorture_oom_notify()
2817 ncbs += rcu_torture_fwd_prog_cbfree(&rfp[i]); in rcutorture_oom_notify()
2885 int i; in rcu_torture_fwd_prog_init() local
2925 for (i = 0; i < fwd_progress; i++) { in rcu_torture_fwd_prog_init()
2926 spin_lock_init(&rfp[i].rcu_fwd_lock); in rcu_torture_fwd_prog_init()
2927 rfp[i].rcu_fwd_cb_tail = &rfp[i].rcu_fwd_cb_head; in rcu_torture_fwd_prog_init()
2928 rfp[i].rcu_fwd_id = i; in rcu_torture_fwd_prog_init()
2934 for (i = 0; i < fwd_progress; i++) { in rcu_torture_fwd_prog_init()
2935 ret = torture_create_kthread(rcu_torture_fwd_prog, &rcu_fwds[i], fwd_prog_tasks[i]); in rcu_torture_fwd_prog_init()
2937 fwd_progress = i; in rcu_torture_fwd_prog_init()
2946 int i; in rcu_torture_fwd_prog_cleanup() local
2951 for (i = 0; i < fwd_progress; i++) in rcu_torture_fwd_prog_cleanup()
2952 torture_stop_kthread(rcu_torture_fwd_prog, fwd_prog_tasks[i]); in rcu_torture_fwd_prog_cleanup()
3018 int i; in rcu_torture_barrier() local
3026 for (i = 0; i < n_barrier_cbs; i++) in rcu_torture_barrier()
3027 wake_up(&barrier_cbs_wq[i]); in rcu_torture_barrier()
3042 i = 0; in rcu_torture_barrier()
3044 if (WARN_ON(i++ > HZ)) in rcu_torture_barrier()
3045 i = INT_MIN; in rcu_torture_barrier()
3067 int i; in rcu_torture_barrier_init() local
3090 for (i = 0; i < n_barrier_cbs; i++) { in rcu_torture_barrier_init()
3091 init_waitqueue_head(&barrier_cbs_wq[i]); in rcu_torture_barrier_init()
3093 (void *)(long)i, in rcu_torture_barrier_init()
3094 barrier_cbs_tasks[i]); in rcu_torture_barrier_init()
3104 int i; in rcu_torture_barrier_cleanup() local
3108 for (i = 0; i < n_barrier_cbs; i++) in rcu_torture_barrier_cleanup()
3110 barrier_cbs_tasks[i]); in rcu_torture_barrier_cleanup()
3167 int i; in rcu_torture_read_exit() local
3178 for (i = 0; i < read_exit_burst; i++) { in rcu_torture_read_exit()
3196 i = 0; in rcu_torture_read_exit()
3197 for (; !errexit && !READ_ONCE(read_exit_child_stop) && i < read_exit_delay; i++) in rcu_torture_read_exit()
3240 int i; in rcu_torture_cleanup() local
3265 for (i = 0; i < nrealnocbers; i++) in rcu_torture_cleanup()
3266 torture_stop_kthread(rcu_nocb_toggle, nocb_tasks[i]); in rcu_torture_cleanup()
3272 for (i = 0; i < nrealreaders; i++) in rcu_torture_cleanup()
3274 reader_tasks[i]); in rcu_torture_cleanup()
3282 for (i = 0; i < nfakewriters; i++) in rcu_torture_cleanup()
3284 fakewriter_tasks[i]); in rcu_torture_cleanup()
3319 for (i = 0; i < rt_read_nsegs; i++) { in rcu_torture_cleanup()
3320 pr_alert("\t%d: %#x ", i, err_segs[i].rt_readstate); in rcu_torture_cleanup()
3321 if (err_segs[i].rt_delay_jiffies != 0) { in rcu_torture_cleanup()
3323 err_segs[i].rt_delay_jiffies); in rcu_torture_cleanup()
3326 if (err_segs[i].rt_delay_ms != 0) { in rcu_torture_cleanup()
3328 err_segs[i].rt_delay_ms); in rcu_torture_cleanup()
3331 if (err_segs[i].rt_delay_us != 0) { in rcu_torture_cleanup()
3333 err_segs[i].rt_delay_us); in rcu_torture_cleanup()
3337 err_segs[i].rt_preempted ? "preempted" : ""); in rcu_torture_cleanup()
3425 long i; in rcu_torture_init() local
3440 for (i = 0; i < ARRAY_SIZE(torture_ops); i++) { in rcu_torture_init()
3441 cur_ops = torture_ops[i]; in rcu_torture_init()
3445 if (i == ARRAY_SIZE(torture_ops)) { in rcu_torture_init()
3449 for (i = 0; i < ARRAY_SIZE(torture_ops); i++) in rcu_torture_init()
3450 pr_cont(" %s", torture_ops[i]->name); in rcu_torture_init()
3480 for (i = 0; i < ARRAY_SIZE(rcu_tortures); i++) { in rcu_torture_init()
3481 rcu_tortures[i].rtort_mbtest = 0; in rcu_torture_init()
3482 list_add_tail(&rcu_tortures[i].rtort_free, in rcu_torture_init()
3502 for (i = 0; i < RCU_TORTURE_PIPE_LEN + 1; i++) in rcu_torture_init()
3503 atomic_set(&rcu_torture_wcount[i], 0); in rcu_torture_init()
3505 for (i = 0; i < RCU_TORTURE_PIPE_LEN + 1; i++) { in rcu_torture_init()
3506 per_cpu(rcu_torture_count, cpu)[i] = 0; in rcu_torture_init()
3507 per_cpu(rcu_torture_batch, cpu)[i] = 0; in rcu_torture_init()
3530 for (i = 0; i < nfakewriters; i++) { in rcu_torture_init()
3532 NULL, fakewriter_tasks[i]); in rcu_torture_init()
3545 for (i = 0; i < nrealreaders; i++) { in rcu_torture_init()
3546 rcu_torture_reader_mbchk[i].rtc_chkrdr = -1; in rcu_torture_init()
3547 firsterr = torture_create_kthread(rcu_torture_reader, (void *)i, in rcu_torture_init()
3548 reader_tasks[i]); in rcu_torture_init()
3567 for (i = 0; i < nrealnocbers; i++) { in rcu_torture_init()
3568 firsterr = torture_create_kthread(rcu_nocb_toggle, NULL, nocb_tasks[i]); in rcu_torture_init()