From daa2e8d8358c56d7aee625e956254da04442d2a3 Mon Sep 17 00:00:00 2001 From: Hidetoshi Shimokawa Date: Fri, 16 Jul 1999 07:05:34 +0000 Subject: Enable gmon/mcount on alpha. --- lib/libc/gmon/gmon.c | 10 ++-------- lib/libc/gmon/mcount.c | 6 +----- 2 files changed, 3 insertions(+), 13 deletions(-) diff --git a/lib/libc/gmon/gmon.c b/lib/libc/gmon/gmon.c index f477822f08cfa..267a469144ff3 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 #include #include @@ -48,7 +46,7 @@ static char sccsid[] = "@(#)gmon.c 8.1 (Berkeley) 6/4/93"; #include #include -#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 diff --git a/lib/libc/gmon/mcount.c b/lib/libc/gmon/mcount.c index 545faba53e011..18f9975823b5d 100644 --- a/lib/libc/gmon/mcount.c +++ b/lib/libc/gmon/mcount.c @@ -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 #include #ifdef KERNEL @@ -325,5 +323,3 @@ mexitcount(selfpc) } } #endif /* GUPROF */ - -#endif /* !__NETBSD_SYSCALLS */ -- cgit v1.3