aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/trpt
diff options
context:
space:
mode:
authorConrad Meyer <cem@FreeBSD.org>2018-02-15 18:26:45 +0000
committerConrad Meyer <cem@FreeBSD.org>2018-02-15 18:26:45 +0000
commit54b4d5e1061067e5773f296619171798256f88e7 (patch)
tree99aba0a554d4fde6bbae970ee23a360f6daa747d /usr.sbin/trpt
parentd266177a8eda88cdc069fc029a5e179a4fce1274 (diff)
downloadsrc-54b4d5e1061067e5773f296619171798256f88e7.tar.gz
src-54b4d5e1061067e5773f296619171798256f88e7.zip
trpt(8): Fully remove and undocument '-t' option disabled in 1999
The relevant code was commented out in r50680. PR: 57045 Submitted by: Fernando ApesteguĂ­a <fernando.apesteguia AT gmail.com>
Notes
Notes: svn path=/head/; revision=329331
Diffstat (limited to 'usr.sbin/trpt')
-rw-r--r--usr.sbin/trpt/trpt.87
-rw-r--r--usr.sbin/trpt/trpt.c31
2 files changed, 4 insertions, 34 deletions
diff --git a/usr.sbin/trpt/trpt.8 b/usr.sbin/trpt/trpt.8
index 0ec389caaf1f..3c66f5afe761 100644
--- a/usr.sbin/trpt/trpt.8
+++ b/usr.sbin/trpt/trpt.8
@@ -28,7 +28,7 @@
.\" @(#)trpt.8 8.2 (Berkeley) 12/11/93
.\" $FreeBSD$
.\"
-.Dd December 11, 1993
+.Dd February 15, 2018
.Dt TRPT 8
.Os
.Sh NAME
@@ -41,7 +41,6 @@
.Op Fl j
.Op Fl p Ar hex-address
.Op Fl s
-.Op Fl t
.Oo
.Ar system Op Ar core
.Oc
@@ -86,10 +85,6 @@ control block at the given address
In addition to the normal output,
print a detailed description of the packet
sequencing information.
-.It Fl t
-In addition to the normal output,
-print the values for all timers at each
-point in the trace.
.El
.Pp
The recommended use of
diff --git a/usr.sbin/trpt/trpt.c b/usr.sbin/trpt/trpt.c
index ff9bf5c5fae4..eefdafb7927d 100644
--- a/usr.sbin/trpt/trpt.c
+++ b/usr.sbin/trpt/trpt.c
@@ -90,7 +90,7 @@ struct nlist nl[3];
static caddr_t tcp_pcbs[TCP_NDEBUG];
static n_time ntime;
-static int aflag, kflag, memf, follow, sflag, tflag;
+static int aflag, kflag, memf, follow, sflag;
void dotrace(caddr_t);
void klseek(int, off_t, int);
@@ -108,7 +108,7 @@ main(int argc, char **argv)
nl[1].n_name = strdup("_tcp_debx");
jflag = npcbs = 0;
- while ((ch = getopt(argc, argv, "afjp:st")) != -1)
+ while ((ch = getopt(argc, argv, "afjp:s")) != -1)
switch (ch) {
case 'a':
++aflag;
@@ -128,9 +128,6 @@ main(int argc, char **argv)
case 's':
++sflag;
break;
- case 't':
- ++tflag;
- break;
case '?':
default:
usage();
@@ -216,7 +213,7 @@ static void
usage()
{
(void)fprintf(stderr,
- "usage: trpt [-afjst] [-p hex-address] [system [core]]\n");
+ "usage: trpt [-afjs] [-p hex-address] [system [core]]\n");
exit(1);
}
@@ -427,28 +424,6 @@ tcp_trace(short act, short ostate, struct tcpcb *tp, int family __unused,
(u_long)tp->snd_wl1,
(u_long)tp->snd_wl2, (u_long)tp->snd_wnd);
}
- /* print out timers? */
-#if 0
- /*
- * XXX
- * kernel now uses callouts, not integer time values.
- */
- if (tflag) {
- register char *cp = "\t";
- register int i;
-
- for (i = 0; i < TCPT_NTIMERS; i++) {
- if (tp->t_timer[i] == 0)
- continue;
- printf("%s%s=%d", cp, tcptimers[i], tp->t_timer[i]);
- if (i == TCPT_REXMT)
- printf(" (t_rxtshft=%d)", tp->t_rxtshift);
- cp = ", ";
- }
- if (*cp != '\t')
- putchar('\n');
- }
-#endif
}
int