From owner-cvs-src@FreeBSD.ORG Tue Sep 23 12:13:39 2003 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 8061F16A4B3; Tue, 23 Sep 2003 12:13:39 -0700 (PDT) Received: from herring.nlsystems.com (mailgate.nlsystems.com [80.177.232.242]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1D77E43FE5; Tue, 23 Sep 2003 12:13:38 -0700 (PDT) (envelope-from dfr@nlsystems.com) Received: from [10.0.0.2] (herring.nlsystems.com [10.0.0.2]) by herring.nlsystems.com (8.12.9/8.12.8) with ESMTP id h8NJDNY9001695; Tue, 23 Sep 2003 20:13:23 +0100 (BST) (envelope-from dfr@nlsystems.com) From: Doug Rabson To: Peter Wemm In-Reply-To: <200309222132.h8MLWnwI044896@repoman.freebsd.org> References: <200309222132.h8MLWnwI044896@repoman.freebsd.org> Content-Type: text/plain Message-Id: <1064344403.1428.1.camel@herring.nlsystems.com> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.0 Date: 23 Sep 2003 20:13:23 +0100 Content-Transfer-Encoding: 7bit X-Spam-Status: No, hits=-4.9 required=5.0 tests=EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES, REPLY_WITH_QUOTES,USER_AGENT_XIMIAN version=2.55 X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp) cc: cvs-src@FreeBSD.org cc: src-committers@FreeBSD.org cc: cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/sys kobj.h 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: Tue, 23 Sep 2003 19:13:39 -0000 You can make the instrumented version even smaller by unconditionally incrementing the 'hit' counter and in kobj_lookup_method, decrementing the false hit and incrementing the 'miss' counter. On Mon, 2003-09-22 at 22:32, Peter Wemm wrote: > peter 2003/09/22 14:32:49 PDT > > FreeBSD src repository > > Modified files: > sys/sys kobj.h > Log: > Simplify the KOBJOPLOOKUP macro for the non-debug case so that gcc's > heuristics do not overestimate the code size quite so much. > > Revision Changes Path > 1.8 +13 -7 src/sys/sys/kobj.h