Date: Thu, 24 Oct 1996 10:56:27 -0700 (MST) From: Terry Lambert <terry@lambert.org> To: bde@zeta.org.au (Bruce Evans) Cc: bde@FreeBSD.ORG, current@FreeBSD.ORG, julian@whistle.com Subject: Re: Can't compile profiled kernel Message-ID: <199610241756.KAA12345@phaeton.artisoft.com> In-Reply-To: <199610240953.TAA06113@godzilla.zeta.org.au> from "Bruce Evans" at Oct 24, 96 07:53:51 pm
next in thread | previous in thread | raw e-mail | index | archive | help
> >where do these come from? > > These are inline functions defined in <machine/cpufunc.h>. > <machine/cpufunc.h> is included by <sys/systm.h>. I removed the include > of <sys/systm.h> in mcount.c because it is unused. It is only unused > in the !GUPROF case. Oops. (There are some macros which expand to > read_eflags() etc. in the !GUPROF case but the GUPROF case requires > assembler stubs which have to disable interrupts, so the C code doesn't > need to disable interrupts again.) > > This is easy to fix by including <sys/systm.h> again or using option > GUPROF (config with -pp). I think someone wants you to test GUPROF :-). Ugh. Please add: #ifdef GUPROF #include <sys/systm.h> #endif /* !GUPROF*/ to mcount.c. The code should compile independent of the compile time options selected. Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199610241756.KAA12345>