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

2020-07-28 Thread Boqun Feng
On Mon, Jul 27, 2020 at 07:03:23PM -0400, Joel Fernandes wrote: > On Mon, Jul 27, 2020 at 09:49:25PM +0800, Boqun Feng wrote: > [...] > > So C11 features are available to gnu89 as extensions, also I tried to > > compile the following code with -std=gnu89: > > > > #include > > > > typede

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

2020-07-27 Thread Joel Fernandes
On Mon, Jul 27, 2020 at 09:49:25PM +0800, Boqun Feng wrote: [...] > So C11 features are available to gnu89 as extensions, also I tried to > compile the following code with -std=gnu89: > > #include > > typedef struct { > int a; > } atomic_t; > > void g(void

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

2020-07-27 Thread Boqun Feng
On Fri, Jul 24, 2020 at 03:34:46PM -0400, Joel Fernandes wrote: > On Mon, Jul 20, 2020 at 4:22 AM wrote: > > > > Hi Joel, > > Sorry for the late reply as I was on vacation last several days. > > > > > On Sun, Jul 19, 2020 at 12:18:41AM -0400, Joel Fernandes wrote: > > > On Sun, Jul 19, 2020 at 1

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

2020-07-24 Thread Joel Fernandes
On Mon, Jul 20, 2020 at 4:22 AM wrote: > > Hi Joel, Sorry for the late reply as I was on vacation last several days. > > On Sun, Jul 19, 2020 at 12:18:41AM -0400, Joel Fernandes wrote: > > On Sun, Jul 19, 2020 at 12:06:28AM -0400, Joel Fernandes wrote: > > > On Sat, Jul 18, 2020 at 11:55 PM Joel

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

2020-07-20 Thread boqun . feng
Hi Joel, On Sun, Jul 19, 2020 at 12:18:41AM -0400, Joel Fernandes wrote: > On Sun, Jul 19, 2020 at 12:06:28AM -0400, Joel Fernandes wrote: > > On Sat, Jul 18, 2020 at 11:55 PM Joel Fernandes (Google) > > wrote: > > [...] > > > /* If no callbacks moved, nothing more need be done. */ > > >

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

2020-07-18 Thread Joel Fernandes
On Sun, Jul 19, 2020 at 12:06:28AM -0400, Joel Fernandes wrote: > On Sat, Jul 18, 2020 at 11:55 PM Joel Fernandes (Google) > wrote: > [...] > > /* If no callbacks moved, nothing more need be done. */ > > @@ -419,10 +494,9 @@ void rcu_segcblist_advance(struct rcu_segcblist > > *rsclp, unsi

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

2020-07-18 Thread Joel Fernandes
On Sat, Jul 18, 2020 at 11:55 PM Joel Fernandes (Google) wrote: [...] > /* If no callbacks moved, nothing more need be done. */ > @@ -419,10 +494,9 @@ void rcu_segcblist_advance(struct rcu_segcblist *rsclp, > unsigned long seq) > * callbacks. The overall effect is to copy down t

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

2020-07-18 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. Signed-off-by: Joel Fernandes