* gmon.h, gprof.h: structs of chars used to hold external
[deliverable/binutils-gdb.git] / gprof / gprof.h
index 6edec28f98eb9fd97c34fce4e3ec505b6318876a..c1b91ad355ccfbc7e08d7b483058c66794615354 100644 (file)
  *     @(#)gprof.h     5.9 (Berkeley) 6/1/90
  */
 
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <a.out.h>
-#include <stdio.h>
+#include <ansidecl.h>
+#include "sysdep.h"
+#include "bfd.h"
 #include "gmon.h"
 
+/* AIX defines hz as a macro.  */
+#undef hz
+
 #ifdef MACHINE_H
 #      include MACHINE_H
 #else
@@ -57,7 +59,7 @@ typedef int   bool;
      */
 long   hz;
 
-typedef        u_short UNIT;           /* unit of profiling */
+typedef        unsigned char UNIT[2];          /* unit of profiling */
 char   *a_outname;
 #define        A_OUTNAME               "a.out"
 
@@ -65,6 +67,9 @@ char  *gmonname;
 #define        GMONNAME                "gmon.out"
 #define        GMONSUM                 "gmon.sum"
 
+extern int bsd_style_output;
+extern int discard_underscores;
+
     /*
      * a constructed arc,
      *     with pointers to the namelist entry of the parent and the child,
@@ -89,7 +94,7 @@ typedef struct arcstruct      arctype;
      * its address, the number of calls and compute its share of cpu time.
      */
 struct nl {
-    char               *name;          /* the name */
+    CONST char         *name;          /* the name */
     unsigned long      value;          /* the pc entry point */
     unsigned long      svalue;         /* entry point aligned to histograms */
     double             time;           /* ticks in this routine */
@@ -142,6 +147,13 @@ struct hdr {
     int        ncnt;
 };
 
+
+struct rawhdr {
+    char lowpc[4];
+    char highpc[4];
+    char ncnt[4];
+};
+
 struct hdr     h;
 
 int    debug;
@@ -150,7 +162,7 @@ int debug;
      * Each discretized pc sample has
      * a count of the number of samples in its range
      */
-UNIT   *samples;
+int    *samples;
 
 unsigned long  s_lowpc;        /* lowpc from the profile file */
 unsigned long  s_highpc;       /* highpc from the profile file */
@@ -164,7 +176,6 @@ double      scale;                  /* scale factor converting samples to pc
                                   values: each sample covers scale bytes */
 char   *strtab;                /* string table in core */
 off_t  ssiz;                   /* size of the string table */
-struct exec xbuf;              /* exec header of a.out */
 unsigned char  *textspace;             /* text space of a.out in core */
 
     /*
@@ -253,6 +264,7 @@ FILE                *openpfile();
                printprof();
                readsamples();
 */
+int            printnameonly();
 unsigned long  reladdr();
 /*
                sortchildren();
This page took 0.025617 seconds and 4 git commands to generate.