summaryrefslogtreecommitdiffstats
path: root/usr.bin/gprof/gprof.h
diff options
context:
space:
mode:
authorcharnier <charnier@FreeBSD.org>2002-10-16 13:50:09 +0000
committercharnier <charnier@FreeBSD.org>2002-10-16 13:50:09 +0000
commit064bebe6d3d4f05ecc20524571d6bc4519997bd5 (patch)
treed111768d17cfb105c6bbb279f69b9a271d1a9c41 /usr.bin/gprof/gprof.h
parent6dec6a19baa7759402451fa076be28cc26359333 (diff)
downloadFreeBSD-src-064bebe6d3d4f05ecc20524571d6bc4519997bd5.zip
FreeBSD-src-064bebe6d3d4f05ecc20524571d6bc4519997bd5.tar.gz
Remove done() which was just exit() so use of warn()/err() can be made. Abort
on allocation failure instead of displaying a warning and deferencing NULL pointer after. Spelling. Add prototypes. Add list of option in synopsis section of man page, -d is not referenced because available as a compile option. It should be made a runtime option btw.
Diffstat (limited to 'usr.bin/gprof/gprof.h')
-rw-r--r--usr.bin/gprof/gprof.h86
1 files changed, 41 insertions, 45 deletions
diff --git a/usr.bin/gprof/gprof.h b/usr.bin/gprof/gprof.h
index 7214abf..e6d1f46 100644
--- a/usr.bin/gprof/gprof.h
+++ b/usr.bin/gprof/gprof.h
@@ -131,7 +131,7 @@ typedef struct arcstruct arctype;
/*
* The symbol table;
* for each external in the specified file we gather
- * its address, the number of calls and compute its share of cpu time.
+ * its address, the number of calls and compute its share of CPU time.
*/
struct nl {
const char *name; /* the name */
@@ -268,43 +268,43 @@ struct stringlist *ktolist;
/*
* function declarations
*/
-/*
- addarc();
-*/
+void addarc(nltype *, nltype *, long);
+bool addcycle(arctype **, arctype **);
+void addlist(struct stringlist *, char *);
+void alignentries(void);
int aout_getnfile(const char *, char ***);
int arccmp();
arctype *arclookup();
-/*
- asgnsamples();
- printblurb();
- cyclelink();
- dfn();
-*/
+void asgnsamples(void);
+void compresslist(void);
+bool cycleanalyze(void);
+void cyclelink(void);
+void cycletime(void);
+bool descend(nltype *, arctype **, arctype **);
+void dfn(nltype *);
bool dfn_busy();
-/*
- dfn_findcycle();
-*/
+void dfn_findcycle(nltype *);
+void dfn_init(void);
bool dfn_numbered();
-/*
- dfn_post_visit();
- dfn_pre_visit();
- dfn_self_cycle();
-*/
+void dfn_post_visit(nltype *);
+void dfn_pre_visit(nltype *);
+void dfn_self_cycle(nltype *);
nltype **doarcs();
-/*
- done();
-*/
+void doflags(void);
+void dotime(void);
+void dumpsum(char *);
int elf_getnfile(const char *, char ***);
/*
findcalls();
- flatprofheader();
- flatprofline();
*/
+void flatprofheader(void);
+void flatprofline(nltype *);
+void getpfile(char *);
/*
- getpfile();
gprofheader();
gprofline();
*/
+void inheritflags(nltype *);
int kernel_getnfile(const char *, char ***);
/*
main();
@@ -313,33 +313,29 @@ unsigned long max();
int membercmp();
unsigned long min();
nltype *nllookup();
+bool onlist(struct stringlist *, const char *);
FILE *openpfile();
long operandlength();
operandenum operandmode();
char *operandname();
-/*
- printchildren();
- printcycle();
- printgprof();
- printmembers();
- printname();
- printparents();
- printprof();
- readsamples();
-*/
+void printblurb(char *);
+void printchildren(nltype *);
+void printcycle(nltype *);
+void printgprof(nltype **);
+void printindex(void);
+void printmembers(nltype *);
+void printname(nltype *);
+void printparents(nltype *);
+void printprof(void);
+void printsubcycle(cltype *);
+void readsamples(FILE *);
unsigned long reladdr();
-/*
- sortchildren();
- sortmembers();
- sortparents();
- tally();
- timecmp();
- topcmp();
-*/
+void sortchildren(nltype *);
+void sortmembers(nltype *);
+void sortparents(nltype *);
+void tally(struct rawarc *);
+void timepropagate(nltype *);
int totalcmp();
-/*
- valcmp();
-*/
#define LESSTHAN -1
#define EQUALTO 0
OpenPOWER on IntegriCloud