PROF -> GPROF

This commit is contained in:
jtc 1996-11-30 02:48:57 +00:00
parent 11935403ef
commit 9da5f60715
10 changed files with 21 additions and 21 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: asm.h,v 1.10 1996/10/17 18:33:53 cgd Exp $ */
/* $NetBSD: asm.h,v 1.11 1996/11/30 02:48:57 jtc Exp $ */
/*
* Copyright (c) 1991,1990,1989,1994,1995,1996 Carnegie Mellon University
@ -214,7 +214,7 @@
* MCOUNT
*/
#ifndef PROF
#ifndef GPROF
#define MCOUNT /* nothing */
#else
#define MCOUNT \

View File

@ -1,4 +1,4 @@
/* $NetBSD: asm.h,v 1.2 1996/03/14 23:11:03 mark Exp $ */
/* $NetBSD: asm.h,v 1.3 1996/11/30 02:48:58 jtc Exp $ */
/*
* Copyright (c) 1990 The Regents of the University of California.
@ -41,7 +41,7 @@
#ifndef _ARM32_ASM_H_
#define _ARM32_ASM_H_
#ifdef PROF
#ifdef GPROF
/*
* XXX assumes that arguments are not passed in %eax
*/

View File

@ -1,4 +1,4 @@
/* $NetBSD: asm.h,v 1.7 1994/10/27 04:15:56 cgd Exp $ */
/* $NetBSD: asm.h,v 1.8 1996/11/30 02:48:59 jtc Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
@ -71,7 +71,7 @@
#define _ENTRY(x) \
.text; .align 2; .globl x; .type x,@function; x:
#ifdef PROF
#ifdef GPROF
# define _PROF_PROLOGUE \
pushl %ebp; movl %esp,%ebp; call PIC_PLT(mcount); popl %ebp
#else

View File

@ -1,4 +1,4 @@
/* $NetBSD: asm.h,v 1.11 1996/09/24 00:05:55 jtc Exp $ */
/* $NetBSD: asm.h,v 1.12 1996/11/30 02:49:00 jtc Exp $ */
/*
* Copyright (c) 1994 Allen Briggs
@ -60,7 +60,7 @@
#endif
#ifdef PROF
#ifdef GPROF
#define _PROF_PROLOG link a6,#0; jbsr mcount; unlk a6
#else
#define _PROF_PROLOG

View File

@ -1,4 +1,4 @@
/* $NetBSD: asm.h,v 1.10 1996/10/13 03:29:05 christos Exp $ */
/* $NetBSD: asm.h,v 1.11 1996/11/30 02:49:01 jtc Exp $ */
/*
* Copyright (c) 1992, 1993
@ -63,7 +63,7 @@
/*
* Define -pg profile entry code.
*/
#if defined(GPROF) || defined(PROF)
#ifdef GPROF
#define MCOUNT .set noreorder; \
.set noat; \
move $1,$31; \

View File

@ -1,4 +1,4 @@
/* $NetBSD: asm.h,v 1.8 1996/11/07 07:33:28 matthias Exp $ */
/* $NetBSD: asm.h,v 1.9 1996/11/30 02:49:02 jtc Exp $ */
/*
* Mach Operating System
@ -88,7 +88,7 @@
#define PIC_S_ARG3 16(sp)
#endif
#if defined(PROF) || defined(GPROF)
#ifdef GPROF
#define MC1 .data; 1:; .long 0; .text
#define MC2 enter [r0],0; addr 1b(pc),r0; bsr mcount; exit [r0]
#else

View File

@ -1,4 +1,4 @@
/* $NetBSD: asm.h,v 1.4 1996/10/13 03:31:30 christos Exp $ */
/* $NetBSD: asm.h,v 1.5 1996/11/30 02:49:03 jtc Exp $ */
/*
* Copyright (c) 1992, 1993
@ -65,7 +65,7 @@
/*
* Define -pg profile entry code.
*/
#if defined(GPROF) || defined(PROF)
#ifdef GPROF
#define MCOUNT .set noreorder; \
.set noat; \
move $1,$31; \

View File

@ -1,4 +1,4 @@
/* $NetBSD: asm.h,v 1.1 1996/09/30 16:34:20 ws Exp $ */
/* $NetBSD: asm.h,v 1.2 1996/11/30 02:49:04 jtc Exp $ */
/*
* Copyright (C) 1995, 1996 Wolfgang Solfrank.
@ -64,7 +64,7 @@
#define _ENTRY(x) \
.text; .align 2; .globl x; .type x,@function; x:
#ifdef PROF
#ifdef GPROF
# define _PROF_PROLOGUE XXX
#else
# define _PROF_PROLOGUE

View File

@ -1,4 +1,4 @@
/* $NetBSD: asm.h,v 1.3 1994/11/20 20:52:51 deraadt Exp $ */
/* $NetBSD: asm.h,v 1.4 1996/11/30 02:49:05 jtc Exp $ */
/*
* Copyright (c) 1994 Allen Briggs
@ -83,7 +83,7 @@
#define _ENTRY(name) \
.align 4; .globl name; .proc 1; FTYPE(name); name:
#ifdef PROF
#ifdef GPROF
#define _PROF_PROLOGUE \
.data; .align 4; 1: .long 0; \
.text; save %sp,-96,%sp; sethi %hi(1b),%o0; call mcount; \

View File

@ -1,4 +1,4 @@
/* $NetBSD: asm.h,v 1.4 1996/01/06 18:37:35 ragge Exp $ */
/* $NetBSD: asm.h,v 1.5 1996/11/30 02:49:06 jtc Exp $ */
/*
* Copyright (c) 1982, 1993
* The Regents of the University of California. All rights reserved.
@ -51,7 +51,7 @@
#define R11 0x800
#ifdef __STDC__
#ifdef PROF
#ifdef GPROF
#define ENTRY(x, regs) \
.globl _ ## x ## ; .align 2; _ ## x ## : .word regs; \
.data; 1:; .long 0; .text; moval 1b,r0; jsb mcount
@ -65,7 +65,7 @@
.globl x; .align 2; x ## : .word regs
#endif
# else
#ifdef PROF
#ifdef GPROF
#define ENTRY(x, regs) \
.globl _/**/x; .align 2; _/**/x: .word regs; \
.data; 1:; .long 0; .text; moval 1b,r0; jsb mcount