diff options
author | Ulrich Drepper <drepper@redhat.com> | 1997-03-21 20:24:49 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1997-03-21 20:24:49 +0000 |
commit | 1cb5fbec4259c0ed0fa1793751c056e31446bb89 (patch) | |
tree | 8ad464d6139047f54b7cd60a4a76acab4eb03fc3 /gmon | |
parent | 6cc0f2973421aa72075d69865159fe81fce4a387 (diff) | |
download | glibc-1cb5fbec4259c0ed0fa1793751c056e31446bb89.tar.gz glibc-1cb5fbec4259c0ed0fa1793751c056e31446bb89.tar.xz glibc-1cb5fbec4259c0ed0fa1793751c056e31446bb89.zip |
Revert the bulk of the 960930 changes, as they affect the alignment,
and therefore the end padding of the structs.
Diffstat (limited to 'gmon')
-rw-r--r-- | gmon/sys/gmon_out.h | 48 |
1 files changed, 27 insertions, 21 deletions
diff --git a/gmon/sys/gmon_out.h b/gmon/sys/gmon_out.h index 94e815d94b..36059cc572 100644 --- a/gmon/sys/gmon_out.h +++ b/gmon/sys/gmon_out.h @@ -1,4 +1,4 @@ -/* Copyright (C) 1996 Free Software Foundation, Inc. +/* Copyright (C) 1996, 1997 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by David Mosberger <davidm@cs.arizona.edu>. @@ -40,30 +40,36 @@ __BEGIN_DECLS * always comes first in gmon.out and is then followed by a series * records defined below. */ -struct gmon_hdr { - char cookie[4]; - int version; - int spare[3]; -}; +struct gmon_hdr + { + char cookie[4]; + char version[4]; + char spare[3 * 4]; + }; /* types of records in this file: */ -typedef enum { - GMON_TAG_TIME_HIST = 0, GMON_TAG_CG_ARC = 1, GMON_TAG_BB_COUNT = 2 -} GMON_Record_Tag; +typedef enum + { + GMON_TAG_TIME_HIST = 0, + GMON_TAG_CG_ARC = 1, + GMON_TAG_BB_COUNT = 2 + } GMON_Record_Tag; -struct gmon_hist_hdr { - unsigned long low_pc; /* base pc address of sample buffer */ - unsigned long high_pc; /* max pc address of sampled buffer */ - int hist_size; /* size of sample buffer */ - int prof_rate; /* profiling clock rate */ - char dimen[15]; /* phys. dim., usually "seconds" */ - char dimen_abbrev; /* usually 's' for "seconds" */ -}; +struct gmon_hist_hdr + { + char low_pc[sizeof (char *)]; /* base pc address of sample buffer */ + char high_pc[sizeof (char *)]; /* max pc address of sampled buffer */ + char hist_size[4]; /* size of sample buffer */ + char prof_rate[4]; /* profiling clock rate */ + char dimen[15]; /* phys. dim., usually "seconds" */ + char dimen_abbrev; /* usually 's' for "seconds" */ + }; -struct gmon_cg_arc_record { - unsigned long from_pc; /* address within caller's body */ - unsigned long self_pc; /* address within callee's body */ - int count; /* number of arc traversals */ +struct gmon_cg_arc_record + { + char from_pc[sizeof (char *)]; /* address within caller's body */ + char self_pc[sizeof (char *)]; /* address within callee's body */ + char count[4]; /* number of arc traversals */ }; __END_DECLS |