kernel profiling broken?
Sascha Wildner
saw at online.de
Sat Jul 30 02:22:43 PDT 2005
Hi,
my last commit to sys/conf/Makefile.i386 plus the included patch to
asmacros.h (of which I'm not sure if it is the correct way) enable me to
build a profiling kernel. But then, gprof gives me:
% gprof gmon.out
gprof: gmon.out: bad format
Sascha
Index: sys/i386/include/asmacros.h
===================================================================
RCS file: /home/dcvs/src/sys/i386/include/asmacros.h,v
retrieving revision 1.7
diff -u -r1.7 asmacros.h
--- sys/i386/include/asmacros.h 5 May 2004 19:26:42 -0000 1.7
+++ sys/i386/include/asmacros.h 30 Jul 2005 09:01:07 -0000
@@ -57,7 +57,7 @@
* to a possibly-modified form that will be invisible to C programs.
*/
#define CNAME(csym) csym
-#define HIDENAME(asmsym) __CONCAT(.,asmsym)
+#define HIDENAME(asmsym) .asmsym
#define ALIGN_PAGE .p2align PAGE_SHIFT /* page alignment */
#define ALIGN_DATA .p2align 2 /* 4 byte alignment, zero filled */
More information about the Kernel
mailing list