diff options
author | stefanf <stefanf@FreeBSD.org> | 2004-06-20 11:05:25 +0000 |
---|---|---|
committer | stefanf <stefanf@FreeBSD.org> | 2004-06-20 11:05:25 +0000 |
commit | aa456841b2ac37ef5d887fe1d9feb715d303cbee (patch) | |
tree | cb9dea9d68f8350a536dd0d626eb98e12b6ed452 /usr.bin/gprof | |
parent | bcffee208f3017076a5d0f6bb8ae3a0ae9802b18 (diff) | |
download | FreeBSD-src-aa456841b2ac37ef5d887fe1d9feb715d303cbee.zip FreeBSD-src-aa456841b2ac37ef5d887fe1d9feb715d303cbee.tar.gz |
Retire support for gprof's -c option. All our currently supported
architectures only provide a dummy implementation.
Silence on: current@
Diffstat (limited to 'usr.bin/gprof')
-rw-r--r-- | usr.bin/gprof/Makefile | 2 | ||||
-rw-r--r-- | usr.bin/gprof/alpha.c | 14 | ||||
-rw-r--r-- | usr.bin/gprof/amd64.c | 15 | ||||
-rw-r--r-- | usr.bin/gprof/aout.c | 3 | ||||
-rw-r--r-- | usr.bin/gprof/arcs.c | 3 | ||||
-rw-r--r-- | usr.bin/gprof/arm.c | 15 | ||||
-rw-r--r-- | usr.bin/gprof/gprof.1 | 6 | ||||
-rw-r--r-- | usr.bin/gprof/gprof.c | 7 | ||||
-rw-r--r-- | usr.bin/gprof/gprof.h | 4 | ||||
-rw-r--r-- | usr.bin/gprof/i386.c | 15 | ||||
-rw-r--r-- | usr.bin/gprof/ia64.c | 14 | ||||
-rw-r--r-- | usr.bin/gprof/sparc64.c | 14 |
12 files changed, 1 insertions, 111 deletions
diff --git a/usr.bin/gprof/Makefile b/usr.bin/gprof/Makefile index 5d77605..a24d9cd 100644 --- a/usr.bin/gprof/Makefile +++ b/usr.bin/gprof/Makefile @@ -2,7 +2,7 @@ # $FreeBSD$ PROG= gprof -SRCS= gprof.c aout.c arcs.c dfn.c elf.c lookup.c ${MACHINE_ARCH}.c hertz.c \ +SRCS= gprof.c aout.c arcs.c dfn.c elf.c lookup.c hertz.c \ printgprof.c printlist.c kernel.c FILES= gprof.flat gprof.callg FILESDIR= ${SHAREDIR}/misc diff --git a/usr.bin/gprof/alpha.c b/usr.bin/gprof/alpha.c deleted file mode 100644 index c35cd63..0000000 --- a/usr.bin/gprof/alpha.c +++ /dev/null @@ -1,14 +0,0 @@ -#include <sys/cdefs.h> -__FBSDID("$FreeBSD$"); - -#include "gprof.h" - -/* - * gprof -c isn't currently supported... - */ -findcall( parentp , p_lowpc , p_highpc ) - nltype *parentp; - unsigned long p_lowpc; - unsigned long p_highpc; -{ -} diff --git a/usr.bin/gprof/amd64.c b/usr.bin/gprof/amd64.c deleted file mode 100644 index c112763..0000000 --- a/usr.bin/gprof/amd64.c +++ /dev/null @@ -1,15 +0,0 @@ -#include <sys/cdefs.h> -__FBSDID("$FreeBSD$"); - -#include "gprof.h" - -/* - * gprof -c isn't currently supported... - */ -void -findcall( parentp , p_lowpc , p_highpc ) - nltype *parentp; - unsigned long p_lowpc; - unsigned long p_highpc; -{ -} diff --git a/usr.bin/gprof/aout.c b/usr.bin/gprof/aout.c index 349a471..2ccf818 100644 --- a/usr.bin/gprof/aout.c +++ b/usr.bin/gprof/aout.c @@ -176,9 +176,6 @@ static void gettextspace(FILE *nfile) { - if ( cflag == 0 ) { - return; - } textspace = (u_char *) malloc( xbuf.a_text ); if ( textspace == 0 ) { warnx("no room for %lu bytes of text space: can't do -c" , diff --git a/usr.bin/gprof/arcs.c b/usr.bin/gprof/arcs.c index 262e6bd..3be00df 100644 --- a/usr.bin/gprof/arcs.c +++ b/usr.bin/gprof/arcs.c @@ -149,9 +149,6 @@ doarcs() parentp -> cycleno = 0; parentp -> cyclehead = parentp; parentp -> cnext = 0; - if ( cflag ) { - findcall( parentp , parentp -> value , (parentp+1) -> value ); - } } for ( pass = 1 ; ; pass++ ) { /* diff --git a/usr.bin/gprof/arm.c b/usr.bin/gprof/arm.c deleted file mode 100644 index c112763..0000000 --- a/usr.bin/gprof/arm.c +++ /dev/null @@ -1,15 +0,0 @@ -#include <sys/cdefs.h> -__FBSDID("$FreeBSD$"); - -#include "gprof.h" - -/* - * gprof -c isn't currently supported... - */ -void -findcall( parentp , p_lowpc , p_highpc ) - nltype *parentp; - unsigned long p_lowpc; - unsigned long p_highpc; -{ -} diff --git a/usr.bin/gprof/gprof.1 b/usr.bin/gprof/gprof.1 index c881c3e..c6e8422 100644 --- a/usr.bin/gprof/gprof.1 +++ b/usr.bin/gprof/gprof.1 @@ -128,12 +128,6 @@ belongs to the function loaded just before the static function in the file. .It Fl b Suppress the printing of a description of each field in the profile. -.It Fl c -The static call graph of the program is discovered by a heuristic -that examines the text space of the object file. -Static-only parents or children are shown -with call counts of 0. -This option is not supported on some architectures. .It Fl C Ar count Find a minimal set of arcs that can be broken to eliminate all cycles with .Ar count diff --git a/usr.bin/gprof/gprof.c b/usr.bin/gprof/gprof.c index 6f139ab..1ddc4f1 100644 --- a/usr.bin/gprof/gprof.c +++ b/usr.bin/gprof/gprof.c @@ -86,13 +86,6 @@ main(argc, argv) Cflag = TRUE; cyclethreshold = atoi( *++argv ); break; - case 'c': -#if 0 - cflag = TRUE; -#else - errx(1, "-c isn't supported on this architecture yet"); -#endif - break; case 'd': dflag = TRUE; setlinebuf(stdout); diff --git a/usr.bin/gprof/gprof.h b/usr.bin/gprof/gprof.h index fc0630b..5e44307 100644 --- a/usr.bin/gprof/gprof.h +++ b/usr.bin/gprof/gprof.h @@ -228,7 +228,6 @@ int cyclethreshold; /* with -C, minimum cycle size to ignore */ */ bool aflag; /* suppress static functions */ bool bflag; /* blurbs, too */ -bool cflag; /* discovered call graph, too */ bool Cflag; /* find cut-set to eliminate cycles */ bool dflag; /* debugging options */ bool eflag; /* specific functions excluded */ @@ -284,9 +283,6 @@ void doflags(void); void dotime(void); void dumpsum(char *); int elf_getnfile(const char *, char ***); -/* - findcalls(); -*/ void flatprofheader(void); void flatprofline(nltype *); void getpfile(char *); diff --git a/usr.bin/gprof/i386.c b/usr.bin/gprof/i386.c deleted file mode 100644 index c112763..0000000 --- a/usr.bin/gprof/i386.c +++ /dev/null @@ -1,15 +0,0 @@ -#include <sys/cdefs.h> -__FBSDID("$FreeBSD$"); - -#include "gprof.h" - -/* - * gprof -c isn't currently supported... - */ -void -findcall( parentp , p_lowpc , p_highpc ) - nltype *parentp; - unsigned long p_lowpc; - unsigned long p_highpc; -{ -} diff --git a/usr.bin/gprof/ia64.c b/usr.bin/gprof/ia64.c deleted file mode 100644 index c35cd63..0000000 --- a/usr.bin/gprof/ia64.c +++ /dev/null @@ -1,14 +0,0 @@ -#include <sys/cdefs.h> -__FBSDID("$FreeBSD$"); - -#include "gprof.h" - -/* - * gprof -c isn't currently supported... - */ -findcall( parentp , p_lowpc , p_highpc ) - nltype *parentp; - unsigned long p_lowpc; - unsigned long p_highpc; -{ -} diff --git a/usr.bin/gprof/sparc64.c b/usr.bin/gprof/sparc64.c deleted file mode 100644 index c35cd63..0000000 --- a/usr.bin/gprof/sparc64.c +++ /dev/null @@ -1,14 +0,0 @@ -#include <sys/cdefs.h> -__FBSDID("$FreeBSD$"); - -#include "gprof.h" - -/* - * gprof -c isn't currently supported... - */ -findcall( parentp , p_lowpc , p_highpc ) - nltype *parentp; - unsigned long p_lowpc; - unsigned long p_highpc; -{ -} |