summaryrefslogtreecommitdiffstats
path: root/lib/libc/gmon
diff options
context:
space:
mode:
authorpaul <paul@FreeBSD.org>1994-09-15 16:00:41 +0000
committerpaul <paul@FreeBSD.org>1994-09-15 16:00:41 +0000
commit0a8a4cff4f1045c0d43f7187c710a932f90104e8 (patch)
treeea0e9a3d89f041ed5437507e1dcd7d2bd87447c1 /lib/libc/gmon
parent8b7943ca6b92fde4982a2c32d5567cc3e6d62ff8 (diff)
downloadFreeBSD-src-0a8a4cff4f1045c0d43f7187c710a932f90104e8.zip
FreeBSD-src-0a8a4cff4f1045c0d43f7187c710a932f90104e8.tar.gz
Added support for kernel profiling to mcount.c
Diffstat (limited to 'lib/libc/gmon')
-rw-r--r--lib/libc/gmon/mcount.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/libc/gmon/mcount.c b/lib/libc/gmon/mcount.c
index 523217d..13e4df9 100644
--- a/lib/libc/gmon/mcount.c
+++ b/lib/libc/gmon/mcount.c
@@ -37,6 +37,9 @@ static char sccsid[] = "@(#)mcount.c 8.1 (Berkeley) 6/4/93";
#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
@@ -62,6 +65,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