summaryrefslogtreecommitdiff
path: root/usr.bin/gprof
diff options
context:
space:
mode:
authorStefan Farfeleder <stefanf@FreeBSD.org>2004-06-20 11:05:25 +0000
committerStefan Farfeleder <stefanf@FreeBSD.org>2004-06-20 11:05:25 +0000
commit8eece1e6eb46d683cedef335902194fe2bf389f4 (patch)
treecb9dea9d68f8350a536dd0d626eb98e12b6ed452 /usr.bin/gprof
parentc8764bba5a39951f9795699b3002cf787835bc3a (diff)
downloadsrc-test-8eece1e6eb46d683cedef335902194fe2bf389f4.tar.gz
src-test-8eece1e6eb46d683cedef335902194fe2bf389f4.zip
Retire support for gprof's -c option. All our currently supported
architectures only provide a dummy implementation. Silence on: current@
Notes
Notes: svn path=/head/; revision=130776
Diffstat (limited to 'usr.bin/gprof')
-rw-r--r--usr.bin/gprof/Makefile2
-rw-r--r--usr.bin/gprof/alpha.c14
-rw-r--r--usr.bin/gprof/amd64.c15
-rw-r--r--usr.bin/gprof/aout.c3
-rw-r--r--usr.bin/gprof/arcs.c3
-rw-r--r--usr.bin/gprof/arm.c15
-rw-r--r--usr.bin/gprof/gprof.16
-rw-r--r--usr.bin/gprof/gprof.c7
-rw-r--r--usr.bin/gprof/gprof.h4
-rw-r--r--usr.bin/gprof/i386.c15
-rw-r--r--usr.bin/gprof/ia64.c14
-rw-r--r--usr.bin/gprof/sparc64.c14
12 files changed, 1 insertions, 111 deletions
diff --git a/usr.bin/gprof/Makefile b/usr.bin/gprof/Makefile
index 5d776057dfcf3..a24d9cda6c81f 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 c35cd63a5f2ec..0000000000000
--- 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 c112763eafe33..0000000000000
--- 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 349a471f1d9a4..2ccf818f42e01 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 262e6bd9f70f2..3be00dffbc6aa 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 c112763eafe33..0000000000000
--- 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 c881c3e2671bb..c6e8422431941 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 6f139ab27202f..1ddc4f1e7af4f 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 fc0630b667ed4..5e44307456cc2 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 c112763eafe33..0000000000000
--- 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 c35cd63a5f2ec..0000000000000
--- 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 c35cd63a5f2ec..0000000000000
--- 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;
-{
-}