From owner-freebsd-current@FreeBSD.ORG Tue Mar 14 13:52:29 2006 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A1CAA16A420 for ; Tue, 14 Mar 2006 13:52:29 +0000 (UTC) (envelope-from gnn@neville-neil.com) Received: from mrout2.yahoo.com (mrout2.yahoo.com [216.145.54.172]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2F32A43D48 for ; Tue, 14 Mar 2006 13:52:29 +0000 (GMT) (envelope-from gnn@neville-neil.com) Received: from minion.local.neville-neil.com (proxy8.corp.yahoo.com [216.145.48.13]) by mrout2.yahoo.com (8.13.4/8.13.4/y.out) with ESMTP id k2EDq1oA074224 for ; Tue, 14 Mar 2006 05:52:01 -0800 (PST) Date: Tue, 14 Mar 2006 22:51:52 +0900 Message-ID: From: gnn@freebsd.org To: freebsd-current@freebsd.org User-Agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (=?ISO-8859-4?Q?Shij=F2?=) APEL/10.6 Emacs/22.0.50 (i386-apple-darwin8.5.1) MULE/5.0 (SAKAKI) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Subject: Problems compiling with a profiled kernel? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Mar 2006 13:52:29 -0000 Howdy, On -CURRENT a: config -p KERNNAME generates a kernel that won't build because in gmon.h the #ifdef is for GUPROF and not GPROF. I don't know that code at all, so I'd like to know if this is the right diff: @@ -200,7 +200,7 @@ #ifdef _KERNEL -#ifdef GUPROF +#ifdef GPROF #define CALIB_SCALE 1000 #define KCOUNT(p,index) \ @@ -215,12 +215,12 @@ void startguprof(struct gmonparam *p); void stopguprof(struct gmonparam *p); -#else /* !GUPROF */ +#else /* !GPROF */ #define startguprof(p) #define stopguprof(p) -#endif /* GUPROF */ +#end Later George