Changeset 609 for branches/GNU/src/binutils/gprof/gmon.h
- Timestamp:
- Aug 16, 2003, 6:59:22 PM (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/GNU/src/binutils/gprof/gmon.h
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.1.1.2
r608 r609 1 /* -2 * Copyright (c) 19 91, 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. 4 4 * 5 5 * Redistribution and use in source and binary forms, with or without … … 11 11 * notice, this list of conditions and the following disclaimer in the 12 12 * 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 18 14 * may be used to endorse or promote products derived from this software 19 15 * without specific prior written permission. … … 30 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 27 * SUCH DAMAGE. 32 *33 * @(#)gmon.h 5.2 (Berkeley) 5/6/9134 28 */ 35 29 #ifndef gmon_h 36 30 #define gmon_h 37 31 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)) 45 35 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 50 49 51 50 #define GMONVERSION 0x00051879 52 51 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) 58 54 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) */ 61 70 #if defined (__alpha__) && defined (__osf__) 62 /*63 * DEC's OSF v3.0 uses 4 bytes of padding to bring the header to64 * 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]; 67 76 #endif 68 }; 77 }; 78 #endif 69 79 70 80 /* … … 121 131 * might introduce different padding): 122 132 */ 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 129 141 130 142 /* -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.