How do I get profiling to work?

Kip Macy kmacy at fsmware.com
Sat Jul 19 16:27:38 PDT 2003


When I do a config -p <configuration file>
then a make depend; make kernel - I get
linking kernel
mcount.o: In function `mcount':
mcount.o(.text+0xa): undefined reference to `_gmonparam'
mcount.o(.text+0x10): undefined reference to `_gmonparam'
mcount.o(.text+0x40): undefined reference to `user'
mcount.o(.text+0x52): undefined reference to `btrap'
mcount.o(.text+0x5b): undefined reference to `eintr'
mcount.o(.text+0x64): undefined reference to `bintr'
mcount.o(.text+0x6b): undefined reference to `bintr'
mcount.o(.text+0x75): undefined reference to `btrap'
prof_machdep.o: In function `__mcount':
prof_machdep.o(.text+0x2): undefined reference to `_gmonparam'
prof_machdep.o: In function `.mcount':
prof_machdep.o(.text+0x12): undefined reference to `_gmonparam'
*** Error code 1

What extra voodoo is neccessary to ensure that these symbols are defined?

Thanks.

			-kip



More information about the freebsd-hackers mailing list