Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 14 Mar 2006 22:51:52 +0900
From:      gnn@freebsd.org
To:        freebsd-current@freebsd.org
Subject:   Problems compiling with a profiled kernel?
Message-ID:  <m2k6axcex3.wl%gnn@neville-neil.com>

next in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?m2k6axcex3.wl%gnn>