Re: Debugging function of localcount

2017-11-14 Thread Ryota Ozaki
On Wed, Nov 15, 2017 at 3:13 AM, 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.dif

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 Looks better, thanks! Co

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. Still need to volatil

Re: Debugging function of localcount

2017-11-12 Thread Ryota Ozaki
On Tue, Aug 8, 2017 at 3:16 AM, Taylor R Campbell wrote: >> 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 w

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 localcount > if LOCKDEBUG ena

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 used only >> in thread contexts. And the above assertion shou

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 much worthwhile ;-< You

Re: Debugging function of localcount

2017-07-26 Thread Ryota Ozaki
On Wed, Jul 26, 2017 at 1:34 PM, Ryota Ozaki 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 specified localcount. > > A result of lo

Debugging function of localcount

2017-07-25 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

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