Problems compiling with a profiled kernel?

From: <gnn_at_freebsd.org>
Date: Tue, 14 Mar 2006 22:51:52 +0900
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:

_at__at_ -200,7 +200,7 _at__at_
 
 #ifdef _KERNEL
 
-#ifdef GUPROF
+#ifdef GPROF
 
 #define        CALIB_SCALE     1000
 #define        KCOUNT(p,index) \
_at__at_ -215,12 +215,12 _at__at_
 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
Received on Tue Mar 14 2006 - 12:52:29 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:53 UTC