Date: Sun, 12 Sep 1999 23:31:02 +0200 From: Jeroen Ruigrok/Asmodai <asmodai@wxs.nl> To: current@freebsd.org Subject: profiling on kernels Message-ID: <19990912233102.L83446@daemon.ninth-circle.org>
next in thread | raw e-mail | index | archive | help
Could someone please look into compiling kernels with profiling? [this is done by config -p on the kernel config file] It currently fails on: cc -c -O -pipe -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -ansi -g -nostdinc -I- -I. -I../.. -I../../../include -DGPROF -DKERNEL -include opt_global.h -elf -malign-functions=4 -pg vers.c linking kernel.debug prof_machdep.o: In function `__mcount': prof_machdep.o(.text+0x2): undefined reference to `_gmonparam' prof_machdep.o(.text+0x12): undefined reference to `_gmonparam' mcount.o: In function `mcount': /usr/src/sys/compile/CELESTIAL/../../libkern/mcount.c(.text+0xa): undefined reference to `_gmonparam' /usr/src/sys/compile/CELESTIAL/../../libkern/mcount.c(.text+0x10): undefined reference to `_gmonparam' /usr/src/sys/compile/CELESTIAL/../../libkern/mcount.c(.text+0x4a): undefined reference to `user' /usr/src/sys/compile/CELESTIAL/../../libkern/mcount.c(.text+0x5c): undefined reference to `btrap' /usr/src/sys/compile/CELESTIAL/../../libkern/mcount.c(.text+0x65): undefined reference to `eintr' /usr/src/sys/compile/CELESTIAL/../../libkern/mcount.c(.text+0x6e): undefined reference to `bintr' /usr/src/sys/compile/CELESTIAL/../../libkern/mcount.c(.text+0x75): undefined reference to `bintr' /usr/src/sys/compile/CELESTIAL/../../libkern/mcount.c(.text+0x7d): undefined reference to `btrap' *** Error code 1 1 error My environment: FreeBSD celestial.ninth-circle.org 4.0-CURRENT FreeBSD 4.0-CURRENT #2: Sun Sep 12 22:40:15 CEST 1999 asmodai@celestial.ninth-circle.org:/usr/src/sys/compile/CELESTIAL i386 Also, this still has relevance to PR kern/9413, but I haven't had time to test the patches supplied. I will do that tomorrow night. -- Jeroen Ruigrok van der Werven/Asmodai asmodai(at)wxs.nl The BSD Programmer's Documentation Project <http://home.wxs.nl/~asmodai> Network/Security Specialist BSD: Technical excellence at its best No man is good enough to govern another man without the other's consent. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990912233102.L83446>