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