Re: [PATCH v6 2/4] rcu/segcblist: Add counters to segcblist datastructure

2020-10-14 Thread joel
On Tue, Oct 13, 2020 at 01:20:08AM +0200, Frederic Weisbecker wrote: > On Wed, Sep 23, 2020 at 11:22:09AM -0400, Joel Fernandes (Google) wrote: > > +/* Return number of callbacks in a segment of the segmented callback list. > > */ > > +static void rcu_segcblist_add_seglen(struct rcu_segcblist *rsc

Re: [PATCH v6 2/4] rcu/segcblist: Add counters to segcblist datastructure

2020-10-14 Thread joel
On Tue, Oct 13, 2020 at 01:20:08AM +0200, Frederic Weisbecker wrote: > On Wed, Sep 23, 2020 at 11:22:09AM -0400, Joel Fernandes (Google) wrote: > > +/* Return number of callbacks in a segment of the segmented callback list. > > */ > > +static void rcu_segcblist_add_seglen(struct rcu_segcblist *rsc

Re: [PATCH v6 2/4] rcu/segcblist: Add counters to segcblist datastructure

2020-10-12 Thread Frederic Weisbecker
On Wed, Sep 23, 2020 at 11:22:09AM -0400, Joel Fernandes (Google) wrote: > +/* Return number of callbacks in a segment of the segmented callback list. */ > +static void rcu_segcblist_add_seglen(struct rcu_segcblist *rsclp, int seg, > long v) > +{ > +#ifdef CONFIG_RCU_NOCB_CPU > + smp_mb__befor

[PATCH v6 2/4] rcu/segcblist: Add counters to segcblist datastructure

2020-09-23 Thread Joel Fernandes (Google)
Add counting of segment lengths of segmented callback list. This will be useful for a number of things such as knowing how big the ready-to-execute segment have gotten. The immediate benefit is ability to trace how the callbacks in the segmented callback list change. Also this patch remove hacks