X-Git-Url: https://git.subgeniuskitty.com/unix-history/.git/blobdiff_plain/89bcca98022d0ad0092052b38b43b2457938af32..fb2fbc5e8b19783e8f25f930e947eebafb0a0683:/usr/src/usr.bin/gprof/gprof.h diff --git a/usr/src/usr.bin/gprof/gprof.h b/usr/src/usr.bin/gprof/gprof.h index c1605609c4..c1213c9731 100644 --- a/usr/src/usr.bin/gprof/gprof.h +++ b/usr/src/usr.bin/gprof/gprof.h @@ -1,12 +1,19 @@ - /* sccsid: @(#)gprof.h 1.14 (Berkeley) %G% */ +/* gprof.h 1.19 83/08/11 */ #include #include #include #include -#include #include "gcrt0.h" +#if vax +# include "vax.h" +#endif +#if sun +# include "sun.h" +#endif + + /* * who am i, for error messages. */ @@ -19,11 +26,6 @@ typedef int bool; #define FALSE 0 #define TRUE 1 - /* - * opcode of the `calls' instruction - */ -#define CALLS 0xfb - /* * ticks per second */ @@ -38,10 +40,10 @@ char *gmonname; #define GMONSUM "gmon.sum" /* - * the directory where the descriptions of the fields - * of the profiles are kept. + * blurbs on the flat and graph profiles. */ -#define BLURBLIB "/usr/lib/" +#define FLAT_BLURB "/usr/lib/gprof.flat.blurb" +#define CALLG_BLURB "/usr/lib/gprof.callg.blurb" /* * a constructed arc, @@ -69,6 +71,7 @@ typedef struct arcstruct arctype; struct nl { 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 */ double childtime; /* cumulative ticks in children */ long ncall; /* how many times called */ @@ -93,8 +96,10 @@ int nname; /* the number of function names */ /* * flag which marks a nl entry as topologically ``busy'' + * flag which marks a nl entry as topologically ``not_numbered'' */ #define DFN_BUSY -1 +#define DFN_NAN 0 /* * namelist entries for cycle headers. @@ -168,24 +173,6 @@ struct stringlist *Elist; struct stringlist *flist; struct stringlist *Flist; - /* - * register for pc relative addressing - */ -#define PC 0xf - -enum opermodes { - literal, indexed, reg, regdef, autodec, autoinc, autoincdef, - bytedisp, bytedispdef, worddisp, worddispdef, longdisp, longdispdef, - immediate, absolute, byterel, bytereldef, wordrel, wordreldef, - longrel, longreldef -}; -typedef enum opermodes operandenum; - -struct modebyte { - unsigned int regfield:4; - unsigned int modefield:4; -}; - /* * function declarations */