rlm@1: /* gmon_out.h rlm@1: rlm@1: Copyright 2000, 2001 Free Software Foundation, Inc. rlm@1: rlm@1: This file is part of GNU Binutils. rlm@1: rlm@1: This program is free software; you can redistribute it and/or modify rlm@1: it under the terms of the GNU General Public License as published by rlm@1: the Free Software Foundation; either version 2 of the License, or rlm@1: (at your option) any later version. rlm@1: rlm@1: This program is distributed in the hope that it will be useful, rlm@1: but WITHOUT ANY WARRANTY; without even the implied warranty of rlm@1: MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the rlm@1: GNU General Public License for more details. rlm@1: rlm@1: You should have received a copy of the GNU General Public License rlm@1: along with this program; if not, write to the Free Software rlm@1: Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ rlm@1: rlm@1: /* A gmon.out file consists of a header (defined by gmon_hdr) followed rlm@1: by a sequence of records. Each record starts with a one-byte tag rlm@1: identifying the type of records, followed by records specific data. */ rlm@1: #ifndef gmon_out_h rlm@1: #define gmon_out_h rlm@1: rlm@1: #define GMON_MAGIC "gmon" /* magic cookie */ rlm@1: #define GMON_VERSION 1 /* version number */ rlm@1: rlm@1: /* Raw header as it appears on file (without padding). */ rlm@1: struct gmon_hdr rlm@1: { rlm@1: char cookie[4]; rlm@1: char version[4]; rlm@1: char spare[3 * 4]; rlm@1: }; rlm@1: rlm@1: /* Types of records in this file. */ rlm@1: typedef enum rlm@1: { rlm@1: GMON_TAG_TIME_HIST = 0, GMON_TAG_CG_ARC = 1, GMON_TAG_BB_COUNT = 2 rlm@1: } rlm@1: GMON_Record_Tag; rlm@1: rlm@1: #endif /* gmon_out_h */