Re: Debugging function of localcount

2017-11-14 Thread Paul Goyette
On Tue, 14 Nov 2017, Taylor R Campbell wrote: Date: Mon, 13 Nov 2017 13:59:32 +0900 From: Ryota Ozaki I'm sorry for not replying this thread. I'm back. I've revised the patch as your suggestions: http://www.netbsd.org/~ozaki-r/localcount_debug_atomic.revised.diff

Re: Debugging function of localcount

2017-11-14 Thread Taylor R Campbell
> Date: Mon, 13 Nov 2017 13:59:32 +0900 > From: Ryota Ozaki > > I'm sorry for not replying this thread. I'm back. > > I've revised the patch as your suggestions: > http://www.netbsd.org/~ozaki-r/localcount_debug_atomic.revised.diff Looks better, thanks! Couple nits: 1.

Re: Debugging function of localcount

2017-08-07 Thread Taylor R Campbell
> Date: Mon, 7 Aug 2017 13:08:35 +0900 > From: Ryota Ozaki > > Anyway I've brought another (stupid) approach that uses an atomic > counter: > http://www.netbsd.org/~ozaki-r/localcount_debug_atomic.diff > > It counts up a counter with atomic instructions along with

Re: Debugging function of localcount

2017-08-06 Thread Ryota Ozaki
On Thu, Jul 27, 2017 at 1:49 AM, Taylor R Campbell wrote: >> Date: Wed, 26 Jul 2017 18:41:36 +0900 >> From: Ryota Ozaki >> >> Oops. I thought we could use percpu_foreach in softint, but >> I was wrong. So localcount_debug_refcnt can be

Re: Debugging function of localcount

2017-07-26 Thread Taylor R Campbell
> Date: Wed, 26 Jul 2017 18:41:36 +0900 > From: Ryota Ozaki > > Oops. I thought we could use percpu_foreach in softint, but > I was wrong. So localcount_debug_refcnt can be used only > in thread contexts. And the above assertion shouldn't be > there. The proposal isn't so

Re: Debugging function of localcount

2017-07-26 Thread Ryota Ozaki
On Wed, Jul 26, 2017 at 1:34 PM, Ryota Ozaki <ozak...@netbsd.org> wrote: > (resending, please ignore if duplicated) > > Hi, > > I propose a debugging function of localcount, > localcount_debug_refcnt, which returns a total > reference count of a specifi

Debugging function of localcount

2017-07-26 Thread Ryota Ozaki
Hi, I propose a debugging function of localcount, localcount_debug_refcnt, which returns a total reference count of a specified localcount. A result of localcount_debug_refcnt isn't guaranteed to be accurate, however it's still useful for debugging purposes, for example debugging on ATF tests

Debugging function of localcount

2017-07-25 Thread Ryota Ozaki
(resending, please ignore if duplicated) Hi, I propose a debugging function of localcount, localcount_debug_refcnt, which returns a total reference count of a specified localcount. A result of localcount_debug_refcnt isn't guaranteed to be accurate, however it's still useful for debugging