1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-03 12:35:02 +00:00

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
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=130776
12 changed files with 1 additions and 111 deletions

View File

@ -2,7 +2,7 @@
# $FreeBSD$ # $FreeBSD$
PROG= gprof 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 printgprof.c printlist.c kernel.c
FILES= gprof.flat gprof.callg FILES= gprof.flat gprof.callg
FILESDIR= ${SHAREDIR}/misc 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) gettextspace(FILE *nfile)
{ {
if ( cflag == 0 ) {
return;
}
textspace = (u_char *) malloc( xbuf.a_text ); textspace = (u_char *) malloc( xbuf.a_text );
if ( textspace == 0 ) { if ( textspace == 0 ) {
warnx("no room for %lu bytes of text space: can't do -c" , warnx("no room for %lu bytes of text space: can't do -c" ,

View File

@ -149,9 +149,6 @@ doarcs()
parentp -> cycleno = 0; parentp -> cycleno = 0;
parentp -> cyclehead = parentp; parentp -> cyclehead = parentp;
parentp -> cnext = 0; parentp -> cnext = 0;
if ( cflag ) {
findcall( parentp , parentp -> value , (parentp+1) -> value );
}
} }
for ( pass = 1 ; ; pass++ ) { 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. file.
.It Fl b .It Fl b
Suppress the printing of a description of each field in the profile. 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 .It Fl C Ar count
Find a minimal set of arcs that can be broken to eliminate all cycles with Find a minimal set of arcs that can be broken to eliminate all cycles with
.Ar count .Ar count

View File

@ -86,13 +86,6 @@ main(argc, argv)
Cflag = TRUE; Cflag = TRUE;
cyclethreshold = atoi( *++argv ); cyclethreshold = atoi( *++argv );
break; break;
case 'c':
#if 0
cflag = TRUE;
#else
errx(1, "-c isn't supported on this architecture yet");
#endif
break;
case 'd': case 'd':
dflag = TRUE; dflag = TRUE;
setlinebuf(stdout); setlinebuf(stdout);

View File

@ -228,7 +228,6 @@ int cyclethreshold; /* with -C, minimum cycle size to ignore */
*/ */
bool aflag; /* suppress static functions */ bool aflag; /* suppress static functions */
bool bflag; /* blurbs, too */ bool bflag; /* blurbs, too */
bool cflag; /* discovered call graph, too */
bool Cflag; /* find cut-set to eliminate cycles */ bool Cflag; /* find cut-set to eliminate cycles */
bool dflag; /* debugging options */ bool dflag; /* debugging options */
bool eflag; /* specific functions excluded */ bool eflag; /* specific functions excluded */
@ -284,9 +283,6 @@ void doflags(void);
void dotime(void); void dotime(void);
void dumpsum(char *); void dumpsum(char *);
int elf_getnfile(const char *, char ***); int elf_getnfile(const char *, char ***);
/*
findcalls();
*/
void flatprofheader(void); void flatprofheader(void);
void flatprofline(nltype *); void flatprofline(nltype *);
void getpfile(char *); 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;
{
}