Re: [PATCH RFC] rcu/segcblist: Add counters to segcblist datastructure

2020-07-29 Thread Joel Fernandes
On Mon, Jul 20, 2020 at 07:29:23AM -0700, Davidlohr Bueso wrote: > On Sat, 18 Jul 2020, Joel Fernandes (Google) wrote: > > > +/* Move from's segment length to to's segment. */ > > +static void rcu_segcblist_move_seglen(struct rcu_segcblist *rsclp, int > > from, int to) > > +{ > > + long len = r

Re: [PATCH RFC] rcu/segcblist: Add counters to segcblist datastructure

2020-07-20 Thread Davidlohr Bueso
On Sat, 18 Jul 2020, Joel Fernandes (Google) wrote: +/* Move from's segment length to to's segment. */ +static void rcu_segcblist_move_seglen(struct rcu_segcblist *rsclp, int from, int to) +{ + long len = rcu_segcblist_get_seglen(rsclp, from); + + if (!len || from == to) +

[PATCH RFC] rcu/segcblist: Add counters to segcblist datastructure

2020-07-18 Thread Joel Fernandes (Google)
From: Joel Fernandes 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. Signed