Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Sep 2000 09:05:59 +0930
From:      Greg Lehey <grog@lemis.com>
To:        Bruce Evans <bde@zeta.org.au>
Cc:        Doug Rabson <dfr@nlsystems.com>, John Baldwin <jhb@pike.osd.bsdi.com>, Doug Rabson <dfr@FreeBSD.org>, cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/sys/sys ktr.h
Message-ID:  <20000912090559.M19431@wantadilla.lemis.com>
In-Reply-To: <Pine.BSF.4.21.0009112012540.955-100000@besplex.bde.org>; from bde@zeta.org.au on Mon, Sep 11, 2000 at 08:36:46PM %2B1100
References:  <Pine.BSF.4.21.0009110944090.49106-100000@salmon.nlsystems.com> <Pine.BSF.4.21.0009112012540.955-100000@besplex.bde.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Monday, 11 September 2000 at 20:36:46 +1100, Bruce Evans wrote:
> On Mon, 11 Sep 2000, Doug Rabson wrote:
>> On Mon, 11 Sep 2000, Bruce Evans wrote:

>>> The ktr macros are inefficient, so another division wouldn't be
>>> much more of a disaster for performance.
>>
>> The KTR_EXTEND ones are very slow but the non-extended ones are a
>> bit more reasonable.
>
> The KTR_EXTEND version of _TR would be reasonable if it used
> strncpy() instead of snprintf().

Not really.  The whole reason for KTR_EXTEND is to be able to see
something useful in gdb, which can't apply the parameters to printf.
If you're not using gdb, you don't need KTR_EXTEND.

Greg
--
Finger grog@lemis.com for PGP public key
See complete headers for address and phone numbers


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000912090559.M19431>