Skip to content

Commit

Permalink
man: fix tcpconnect man page
Browse files Browse the repository at this point in the history
Add -u and -U options to the synopsis.
Move their description frome the example to the description section.
Add a description to --mntnsmap option.
  • Loading branch information
jeromemarchand authored and yonghong-song committed Jul 30, 2020
1 parent 6889afe commit 7ce6f64
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions man/man8/tcpconnect.8
Expand Up @@ -2,7 +2,7 @@
.SH NAME
tcpconnect \- Trace TCP active connections (connect()). Uses Linux eBPF/bcc.
.SH SYNOPSIS
.B tcpconnect [\-h] [\-c] [\-t] [\-p PID] [-P PORT] [\-\-cgroupmap MAPPATH] [\-\-mntnsmap MAPPATH]
.B tcpconnect [\-h] [\-c] [\-t] [\-p PID] [-P PORT] [-u UID] [-U] [\-\-cgroupmap MAPPATH] [\-\-mntnsmap MAPPATH]
.SH DESCRIPTION
This tool traces active TCP connections (eg, via a connect() syscall;
accept() are passive connections). This can be useful for general
Expand Down Expand Up @@ -34,16 +34,19 @@ Trace this process ID only (filtered in-kernel).
\-P PORT
Comma-separated list of destination ports to trace (filtered in-kernel).
.TP
\-\-cgroupmap MAPPATH
Trace cgroups in this BPF map only (filtered in-kernel).
.SH EXAMPLES
.TP
\-U
Include a UID column.
.TP
\-u UID
Trace this UID only (filtered in-kernel).
.TP
\-\-cgroupmap MAPPATH
Trace cgroups in this BPF map only (filtered in-kernel).
.TP
\--mntnsmap MAPPATH
Trace mount namespaces in this BPF map only (filtered in-kernel).
.SH EXAMPLES
.TP
Trace all active TCP connections:
#
.B tcpconnect
Expand Down

0 comments on commit 7ce6f64

Please sign in to comment.