View | Details | Raw Unified | Return to bug 57045
Collapse All | Expand All

(-)usr.sbin/trpt/trpt.8 (-5 lines)
Lines 41-47 Link Here
41
.Op Fl j
41
.Op Fl j
42
.Op Fl p Ar hex-address
42
.Op Fl p Ar hex-address
43
.Op Fl s
43
.Op Fl s
44
.Op Fl t
45
.Oo
44
.Oo
46
.Ar system Op Ar core
45
.Ar system Op Ar core
47
.Oc
46
.Oc
Lines 86-95 Link Here
86
In addition to the normal output,
85
In addition to the normal output,
87
print a detailed description of the packet
86
print a detailed description of the packet
88
sequencing information.
87
sequencing information.
89
.It Fl t
90
In addition to the normal output,
91
print the values for all timers at each
92
point in the trace.
93
.El
88
.El
94
.Pp
89
.Pp
95
The recommended use of
90
The recommended use of
(-)usr.sbin/trpt/trpt.c (-27 / +2 lines)
Lines 90-96 Link Here
90
90
91
static caddr_t tcp_pcbs[TCP_NDEBUG];
91
static caddr_t tcp_pcbs[TCP_NDEBUG];
92
static n_time ntime;
92
static n_time ntime;
93
static int aflag, kflag, memf, follow, sflag, tflag;
93
static int aflag, kflag, memf, follow, sflag;
94
94
95
void dotrace(caddr_t);
95
void dotrace(caddr_t);
96
void klseek(int, off_t, int);
96
void klseek(int, off_t, int);
Lines 108-114 Link Here
108
	nl[1].n_name = strdup("_tcp_debx");
108
	nl[1].n_name = strdup("_tcp_debx");
109
109
110
	jflag = npcbs = 0;
110
	jflag = npcbs = 0;
111
	while ((ch = getopt(argc, argv, "afjp:st")) != -1)
111
	while ((ch = getopt(argc, argv, "afjp:s")) != -1)
112
		switch (ch) {
112
		switch (ch) {
113
		case 'a':
113
		case 'a':
114
			++aflag;
114
			++aflag;
Lines 128-136 Link Here
128
		case 's':
128
		case 's':
129
			++sflag;
129
			++sflag;
130
			break;
130
			break;
131
		case 't':
132
			++tflag;
133
			break;
134
		case '?':
131
		case '?':
135
		default:
132
		default:
136
			usage();
133
			usage();
Lines 427-454 Link Here
427
		    (u_long)tp->snd_wl1,
424
		    (u_long)tp->snd_wl1,
428
		    (u_long)tp->snd_wl2, (u_long)tp->snd_wnd);
425
		    (u_long)tp->snd_wl2, (u_long)tp->snd_wnd);
429
	}
426
	}
430
	/* print out timers? */
431
#if 0
432
	/*
433
	 * XXX 
434
	 * kernel now uses callouts, not integer time values.
435
	 */
436
	if (tflag) {
437
		register char *cp = "\t";
438
		register int i;
439
440
		for (i = 0; i < TCPT_NTIMERS; i++) {
441
			if (tp->t_timer[i] == 0)
442
				continue;
443
			printf("%s%s=%d", cp, tcptimers[i], tp->t_timer[i]);
444
			if (i == TCPT_REXMT)
445
				printf(" (t_rxtshft=%d)", tp->t_rxtshift);
446
			cp = ", ";
447
		}
448
		if (*cp != '\t')
449
			putchar('\n');
450
	}
451
#endif
452
}
427
}
453
428
454
int
429
int

Return to bug 57045