Retire support for gprof's -c option. All our currently supported

architectures only provide a dummy implementation.

Silence on:	current@
This commit is contained in:
Stefan Farfeleder 2004-06-20 11:05:25 +00:00
parent c8764bba5a
commit 8eece1e6eb
12 changed files with 1 additions and 111 deletions

View File

@ -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

View File

@ -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;
{
}

View File

@ -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;
{
}

View File

@ -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" ,

View File

@ -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++ ) {
/*

View File

@ -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;
{
}

View File

@ -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

View File

@ -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);

View File

@ -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 *);

View File

@ -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;
{
}

View File

@ -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;
{
}

View File

@ -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;
{
}