diff src/prof/gmon_out.h @ 30:48369c6aeaa0 compile-milestone

brought prof package in
author Robert McIntyre <rlm@mit.edu>
date Sun, 04 Mar 2012 22:32:01 -0600
parents f9f4f1b99eed
children
line wrap: on
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/prof/gmon_out.h	Sun Mar 04 22:32:01 2012 -0600
     1.3 @@ -0,0 +1,45 @@
     1.4 +/* gmon_out.h
     1.5 +
     1.6 +   Copyright 2000, 2001 Free Software Foundation, Inc.
     1.7 +
     1.8 +This file is part of GNU Binutils.
     1.9 +
    1.10 +This program is free software; you can redistribute it and/or modify
    1.11 +it under the terms of the GNU General Public License as published by
    1.12 +the Free Software Foundation; either version 2 of the License, or
    1.13 +(at your option) any later version.
    1.14 +
    1.15 +This program is distributed in the hope that it will be useful,
    1.16 +but WITHOUT ANY WARRANTY; without even the implied warranty of
    1.17 +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    1.18 +GNU General Public License for more details.
    1.19 +
    1.20 +You should have received a copy of the GNU General Public License
    1.21 +along with this program; if not, write to the Free Software
    1.22 +Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
    1.23 +
    1.24 +/* A gmon.out file consists of a header (defined by gmon_hdr) followed
    1.25 +   by a sequence of records.  Each record starts with a one-byte tag
    1.26 +   identifying the type of records, followed by records specific data.  */
    1.27 +#ifndef gmon_out_h
    1.28 +#define gmon_out_h
    1.29 +
    1.30 +#define	GMON_MAGIC	"gmon"	/* magic cookie */
    1.31 +#define GMON_VERSION	1	/* version number */
    1.32 +
    1.33 +/* Raw header as it appears on file (without padding).  */
    1.34 +struct gmon_hdr
    1.35 +  {
    1.36 +    char cookie[4];
    1.37 +    char version[4];
    1.38 +    char spare[3 * 4];
    1.39 +  };
    1.40 +
    1.41 +/* Types of records in this file.  */
    1.42 +typedef enum
    1.43 +  {
    1.44 +    GMON_TAG_TIME_HIST = 0, GMON_TAG_CG_ARC = 1, GMON_TAG_BB_COUNT = 2
    1.45 +  }
    1.46 +GMON_Record_Tag;
    1.47 +
    1.48 +#endif /* gmon_out_h */