BSD 4_4 development
[unix-history] / .ref-6294d633e80db8e89697db796e6f6025d5af0cae / usr / src / usr.sbin / trpt / trpt.8
CommitLineData
b42074ab 1.\" Copyright (c) 1983, 1991 The Regents of the University of California.
dbee94a9 2.\" All rights reserved.
79be0566 3.\"
24f519df 4.\" %sccs.include.redist.man%
79be0566 5.\"
b42074ab 6.\" @(#)trpt.8 6.5 (Berkeley) %G%
dbee94a9 7.\"
b42074ab
CL
8.Dd
9.Dt TRPT 8
10.Os BSD 4.2
11.Sh NAME
12.Nm trpt
13.Nd transliterate protocol trace
14.Sh SYNOPSIS
15.Nm trpt
16.Op Fl a
17.Op Fl f
18.Op Fl j
19.Op Fl p Ar hex-address
20.Op Fl s
21.Op Fl t
22.Oo
23.Ar system Op Ar core
24.Oc
25.Sh DESCRIPTION
26.Nm Trpt
27interrogates the buffer of
28.Tn TCP
29trace records created
30when a socket is marked for
31.Dq debugging
32(see
33.Xr setsockopt 2 ) ,
79be0566
KM
34and prints a readable description of these records.
35When no options are supplied,
b42074ab 36.Nm trpt
79be0566 37prints all the trace records found in the system
b42074ab
CL
38grouped according to
39.Tn TCP
40connection protocol control
41block
42.Pq Tn PCB .
43The following options may be used to
79be0566 44alter this behavior.
b42074ab
CL
45.Bl -tag -width Ds
46.It Fl a
47In addition to the normal output,
6e29ad7e
MK
48print the values of the source and destination
49addresses for each packet recorded.
b42074ab
CL
50.It Fl f
51Follow the trace as it occurs, waiting a short time for additional records
52each time the end of the log is reached.
53.It Fl j
54Just give a list of the protocol control block
55addresses for which there are trace records.
56.It Fl p
57Show only trace records associated with the protocol
58control block at the given address
59.Ar hex-address .
60.It Fl s
61In addition to the normal output,
79be0566 62print a detailed description of the packet
6e29ad7e 63sequencing information.
b42074ab 64.It Fl t
79be0566
KM
65in addition to the normal output,
66print the values for all timers at each
6e29ad7e 67point in the trace.
b42074ab
CL
68.El
69.Pp
79be0566 70The recommended use of
b42074ab 71.Nm trpt
79be0566
KM
72is as follows.
73Isolate the problem and enable debugging on the
74socket(s) involved in the connection.
75Find the address of the protocol control blocks
76associated with the sockets using the
b42074ab 77.Fl A
79be0566 78option to
b42074ab 79.Xr netstat 1 .
79be0566 80Then run
b42074ab 81.Nm trpt
79be0566 82with the
b42074ab 83.Fl p
79be0566 84option, supplying the associated
6e29ad7e
MK
85protocol control block addresses.
86The
b42074ab 87.Fl f
6e29ad7e
MK
88option can be used to follow the trace log once the trace is located.
89If there are
79be0566 90many sockets using the debugging option, the
b42074ab 91.Fl j
79be0566
KM
92option may be useful in checking to see if
93any trace records are present for the socket in
94question.
6e29ad7e 95The
b42074ab 96.Pp
79be0566
KM
97If debugging is being performed on a system or
98core file other than the default, the last two
99arguments may be used to supplant the defaults.
b42074ab
CL
100.Sh FILES
101.Bl -tag -width /dev/kmem -compact
102.It Pa /vmunix
103.It Pa /dev/kmem
104.El
105.Sh SEE ALSO
106.Xr netstat 1 ,
107.Xr setsockopt 2 ,
108.Xr trsp 8
109.Sh DIAGNOSTICS
110.Bl -tag -width Ds
111.It Sy no namelist
112When the system image doesn't
79be0566
KM
113contain the proper symbols to find the trace buffer;
114others which should be self explanatory.
b42074ab
CL
115.El
116.Sh BUGS
79be0566
KM
117Should also print the data for each input or output,
118but this is not saved in the race record.
b42074ab 119.Pp
79be0566
KM
120The output format is inscrutable and should be described
121here.
b42074ab
CL
122.Sh HISTORY
123The
124.Nm
125command appeared in
126.Bx 4.2 .