1*fae548d3Szrj /* gmon_out.h 2*fae548d3Szrj 3*fae548d3Szrj Copyright (C) 2000-2020 Free Software Foundation, Inc. 4*fae548d3Szrj 5*fae548d3Szrj This file is part of GNU Binutils. 6*fae548d3Szrj 7*fae548d3Szrj This program is free software; you can redistribute it and/or modify 8*fae548d3Szrj it under the terms of the GNU General Public License as published by 9*fae548d3Szrj the Free Software Foundation; either version 3 of the License, or 10*fae548d3Szrj (at your option) any later version. 11*fae548d3Szrj 12*fae548d3Szrj This program is distributed in the hope that it will be useful, 13*fae548d3Szrj but WITHOUT ANY WARRANTY; without even the implied warranty of 14*fae548d3Szrj MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15*fae548d3Szrj GNU General Public License for more details. 16*fae548d3Szrj 17*fae548d3Szrj You should have received a copy of the GNU General Public License 18*fae548d3Szrj along with this program; if not, write to the Free Software 19*fae548d3Szrj Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, 20*fae548d3Szrj MA 02110-1301, USA. */ 21*fae548d3Szrj 22*fae548d3Szrj /* A gmon.out file consists of a header (defined by gmon_hdr) followed 23*fae548d3Szrj by a sequence of records. Each record starts with a one-byte tag 24*fae548d3Szrj identifying the type of records, followed by records specific data. */ 25*fae548d3Szrj #ifndef gmon_out_h 26*fae548d3Szrj #define gmon_out_h 27*fae548d3Szrj 28*fae548d3Szrj #define GMON_MAGIC "gmon" /* magic cookie */ 29*fae548d3Szrj #define GMON_VERSION 1 /* version number */ 30*fae548d3Szrj 31*fae548d3Szrj /* Raw header as it appears on file (without padding). */ 32*fae548d3Szrj struct gmon_hdr 33*fae548d3Szrj { 34*fae548d3Szrj char cookie[4]; 35*fae548d3Szrj char version[4]; 36*fae548d3Szrj char spare[3 * 4]; 37*fae548d3Szrj }; 38*fae548d3Szrj 39*fae548d3Szrj /* Types of records in this file. */ 40*fae548d3Szrj typedef enum 41*fae548d3Szrj { 42*fae548d3Szrj GMON_TAG_TIME_HIST = 0, GMON_TAG_CG_ARC = 1, GMON_TAG_BB_COUNT = 2 43*fae548d3Szrj } 44*fae548d3Szrj GMON_Record_Tag; 45*fae548d3Szrj 46*fae548d3Szrj #endif /* gmon_out_h */ 47