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:
parent
c8764bba5a
commit
8eece1e6eb
@ -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
|
||||
|
@ -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;
|
||||
{
|
||||
}
|
@ -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;
|
||||
{
|
||||
}
|
@ -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" ,
|
||||
|
@ -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++ ) {
|
||||
/*
|
||||
|
@ -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;
|
||||
{
|
||||
}
|
@ -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
|
||||
|
@ -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);
|
||||
|
@ -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 *);
|
||||
|
@ -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;
|
||||
{
|
||||
}
|
@ -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;
|
||||
{
|
||||
}
|
@ -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;
|
||||
{
|
||||
}
|
Loading…
Reference in New Issue
Block a user