summaryrefslogtreecommitdiff
path: root/usr/src/cmd/sgs/gprof/common/gprof.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/cmd/sgs/gprof/common/gprof.c')
-rw-r--r--usr/src/cmd/sgs/gprof/common/gprof.c42
1 files changed, 39 insertions, 3 deletions
diff --git a/usr/src/cmd/sgs/gprof/common/gprof.c b/usr/src/cmd/sgs/gprof/common/gprof.c
index 9bdd429183..2cb0720f8b 100644
--- a/usr/src/cmd/sgs/gprof/common/gprof.c
+++ b/usr/src/cmd/sgs/gprof/common/gprof.c
@@ -23,8 +23,6 @@
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
#include <sysexits.h>
#include <stdlib.h>
#include <stdio.h>
@@ -32,6 +30,44 @@
#include "gprof.h"
#include "profile.h"
+bool aflag;
+bool bflag;
+bool Bflag;
+bool cflag;
+bool Cflag;
+bool dflag;
+bool Dflag;
+bool eflag;
+bool Eflag;
+bool fflag;
+bool Fflag;
+bool lflag;
+bool sflag;
+bool zflag;
+bool nflag;
+bool rflag;
+bool first_file;
+bool old_style;
+double scale;
+double totime;
+Size n_pcsamples;
+mod_info_t modules;
+pctype s_lowpc;
+pctype s_highpc;
+sztype n_modules;
+sztype sampbytes;
+sztype nsamples;
+unsigned short *samples;
+fl_info_t aout_info;
+fl_info_t gmonout_info;
+long hz;
+struct hdr h;
+unsigned char *textspace;
+int debug;
+int number_funcs_toprint;
+char *a_outname;
+char *prog_name;
+char *gmonname;
char *whoami = "gprof";
static pctype lowpc, highpc; /* range profiled, in UNIT's */
@@ -1896,7 +1932,7 @@ main(int argc, char **argv)
int i;
(void) printf(" Name, pc_entry_pt, svalue, tix_in_routine, "
"#calls, selfcalls, index \n");
- for (i = 0; i < modules.nname; i++) { /* Print each symbol */
+ for (i = 0; i < modules.nname; i++) { /* Print each symbol */
if (timesortnlp[i]->name)
(void) printf(" %s ", timesortnlp[i]->name);
else