summaryrefslogtreecommitdiffstats
path: root/lib/libc/gmon/gmon.c
diff options
context:
space:
mode:
authorsimokawa <simokawa@FreeBSD.org>1999-07-16 07:05:34 +0000
committersimokawa <simokawa@FreeBSD.org>1999-07-16 07:05:34 +0000
commit23b740ca171475f8ba7a0ecd9e95c5dcb7261a2b (patch)
treecda724d038c1b72c1c56eb70106647915b89f9fb /lib/libc/gmon/gmon.c
parent1e5433865ca2fbb94fc1358b63b87229755f6840 (diff)
downloadFreeBSD-src-23b740ca171475f8ba7a0ecd9e95c5dcb7261a2b.zip
FreeBSD-src-23b740ca171475f8ba7a0ecd9e95c5dcb7261a2b.tar.gz
Enable gmon/mcount on alpha.
Diffstat (limited to 'lib/libc/gmon/gmon.c')
-rw-r--r--lib/libc/gmon/gmon.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/lib/libc/gmon/gmon.c b/lib/libc/gmon/gmon.c
index f477822..267a469 100644
--- a/lib/libc/gmon/gmon.c
+++ b/lib/libc/gmon/gmon.c
@@ -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
OpenPOWER on IntegriCloud