Enable gmon/mcount on alpha.

This commit is contained in:
Hidetoshi Shimokawa 1999-07-16 07:05:34 +00:00
parent 480d03cbdd
commit daa2e8d835
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=48838
2 changed files with 3 additions and 13 deletions

View file

@ -35,8 +35,6 @@
static char sccsid[] = "@(#)gmon.c 8.1 (Berkeley) 6/4/93";
#endif
#ifndef __alpha__
#include <sys/param.h>
#include <sys/time.h>
#include <sys/gmon.h>
@ -48,7 +46,7 @@ static char sccsid[] = "@(#)gmon.c 8.1 (Berkeley) 6/4/93";
#include <fcntl.h>
#include <unistd.h>
#if defined(__ELF__)
#if defined(__ELF__) && defined(i386)
extern char *minbrk asm (".minbrk");
#else
extern char *minbrk asm ("minbrk");
@ -233,8 +231,7 @@ moncontrol(mode)
if (mode) {
/* start */
profil((char *)p->kcount, p->kcountsize, (int)p->lowpc,
s_scale);
profil((char *)p->kcount, p->kcountsize, p->lowpc, s_scale);
p->state = GMON_PROF_ON;
} else {
/* stop */
@ -262,6 +259,3 @@ hertz()
return(0);
return (1000000 / tim.it_interval.tv_usec);
}
#endif

View file

@ -36,11 +36,9 @@
static char sccsid[] = "@(#)mcount.c 8.1 (Berkeley) 6/4/93";
#endif
static const char rcsid[] =
"$Id: mcount.c,v 1.13 1998/07/14 05:09:41 bde Exp $";
"$Id: mcount.c,v 1.14 1998/09/05 07:57:43 jb Exp $";
#endif
#ifndef __alpha__
#include <sys/param.h>
#include <sys/gmon.h>
#ifdef KERNEL
@ -325,5 +323,3 @@ mexitcount(selfpc)
}
}
#endif /* GUPROF */
#endif /* !__NETBSD_SYSCALLS */