summaryrefslogtreecommitdiffstats
path: root/sys/libkern/mcount.c
diff options
context:
space:
mode:
authorpaul <paul@FreeBSD.org>1994-09-15 15:41:48 +0000
committerpaul <paul@FreeBSD.org>1994-09-15 15:41:48 +0000
commit8b7943ca6b92fde4982a2c32d5567cc3e6d62ff8 (patch)
treea6aa5f29b988ad3ceef8ccf22904f20584be53fb /sys/libkern/mcount.c
parent7f2bca9909c6dd21504440626a99811b51a7020f (diff)
downloadFreeBSD-src-8b7943ca6b92fde4982a2c32d5567cc3e6d62ff8.zip
FreeBSD-src-8b7943ca6b92fde4982a2c32d5567cc3e6d62ff8.tar.gz
Added -DKERNEL and added support for kernel profiling.
Reviewed by: Bruce
Diffstat (limited to 'sys/libkern/mcount.c')
-rw-r--r--sys/libkern/mcount.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/libkern/mcount.c b/sys/libkern/mcount.c
index fd8e6a3..f9942e8 100644
--- a/sys/libkern/mcount.c
+++ b/sys/libkern/mcount.c
@@ -30,11 +30,14 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id$
+ * $Id: mcount.c,v 1.2 1994/08/02 07:44:09 davidg Exp $
*/
#include <sys/param.h>
#include <sys/gmon.h>
+#ifdef KERNEL
+#include <i386/include/cpufunc.h>
+#endif
/*
* mcount is called on entry to each function compiled with the profiling
@@ -60,6 +63,7 @@ _MCOUNT_DECL(frompc, selfpc) /* _mcount; may be static, inline, etc */
register long toindex;
#ifdef KERNEL
register int s;
+ u_long save_eflags;
#endif
p = &_gmonparam;
OpenPOWER on IntegriCloud