Ignore:
Timestamp:
Aug 16, 2003, 6:59:22 PM (22 years ago)
Author:
bird
Message:

binutils v2.14 - offical sources.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/GNU/src/binutils/gprof/gmon.h

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.1.1.2
    r608 r609  
    1 /*-
    2  * Copyright (c) 1991, 2001 The Regents of the University of California.
    3  * All rights reserved.
     1/*
     2 * Copyright (c) 1983, 1991, 1993, 2001
     3 *      The Regents of the University of California.  All rights reserved.
    44 *
    55 * Redistribution and use in source and binary forms, with or without
     
    1111 *    notice, this list of conditions and the following disclaimer in the
    1212 *    documentation and/or other materials provided with the distribution.
    13  * 3. All advertising materials mentioning features or use of this software
    14  *    must display the following acknowledgement:
    15  *      This product includes software developed by the University of
    16  *      California, Berkeley and its contributors.
    17  * 4. Neither the name of the University nor the names of its contributors
     13 * 3. Neither the name of the University nor the names of its contributors
    1814 *    may be used to endorse or promote products derived from this software
    1915 *    without specific prior written permission.
     
    3026 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
    3127 * SUCH DAMAGE.
    32  *
    33  *      @(#)gmon.h      5.2 (Berkeley) 5/6/91
    3428 */
    3529#ifndef gmon_h
    3630#define gmon_h
    3731
    38 struct raw_phdr
    39   {
    40     /* FIXME: Checking a host compiler define means that we can't use
    41        a cross gprof to the alpha.  */
    42     char low_pc[GMON_PTR_SIZE]; /* base pc address of sample buffer */
    43     char high_pc[GMON_PTR_SIZE];/* max pc address of sampled buffer */
    44     char ncnt[4];               /* size of sample buffer (plus this header) */
     32/* Size of the 4.4BSD gmon header */
     33#define GMON_HDRSIZE_BSD44_32 (4 + 4 + 4 + 4 + 4 + (3 * 4))
     34#define GMON_HDRSIZE_BSD44_64 (8 + 8 + 4 + 4 + 4 + (3 * 4))
    4535
    46     char version[4];            /* version number */
    47     char profrate[4];           /* profiling clock rate */
    48     char spare[3*4];            /* reserved */
    49   };
     36#if 0 /* For documentation purposes only.  */
     37  struct raw_phdr
     38    {
     39      char low_pc[sizeof(void *)]; /* base pc address of sample buffer */
     40      char high_pc[sizeof(void *)];/* max pc address of sampled buffer */
     41      char ncnt[4];                /* size of sample buffer (plus this
     42                                      header) */
     43
     44      char version[4];             /* version number */
     45      char profrate[4];            /* profiling clock rate */
     46      char spare[3*4];             /* reserved */
     47    };
     48#endif
    5049
    5150#define GMONVERSION     0x00051879
    5251
    53 struct old_raw_phdr
    54   {
    55     char low_pc[GMON_PTR_SIZE]; /* base pc address of sample buffer */
    56     char high_pc[GMON_PTR_SIZE];/* max pc address of sampled buffer */
    57     char ncnt[4];               /* size of sample buffer (plus this header) */
     52/* Size of the old BSD gmon header */
     53#define GMON_HDRSIZE_OLDBSD_32 (4 + 4 + 4)
    5854
    59     /* FIXME: Checking host compiler defines here means that we can't
    60        use a cross gprof alpha OSF.  */
     55/* FIXME: Checking host compiler defines here means that we can't
     56   use a cross gprof alpha OSF.  */
     57#if defined(__alpha__) && defined (__osf__)
     58#define GMON_HDRSIZE_OLDBSD_64 (8 + 8 + 4 + 4)
     59#else
     60#define GMON_HDRSIZE_OLDBSD_64 (8 + 8 + 4)
     61#endif
     62
     63#if 0 /* For documentation purposes only.  */
     64  struct old_raw_phdr
     65    {
     66      char low_pc[sizeof(void *)]; /* base pc address of sample buffer */
     67      char high_pc[sizeof(void *)];/* max pc address of sampled buffer */
     68      char ncnt[4];                /* size of sample buffer (plus this
     69                                      header) */
    6170#if defined (__alpha__) && defined (__osf__)
    62     /*
    63      * DEC's OSF v3.0 uses 4 bytes of padding to bring the header to
    64      * a size that is a multiple of 8.
    65      */
    66     char pad[4];
     71      /*
     72       * DEC's OSF v3.0 uses 4 bytes of padding to bring the header to
     73       * a size that is a multiple of 8.
     74       */
     75      char pad[4];
    6776#endif
    68   };
     77    };
     78#endif
    6979
    7080/*
     
    121131 * might introduce different padding):
    122132 */
    123 struct raw_arc
    124   {
    125     char from_pc[GMON_PTR_SIZE];
    126     char self_pc[GMON_PTR_SIZE];
    127     char count[4];
    128   };
     133#if 0 /* For documentation purposes only.  */
     134  struct raw_arc
     135    {
     136      char from_pc[sizeof(void *)];
     137      char self_pc[sizeof(void *)];
     138      char count[sizeof(long)];
     139    };
     140#endif
    129141
    130142/*
Note: See TracChangeset for help on using the changeset viewer.