diff --git a/usr.bin/gprof/Makefile b/usr.bin/gprof/Makefile index 5d776057dfcf..a24d9cda6c81 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 c35cd63a5f2e..000000000000 --- a/usr.bin/gprof/alpha.c +++ /dev/null @@ -1,14 +0,0 @@ -#include -__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 c112763eafe3..000000000000 --- a/usr.bin/gprof/amd64.c +++ /dev/null @@ -1,15 +0,0 @@ -#include -__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 349a471f1d9a..2ccf818f42e0 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 262e6bd9f70f..3be00dffbc6a 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 c112763eafe3..000000000000 --- a/usr.bin/gprof/arm.c +++ /dev/null @@ -1,15 +0,0 @@ -#include -__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 c881c3e2671b..c6e842243194 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 6f139ab27202..1ddc4f1e7af4 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 fc0630b667ed..5e44307456cc 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 c112763eafe3..000000000000 --- a/usr.bin/gprof/i386.c +++ /dev/null @@ -1,15 +0,0 @@ -#include -__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 c35cd63a5f2e..000000000000 --- a/usr.bin/gprof/ia64.c +++ /dev/null @@ -1,14 +0,0 @@ -#include -__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 c35cd63a5f2e..000000000000 --- a/usr.bin/gprof/sparc64.c +++ /dev/null @@ -1,14 +0,0 @@ -#include -__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; -{ -}