Deleted Added
full compact
gprof.h (27379) gprof.h (38928)
1/*
2 * Copyright (c) 1983, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 23 unchanged lines hidden (view full) ---

32 *
33 * @(#)gprof.h 8.1 (Berkeley) 6/6/93
34 */
35
36#include <sys/types.h>
37#include <sys/stat.h>
38#include <sys/gmon.h>
39
1/*
2 * Copyright (c) 1983, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 23 unchanged lines hidden (view full) ---

32 *
33 * @(#)gprof.h 8.1 (Berkeley) 6/6/93
34 */
35
36#include <sys/types.h>
37#include <sys/stat.h>
38#include <sys/gmon.h>
39
40#include <a.out.h>
41#include <stdio.h>
42#include <stdlib.h>
43
44#if vax
45# include "vax.h"
46#endif
47#if sparc
48# include "sparc.h"

--- 67 unchanged lines hidden (view full) ---

116#define ONLIST 0x02 /* arc is on list of arcs in cycles */
117
118 /*
119 * The symbol table;
120 * for each external in the specified file we gather
121 * its address, the number of calls and compute its share of cpu time.
122 */
123struct nl {
40#include <stdio.h>
41#include <stdlib.h>
42
43#if vax
44# include "vax.h"
45#endif
46#if sparc
47# include "sparc.h"

--- 67 unchanged lines hidden (view full) ---

115#define ONLIST 0x02 /* arc is on list of arcs in cycles */
116
117 /*
118 * The symbol table;
119 * for each external in the specified file we gather
120 * its address, the number of calls and compute its share of cpu time.
121 */
122struct nl {
124 char *name; /* the name */
123 const char *name; /* the name */
125 unsigned long value; /* the pc entry point */
126 unsigned long svalue; /* entry point aligned to histograms */
127 double time; /* ticks in this routine */
128 double childtime; /* cumulative ticks in children */
129 long ncall; /* how many times called */
130 long npropcall; /* times called by live arcs */
131 long selfcalls; /* how many calls to self */
132 double propfraction; /* what % of time propagates */

--- 79 unchanged lines hidden (view full) ---

212unsigned lowpc, highpc; /* range profiled, in UNIT's */
213unsigned sampbytes; /* number of bytes of samples */
214int nsamples; /* number of samples */
215double actime; /* accumulated time thus far for putprofline */
216double totime; /* total time for all routines */
217double printtime; /* total of time being printed */
218double scale; /* scale factor converting samples to pc
219 values: each sample covers scale bytes */
124 unsigned long value; /* the pc entry point */
125 unsigned long svalue; /* entry point aligned to histograms */
126 double time; /* ticks in this routine */
127 double childtime; /* cumulative ticks in children */
128 long ncall; /* how many times called */
129 long npropcall; /* times called by live arcs */
130 long selfcalls; /* how many calls to self */
131 double propfraction; /* what % of time propagates */

--- 79 unchanged lines hidden (view full) ---

211unsigned lowpc, highpc; /* range profiled, in UNIT's */
212unsigned sampbytes; /* number of bytes of samples */
213int nsamples; /* number of samples */
214double actime; /* accumulated time thus far for putprofline */
215double totime; /* total time for all routines */
216double printtime; /* total of time being printed */
217double scale; /* scale factor converting samples to pc
218 values: each sample covers scale bytes */
220char *strtab; /* string table in core */
221long ssiz; /* size of the string table */
222struct exec xbuf; /* exec header of a.out */
223unsigned char *textspace; /* text space of a.out in core */
224int cyclethreshold; /* with -C, minimum cycle size to ignore */
225
226 /*
227 * option flags, from a to z.
228 */
229bool aflag; /* suppress static functions */
230bool bflag; /* blurbs, too */
231bool cflag; /* discovered call graph, too */
232bool Cflag; /* find cut-set to eliminate cycles */
233bool dflag; /* debugging options */
234bool eflag; /* specific functions excluded */
235bool Eflag; /* functions excluded with time */
236bool fflag; /* specific functions requested */
237bool Fflag; /* functions requested with time */
238bool kflag; /* arcs to be deleted */
239bool sflag; /* sum multiple gmon.out files */
219unsigned char *textspace; /* text space of a.out in core */
220int cyclethreshold; /* with -C, minimum cycle size to ignore */
221
222 /*
223 * option flags, from a to z.
224 */
225bool aflag; /* suppress static functions */
226bool bflag; /* blurbs, too */
227bool cflag; /* discovered call graph, too */
228bool Cflag; /* find cut-set to eliminate cycles */
229bool dflag; /* debugging options */
230bool eflag; /* specific functions excluded */
231bool Eflag; /* functions excluded with time */
232bool fflag; /* specific functions requested */
233bool Fflag; /* functions requested with time */
234bool kflag; /* arcs to be deleted */
235bool sflag; /* sum multiple gmon.out files */
236bool uflag; /* suppress symbols hidden from C */
240bool zflag; /* zero time/called functions, too */
241
242 /*
243 * structure for various string lists
244 */
245struct stringlist {
246 struct stringlist *next;
247 char *string;

--- 6 unchanged lines hidden (view full) ---

254struct stringlist *ktolist;
255
256 /*
257 * function declarations
258 */
259/*
260 addarc();
261*/
237bool zflag; /* zero time/called functions, too */
238
239 /*
240 * structure for various string lists
241 */
242struct stringlist {
243 struct stringlist *next;
244 char *string;

--- 6 unchanged lines hidden (view full) ---

251struct stringlist *ktolist;
252
253 /*
254 * function declarations
255 */
256/*
257 addarc();
258*/
259int aout_getnfile(const char *, char ***);
262int arccmp();
263arctype *arclookup();
264/*
265 asgnsamples();
266 printblurb();
267 cyclelink();
268 dfn();
269*/

--- 5 unchanged lines hidden (view full) ---

275/*
276 dfn_post_visit();
277 dfn_pre_visit();
278 dfn_self_cycle();
279*/
280nltype **doarcs();
281/*
282 done();
260int arccmp();
261arctype *arclookup();
262/*
263 asgnsamples();
264 printblurb();
265 cyclelink();
266 dfn();
267*/

--- 5 unchanged lines hidden (view full) ---

273/*
274 dfn_post_visit();
275 dfn_pre_visit();
276 dfn_self_cycle();
277*/
278nltype **doarcs();
279/*
280 done();
281*/
282int elf_getnfile(const char *, char ***);
283/*
283 findcalls();
284 flatprofheader();
285 flatprofline();
286*/
284 findcalls();
285 flatprofheader();
286 flatprofline();
287*/
287bool funcsymbol();
288/*
288/*
289 getnfile();
290 getpfile();
289 getpfile();
291 getstrtab();
292 getsymtab();
293 gettextspace();
294 gprofheader();
295 gprofline();
296 main();
297*/
298unsigned long max();
299int membercmp();
300unsigned long min();
301nltype *nllookup();

--- 45 unchanged lines hidden ---
290 gprofheader();
291 gprofline();
292 main();
293*/
294unsigned long max();
295int membercmp();
296unsigned long min();
297nltype *nllookup();

--- 45 unchanged lines hidden ---