Home
last modified time | relevance | path

Searched refs:gp_seq (Results 1 – 13 of 13) sorted by relevance

/linux/include/trace/events/
H A Drcu.h71 TP_PROTO(const char *rcuname, unsigned long gp_seq, const char *gpevent),
73 TP_ARGS(rcuname, gp_seq, gpevent),
77 __field(long, gp_seq)
83 __entry->gp_seq = (long)gp_seq;
88 __entry->rcuname, __entry->gp_seq, __entry->gpevent)
109 TP_PROTO(const char *rcuname, unsigned long gp_seq,
113 TP_ARGS(rcuname, gp_seq, gp_seq_req, level, grplo, grphi, gpevent),
117 __field(long, gp_seq)
127 __entry->gp_seq = (long)gp_seq;
136 __entry->rcuname, (long)__entry->gp_seq, (long)__entry->gp_seq_req, __entry->level,
[all …]
/linux/kernel/rcu/
H A Dtiny.c35 unsigned long gp_seq; /* Grace-period counter. */ member
42 .gp_seq = 0 - 300UL,
61 WRITE_ONCE(rcu_ctrlblk.gp_seq, rcu_ctrlblk.gp_seq + 2); in rcu_qs()
157 WRITE_ONCE(rcu_ctrlblk.gp_seq, rcu_ctrlblk.gp_seq + 2); in synchronize_rcu()
218 return READ_ONCE(rcu_ctrlblk.gp_seq); in get_state_synchronize_rcu()
228 unsigned long gp_seq = get_state_synchronize_rcu(); in start_poll_synchronize_rcu() local
234 return gp_seq; in start_poll_synchronize_rcu()
245 return oldstate == RCU_GET_STATE_COMPLETED || READ_ONCE(rcu_ctrlblk.gp_seq) ! in poll_state_synchronize_rcu()
[all...]
H A Dtree_stall.h200 rdp->rcu_iw_gp_seq = rnp->gp_seq; in rcu_iw_handler()
338 static void rcu_dump_cpu_stacks(unsigned long gp_seq) in rcu_dump_cpu_stacks() argument
347 if (gp_seq != data_race(rcu_state.gp_seq)) { in rcu_dump_cpu_stacks()
430 if (rsrp->gp_seq != rdp->gp_seq) in print_cpu_stat_info()
477 ticks_value = rcu_seq_ctr(rcu_state.gp_seq - rdp->gp_seq); in print_cpu_stall_info()
484 delta = rcu_seq_ctr(rdp->mynode->gp_seq - rdp->rcu_iw_gp_seq); in print_cpu_stall_info()
521 (long)rcu_seq_current(&rcu_state.gp_seq), in rcu_check_gp_kthread_starvation()
564 (long)rcu_seq_current(&rcu_state.gp_seq), in rcu_check_gp_kthread_expired_fqs_timer()
573 static void print_other_cpu_stall(unsigned long gp_seq, unsigned long gps) in print_other_cpu_stall() argument
616 (long)rcu_seq_current(&rcu_state.gp_seq), totqlen, in print_other_cpu_stall()
[all …]
H A Drcu.h527 void rcu_tasks_get_gp_data(int *flags, unsigned long *gp_seq);
532 void rcu_tasks_rude_get_gp_data(int *flags, unsigned long *gp_seq);
536 void rcu_tasks_trace_get_gp_data(int *flags, unsigned long *gp_seq);
568 void rcutorture_get_gp_data(int *flags, unsigned long *gp_seq);
576 static inline void rcutorture_get_gp_data(int *flags, unsigned long *gp_seq) in rcutorture_get_gp_data() argument
579 *gp_seq = 0; in rcutorture_get_gp_data()
597 unsigned long *gp_seq) in srcutorture_get_gp_data() argument
600 *gp_seq = sp->srcu_idx; in srcutorture_get_gp_data()
606 unsigned long *gp_seq);
H A Drcu_segcblist.c241 BUILD_BUG_ON(RCU_NEXT_TAIL + 1 != ARRAY_SIZE(rsclp->gp_seq)); in rcu_segcblist_init()
242 BUILD_BUG_ON(ARRAY_SIZE(rsclp->tails) != ARRAY_SIZE(rsclp->gp_seq)); in rcu_segcblist_init()
316 *lp = rsclp->gp_seq[RCU_WAIT_TAIL]; in rcu_segcblist_nextgp()
482 if (ULONG_CMP_LT(seq, rsclp->gp_seq[i])) in rcu_segcblist_advance()
507 rsclp->gp_seq[j] = rsclp->gp_seq[i]; in rcu_segcblist_advance()
544 ULONG_CMP_LT(rsclp->gp_seq[i], seq)) in rcu_segcblist_accelerate()
584 rsclp->gp_seq[i] = seq; in rcu_segcblist_accelerate()
H A Dtree.h45 unsigned long gp_seq; /* Track rsp->gp_seq. */ member
167 unsigned long gp_seq; /* Track rdp->gp_seq counter */ member
180 unsigned long gp_seq; /* Track rsp->gp_seq counter. */ member
350 unsigned long gp_seq ____cacheline_internodealigned_in_smp;
H A Dtree_nocb.h184 return &rnp->nocb_gp_wq[rcu_seq_ctr(rnp->gp_seq) & 0x1]; in rcu_nocb_gp_get()
469 rcu_seq_done(&rdp->mynode->gp_seq, cur_gp_seq)) { in rcu_nocb_try_bypass()
580 rcu_seq_done(&rdp->mynode->gp_seq, cur_gp_seq)) { in __call_rcu_nocb_wake()
737 rcu_seq_done(&rnp->gp_seq, cur_gp_seq))) { in nocb_gp_wait()
811 rcu_seq_done(&rnp->gp_seq, wait_gp_seq) || in nocb_gp_wait()
928 rcu_seq_done(&rnp->gp_seq, cur_gp_seq) && in nocb_cb_wait()
1575 sprintf(bufw, "%ld", rsclp->gp_seq[RCU_WAIT_TAIL]); in show_rcu_nocb_state()
1576 sprintf(bufr, "%ld", rsclp->gp_seq[RCU_NEXT_READY_TAIL]); in show_rcu_nocb_state()
H A Dtasks.h1275 void rcu_tasks_get_gp_data(int *flags, unsigned long *gp_seq) in rcu_tasks_get_gp_data() argument
1278 *gp_seq = rcu_seq_current(&rcu_tasks.tasks_gp_seq); in rcu_tasks_get_gp_data()
1442 void rcu_tasks_rude_get_gp_data(int *flags, unsigned long *gp_seq) in rcu_tasks_rude_get_gp_data() argument
1445 *gp_seq = rcu_seq_current(&rcu_tasks_rude.tasks_gp_seq); in rcu_tasks_rude_get_gp_data()
2110 void rcu_tasks_trace_get_gp_data(int *flags, unsigned long *gp_seq) in rcu_tasks_trace_get_gp_data() argument
2113 *gp_seq = rcu_seq_current(&rcu_tasks_trace.tasks_gp_seq); in rcu_tasks_trace_get_gp_data()
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dmap_kptr.c121 long gp_seq = READ_ONCE(rcu->bss->gp_seq); in kern_sync_rcu_tasks_trace() local
129 while (gp_seq == READ_ONCE(rcu->bss->gp_seq)) in kern_sync_rcu_tasks_trace()
/linux/tools/testing/selftests/bpf/progs/
H A Drcu_tasks_trace_gp.c13 long gp_seq; variable
32 __sync_add_and_fetch(&gp_seq, 1); in rcu_tasks_trace_postgp()
/linux/include/linux/
H A Drcu_segcblist.h193 unsigned long gp_seq[RCU_CBLIST_NSEGS]; member
/linux/Documentation/RCU/Design/Data-Structures/
H A DData-Structures.rst272 1 unsigned long gp_seq;
274 RCU grace periods are numbered, and the ``->gp_seq`` field contains the
278 ``->gp_seq`` are zero, then RCU is idle. Any other value in the bottom
282 There are ``->gp_seq`` fields in the ``rcu_node`` and ``rcu_data``
383 1 unsigned long gp_seq;
386 The ``rcu_node`` structures' ``->gp_seq`` fields are the counterparts of
389 two bits of a given ``rcu_node`` structure's ``->gp_seq`` field is zero,
392 The ``>gp_seq`` field of each ``rcu_node`` structure is updated at the
397 request is considered fulfilled when the value of the ``->gp_seq`` field
404 | very long time. Won't wrapping of the ``->gp_seq`` field cause |
[all …]
/linux/Documentation/RCU/Design/Memory-Ordering/
H A DTree-RCU-Memory-Ordering.rst341 advance the ``rcu_state`` structure's ``->gp_seq`` grace-period-number
369 breadth-first, setting each ``rcu_node`` structure's ``->gp_seq`` field
379 ``rcu_state`` structure's ``->gp_seq`` field) before setting each leaf
380 ``rcu_node`` structure's ``->gp_seq`` field, each CPU's observation of
436 | beginning of the grace period (the advancing of ``->gp_seq`` from |
566 advancing all the ``->gp_seq`` fields, then it advances the
567 ``rcu_state`` structure's ``->gp_seq`` field. The ordering effects are
586 | once the ``rcu_state`` structure's ``->gp_seq`` field has been |
595 Once a given CPU's leaf ``rcu_node`` structure's ``->gp_seq`` field has