mirror of
https://git.FreeBSD.org/src.git
synced 2024-10-19 02:29:40 +00:00
Added -DKERNEL and added support for kernel profiling.
Reviewed by: Bruce
This commit is contained in:
parent
804cf603f2
commit
03b6d659e5
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=2799
@ -1,8 +1,8 @@
|
||||
# @(#)Makefile 7.9 (Berkeley) 6/1/93
|
||||
# $Id$
|
||||
# $Id: Makefile,v 1.2 1994/08/02 07:43:40 davidg Exp $
|
||||
|
||||
LIB= kern
|
||||
CFLAGS+= -I${.CURDIR} -I${.CURDIR}/..
|
||||
CFLAGS+= -I${.CURDIR} -I${.CURDIR}/.. -DKERNEL
|
||||
SRCS= adddi3.c anddi3.c ashldi3.c ashrdi3.c bcmp.c cmpdi2.c divdi3.c \
|
||||
ffs.c iordi3.c locc.c lshldi3.c lshrdi3.c mcount.c moddi3.c \
|
||||
muldi3.c negdi2.c notdi2.c qdivrem.c random.c rindex.c scanc.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;
|
||||
|
Loading…
Reference in New Issue
Block a user