Added support for kernel profiling to mcount.c

This commit is contained in:
Paul Richards 1994-09-15 16:00:41 +00:00
parent 03b6d659e5
commit 691071ff1c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=2800

View File

@ -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;