Problems compiling with a profiled kernel?

gnn at freebsd.org gnn at freebsd.org
Tue Mar 14 13:52:29 UTC 2006


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



More information about the freebsd-current mailing list