-h Print usage message.
-t Include a timestamp column.
-p PID Trace this process ID only (filtered in-kernel).
-L Include a LPORT column.
-4 Trace IPv4 family only.
-6 Trace IPv6 family only.
-v Print the resulting BPF program, for debugging purposes.
min_ms Minimum duration to trace, in milliseconds.
Trace all active TCP connections, and show connection latency (SYN->response round trip): # tcpconnlat
Include timestamps: # tcpconnlat -t
Trace PID 181 only: # tcpconnlat -p 181
Trace connects, and include LPORT: # tcpconnlat -L
Trace IPv4 family only: # tcpconnlat -4
Trace IPv6 family only: # tcpconnlat -6
Trace connects with latency longer than 10 ms: # tcpconnlat 10
Print the BPF program: # tcpconnlat -v
TIME(s) Time of the response packet, in seconds.
PID Process ID that initiated the connection.
COMM Process name that initiated the connection.
IP IP address family (4 or 6).
SADDR Source IP address.
DADDR Destination IP address.
LPORT Source port
DPORT Destination port
LAT(ms) The time from when a TCP connect was issued (measured in-kernel) to when a response packet was received for this connection (can be SYN,ACK, or RST, etc). This time spans kernel to kernel latency, involving kernel TCP/IP processing and the network round trip in between. This typically does not include time spent by the application processing the new connection.
Also look in the bcc distribution for a companion _examples.txt file containing example usage, output, and commentary for this tool.