Subject: Re: kern/13232: POOL_DIAGNOSTIC && pool.h
To: Bill Sommerfeld <sommerfeld@orchard.arlington.ma.us>
From: David Brownlee <abs@netbsd.org>
List: tech-kern
Date: 06/20/2001 11:18:06
On Tue, 19 Jun 2001, Bill Sommerfeld wrote:

> they may be ignored in the called routine, but the caller still has to
> load up argument registers / push arguments containing them; that's
> where the performance hit was..
>
> pool_get is called *VERY* frequently.

	How about if POOL_DIAGNOSTIC is set pool_get is a macro which
	sets an extra an extra bit in flag. In the non POOL_DIAGNOSTIC
	case the kernel routines would ignore the flag - no overhead. In
	the POOL_DIAGNOSTIC case they would check it to confirm the
	file/line arguments have been passed.

	That should allow any combination of {non ,}POOL_DIAGNOSTIC
	kernel and LKM to work, at the cost of a bit in the wrong place :)

-- 
		David/absolute		-- www.netbsd.org: No hype required --