From owner-cvs-src@FreeBSD.ORG Wed Feb 16 04:59:10 2005 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 12D4916A4CE; Wed, 16 Feb 2005 04:59:10 +0000 (GMT) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id E62F543D2D; Wed, 16 Feb 2005 04:59:09 +0000 (GMT) (envelope-from bright@elvis.mu.org) Received: by elvis.mu.org (Postfix, from userid 1192) id C86495C89D; Tue, 15 Feb 2005 20:59:09 -0800 (PST) Date: Tue, 15 Feb 2005 20:59:09 -0800 From: Alfred Perlstein To: Bosko Milekic Message-ID: <20050216045909.GP32955@elvis.mu.org> References: <200502152217.j1FMH7Qf054657@repoman.freebsd.org> <20050215224018.GJ32955@elvis.mu.org> <421287CD.1080106@elischer.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.1i cc: cvs-src@freebsd.org cc: src-committers@freebsd.org cc: Julian Elischer cc: cvs-all@freebsd.org cc: Bosko Milekic Subject: Re: cvs commit: src/sys/vm memguard.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Feb 2005 04:59:10 -0000 * Bosko Milekic [050215 17:35] wrote: > > I'd like to get MemGuard to accept a boot-time tunable way of > configuring which malloc type(s) to override, but this is yet to be > implemented. Similarly, it would be worth getting MemGuard to also > override certain UMA zone allocations. I think you can do this like so: Do a getenv to get the tunable string, then traverse the malloc_type list setting a flag in the struct, then when you malloc you just test the flag. It'd be a little bit of parsing in the kernel, but not much more than strsep. -Alfred