|
|
818e97 |
From 2f6565681e627d11dde0177503100669df020684 Mon Sep 17 00:00:00 2001
|
|
|
818e97 |
From: Jerome Marchand <jmarchan@redhat.com>
|
|
|
818e97 |
Date: Sun, 28 Aug 2022 07:44:01 +0200
|
|
|
818e97 |
Subject: [PATCH] Fix some documentation issues (#4197)
|
|
|
818e97 |
|
|
|
818e97 |
* compactsnoop-manpage: fix the name of the tool in the NAME section
|
|
|
818e97 |
In its manpage, compactsnoop tools is called compacstall in the NAME
|
|
|
818e97 |
section. I don't know where that name comes from, but it should be
|
|
|
818e97 |
compactsnoop.
|
|
|
818e97 |
|
|
|
818e97 |
* dirtop-manpage: use '-d' option in the EXAMPLES section
|
|
|
818e97 |
The mandatory '-d' option of dirtop is missing in the EXAMPLES
|
|
|
818e97 |
section. Copy it from the usage message. Also remove '.py' suffixes.
|
|
|
818e97 |
|
|
|
818e97 |
* funclatency-manpage: fix typo in one of the examples
|
|
|
818e97 |
There is a spurious colon in one of the manpage examples. Remove it.
|
|
|
818e97 |
|
|
|
818e97 |
* tools/killsnoop: add '-s' option in the synopsis of the example file
|
|
|
818e97 |
Commit 33c8b1ac ("Update man page and example file") added '-s' option
|
|
|
818e97 |
to the manpage and an example in the example file, but missed the
|
|
|
818e97 |
sysnopsis in that later case.
|
|
|
818e97 |
|
|
|
818e97 |
* trace-manpage: add missing options (-c,-n,-f and -B) to the synopsis
|
|
|
818e97 |
Copy the full sysopsis from the usage message.
|
|
|
818e97 |
|
|
|
818e97 |
* tcptracer-manpage: add missing '-t' option in the manpage
|
|
|
818e97 |
Add '-t' option to the synopsis and description.
|
|
|
818e97 |
|
|
|
818e97 |
* tcpsubnet-manpage: remove '--ebpf' option from the manpage
|
|
|
818e97 |
This option is explicitly suppressed in argparse and no manpage of
|
|
|
818e97 |
other tools mentions it.
|
|
|
818e97 |
|
|
|
818e97 |
* manpages: remove '.py' suffix from the synopsis of some *snoop tools
|
|
|
818e97 |
Other manpages don't show the suffix, nor do the usage messages.
|
|
|
818e97 |
---
|
|
|
818e97 |
man/man8/bindsnoop.8 | 2 +-
|
|
|
818e97 |
man/man8/compactsnoop.8 | 4 ++--
|
|
|
818e97 |
man/man8/dirtop.8 | 8 ++++----
|
|
|
818e97 |
man/man8/drsnoop.8 | 2 +-
|
|
|
818e97 |
man/man8/funclatency.8 | 2 +-
|
|
|
818e97 |
man/man8/opensnoop.8 | 2 +-
|
|
|
818e97 |
man/man8/tcpsubnet.8 | 5 +----
|
|
|
818e97 |
man/man8/tcptracer.8 | 5 ++++-
|
|
|
818e97 |
man/man8/trace.8 | 6 ++++--
|
|
|
818e97 |
tools/killsnoop_example.txt | 2 ++
|
|
|
818e97 |
10 files changed, 21 insertions(+), 17 deletions(-)
|
|
|
818e97 |
|
|
|
818e97 |
diff --git a/man/man8/bindsnoop.8 b/man/man8/bindsnoop.8
|
|
|
818e97 |
index f8fa1850..0eb42ccb 100644
|
|
|
818e97 |
--- a/man/man8/bindsnoop.8
|
|
|
818e97 |
+++ b/man/man8/bindsnoop.8
|
|
|
818e97 |
@@ -2,7 +2,7 @@
|
|
|
818e97 |
.SH NAME
|
|
|
818e97 |
bindsnoop \- Trace bind() system calls.
|
|
|
818e97 |
.SH SYNOPSIS
|
|
|
818e97 |
-.B bindsnoop.py [\fB-h\fP] [\fB-w\fP] [\fB-t\fP] [\fB-p\fP PID] [\fB-P\fP PORT] [\fB-E\fP] [\fB-U\fP] [\fB-u\fP UID] [\fB--count\fP] [\fB--cgroupmap MAP\fP] [\fB--mntnsmap MNTNSMAP\fP]
|
|
|
818e97 |
+.B bindsnoop [\fB-h\fP] [\fB-w\fP] [\fB-t\fP] [\fB-p\fP PID] [\fB-P\fP PORT] [\fB-E\fP] [\fB-U\fP] [\fB-u\fP UID] [\fB--count\fP] [\fB--cgroupmap MAP\fP] [\fB--mntnsmap MNTNSMAP\fP]
|
|
|
818e97 |
.SH DESCRIPTION
|
|
|
818e97 |
bindsnoop reports socket options set before the bind call that would impact this system call behavior.
|
|
|
818e97 |
.PP
|
|
|
818e97 |
diff --git a/man/man8/compactsnoop.8 b/man/man8/compactsnoop.8
|
|
|
818e97 |
index a2933d7a..e9cde0ce 100644
|
|
|
818e97 |
--- a/man/man8/compactsnoop.8
|
|
|
818e97 |
+++ b/man/man8/compactsnoop.8
|
|
|
818e97 |
@@ -1,8 +1,8 @@
|
|
|
818e97 |
.TH compactsnoop 8 "2019-11-1" "USER COMMANDS"
|
|
|
818e97 |
.SH NAME
|
|
|
818e97 |
-compactstall \- Trace compact zone events. Uses Linux eBPF/bcc.
|
|
|
818e97 |
+compactsnoop \- Trace compact zone events. Uses Linux eBPF/bcc.
|
|
|
818e97 |
.SH SYNOPSIS
|
|
|
818e97 |
-.B compactsnoop.py [\-h] [\-T] [\-p PID] [\-d DURATION] [\-K] [\-e]
|
|
|
818e97 |
+.B compactsnoop [\-h] [\-T] [\-p PID] [\-d DURATION] [\-K] [\-e]
|
|
|
818e97 |
.SH DESCRIPTION
|
|
|
818e97 |
compactsnoop traces the compact zone events, showing which processes are
|
|
|
818e97 |
allocing pages with memory compaction. This can be useful for discovering
|
|
|
818e97 |
diff --git a/man/man8/dirtop.8 b/man/man8/dirtop.8
|
|
|
818e97 |
index cc61a676..eaa0c0c4 100644
|
|
|
818e97 |
--- a/man/man8/dirtop.8
|
|
|
818e97 |
+++ b/man/man8/dirtop.8
|
|
|
818e97 |
@@ -55,19 +55,19 @@ Number of interval summaries.
|
|
|
818e97 |
.TP
|
|
|
818e97 |
Summarize block device I/O by directory, 1 second screen refresh:
|
|
|
818e97 |
#
|
|
|
818e97 |
-.B dirtop.py
|
|
|
818e97 |
+.B dirtop -d '/hdfs/uuid/*/yarn'
|
|
|
818e97 |
.TP
|
|
|
818e97 |
Don't clear the screen, and top 8 rows only:
|
|
|
818e97 |
#
|
|
|
818e97 |
-.B dirtop.py -Cr 8
|
|
|
818e97 |
+.B dirtop -d '/hdfs/uuid/*/yarn' -Cr 8
|
|
|
818e97 |
.TP
|
|
|
818e97 |
5 second summaries, 10 times only:
|
|
|
818e97 |
#
|
|
|
818e97 |
-.B dirtop.py 5 10
|
|
|
818e97 |
+.B dirtop -d '/hdfs/uuid/*/yarn' 5 10
|
|
|
818e97 |
.TP
|
|
|
818e97 |
Report read & write IOs generated in mutliple yarn and data directories:
|
|
|
818e97 |
#
|
|
|
818e97 |
-.B dirtop.py -d '/hdfs/uuid/*/yarn,/hdfs/uuid/*/data'
|
|
|
818e97 |
+.B dirtop -d '/hdfs/uuid/*/yarn,/hdfs/uuid/*/data'
|
|
|
818e97 |
.SH FIELDS
|
|
|
818e97 |
.TP
|
|
|
818e97 |
loadavg:
|
|
|
818e97 |
diff --git a/man/man8/drsnoop.8 b/man/man8/drsnoop.8
|
|
|
818e97 |
index 90ca901f..8fb3789a 100644
|
|
|
818e97 |
--- a/man/man8/drsnoop.8
|
|
|
818e97 |
+++ b/man/man8/drsnoop.8
|
|
|
818e97 |
@@ -2,7 +2,7 @@
|
|
|
818e97 |
.SH NAME
|
|
|
818e97 |
drsnoop \- Trace direct reclaim events. Uses Linux eBPF/bcc.
|
|
|
818e97 |
.SH SYNOPSIS
|
|
|
818e97 |
-.B drsnoop.py [\-h] [\-T] [\-U] [\-p PID] [\-t TID] [\-u UID] [\-d DURATION] [-n name] [-v]
|
|
|
818e97 |
+.B drsnoop [\-h] [\-T] [\-U] [\-p PID] [\-t TID] [\-u UID] [\-d DURATION] [-n name] [-v]
|
|
|
818e97 |
.SH DESCRIPTION
|
|
|
818e97 |
drsnoop trace direct reclaim events, showing which processes are allocing pages
|
|
|
818e97 |
with direct reclaiming. This can be useful for discovering when allocstall (/p-
|
|
|
818e97 |
diff --git a/man/man8/funclatency.8 b/man/man8/funclatency.8
|
|
|
818e97 |
index 9012b832..f96f6098 100644
|
|
|
818e97 |
--- a/man/man8/funclatency.8
|
|
|
818e97 |
+++ b/man/man8/funclatency.8
|
|
|
818e97 |
@@ -89,7 +89,7 @@ Print the BPF program (for debugging purposes).
|
|
|
818e97 |
.TP
|
|
|
818e97 |
Time vfs_read() for process ID 181 only:
|
|
|
818e97 |
#
|
|
|
818e97 |
-.B funclatency \-p 181 vfs_read:
|
|
|
818e97 |
+.B funclatency \-p 181 vfs_read
|
|
|
818e97 |
.TP
|
|
|
818e97 |
Time both vfs_fstat() and vfs_fstatat() calls, by use of a wildcard:
|
|
|
818e97 |
#
|
|
|
818e97 |
diff --git a/man/man8/opensnoop.8 b/man/man8/opensnoop.8
|
|
|
818e97 |
index fee83263..d1888772 100644
|
|
|
818e97 |
--- a/man/man8/opensnoop.8
|
|
|
818e97 |
+++ b/man/man8/opensnoop.8
|
|
|
818e97 |
@@ -2,7 +2,7 @@
|
|
|
818e97 |
.SH NAME
|
|
|
818e97 |
opensnoop \- Trace open() syscalls. Uses Linux eBPF/bcc.
|
|
|
818e97 |
.SH SYNOPSIS
|
|
|
818e97 |
-.B opensnoop.py [\-h] [\-T] [\-U] [\-x] [\-p PID] [\-t TID] [\-u UID]
|
|
|
818e97 |
+.B opensnoop [\-h] [\-T] [\-U] [\-x] [\-p PID] [\-t TID] [\-u UID]
|
|
|
818e97 |
[\-d DURATION] [\-n NAME] [\-e] [\-f FLAG_FILTER]
|
|
|
818e97 |
[--cgroupmap MAPPATH] [--mntnsmap MAPPATH]
|
|
|
818e97 |
.SH DESCRIPTION
|
|
|
818e97 |
diff --git a/man/man8/tcpsubnet.8 b/man/man8/tcpsubnet.8
|
|
|
818e97 |
index 525b8082..ad5f1be1 100644
|
|
|
818e97 |
--- a/man/man8/tcpsubnet.8
|
|
|
818e97 |
+++ b/man/man8/tcpsubnet.8
|
|
|
818e97 |
@@ -2,7 +2,7 @@
|
|
|
818e97 |
.SH NAME
|
|
|
818e97 |
tcpsubnet \- Summarize and aggregate IPv4 TCP traffic by subnet.
|
|
|
818e97 |
.SH SYNOPSIS
|
|
|
818e97 |
-.B tcpsubnet [\-h] [\-v] [\--ebpf] [\-J] [\-f FORMAT] [\-i INTERVAL] [subnets]
|
|
|
818e97 |
+.B tcpsubnet [\-h] [\-v] [\-J] [\-f FORMAT] [\-i INTERVAL] [subnets]
|
|
|
818e97 |
.SH DESCRIPTION
|
|
|
818e97 |
This tool summarizes and aggregates IPv4 TCP sent to the subnets
|
|
|
818e97 |
passed in argument and prints to stdout on a fixed interval.
|
|
|
818e97 |
@@ -35,9 +35,6 @@ Interval between updates, seconds (default 1).
|
|
|
818e97 |
Format output units. Supported values are bkmBKM. When using
|
|
|
818e97 |
kmKM the output will be rounded to floor.
|
|
|
818e97 |
.TP
|
|
|
818e97 |
-\--ebpf
|
|
|
818e97 |
-Prints the BPF program.
|
|
|
818e97 |
-.TP
|
|
|
818e97 |
subnets
|
|
|
818e97 |
Comma separated list of subnets. Traffic will be categorized
|
|
|
818e97 |
in theses subnets. Order matters.
|
|
|
818e97 |
diff --git a/man/man8/tcptracer.8 b/man/man8/tcptracer.8
|
|
|
818e97 |
index 59240f4b..19a6164d 100644
|
|
|
818e97 |
--- a/man/man8/tcptracer.8
|
|
|
818e97 |
+++ b/man/man8/tcptracer.8
|
|
|
818e97 |
@@ -2,7 +2,7 @@
|
|
|
818e97 |
.SH NAME
|
|
|
818e97 |
tcptracer \- Trace TCP established connections. Uses Linux eBPF/bcc.
|
|
|
818e97 |
.SH SYNOPSIS
|
|
|
818e97 |
-.B tcptracer [\-h] [\-v] [\-p PID] [\-N NETNS] [\-\-cgroupmap MAPPATH] [--mntnsmap MAPPATH] [\-4 | \-6]
|
|
|
818e97 |
+.B tcptracer [\-h] [\-v] [-t] [\-p PID] [\-N NETNS] [\-\-cgroupmap MAPPATH] [--mntnsmap MAPPATH] [\-4 | \-6]
|
|
|
818e97 |
.SH DESCRIPTION
|
|
|
818e97 |
This tool traces established TCP connections that open and close while tracing,
|
|
|
818e97 |
and prints a line of output per connect, accept and close events. This includes
|
|
|
818e97 |
@@ -23,6 +23,9 @@ Print usage message.
|
|
|
818e97 |
\-v
|
|
|
818e97 |
Print full lines, with long event type names and network namespace numbers.
|
|
|
818e97 |
.TP
|
|
|
818e97 |
+\-t
|
|
|
818e97 |
+Include timestamp on output
|
|
|
818e97 |
+.TP
|
|
|
818e97 |
\-p PID
|
|
|
818e97 |
Trace this process ID only (filtered in-kernel).
|
|
|
818e97 |
.TP
|
|
|
818e97 |
diff --git a/man/man8/trace.8 b/man/man8/trace.8
|
|
|
818e97 |
index c4417e5f..64a5e799 100644
|
|
|
818e97 |
--- a/man/man8/trace.8
|
|
|
818e97 |
+++ b/man/man8/trace.8
|
|
|
818e97 |
@@ -2,9 +2,11 @@
|
|
|
818e97 |
.SH NAME
|
|
|
818e97 |
trace \- Trace a function and print its arguments or return value, optionally evaluating a filter. Uses Linux eBPF/bcc.
|
|
|
818e97 |
.SH SYNOPSIS
|
|
|
818e97 |
-.B trace [-h] [-b BUFFER_PAGES] [-p PID] [-L TID] [--uid UID] [-v] [-Z STRING_SIZE] [-S] [-s SYM_FILE_LIST]
|
|
|
818e97 |
- [-M MAX_EVENTS] [-t] [-u] [-T] [-C] [-K] [-U] [-a] [-I header] [-A]
|
|
|
818e97 |
+.B trace [-h] [-b BUFFER_PAGES] [-p PID] [-L TID] [--uid UID] [-v] [-Z STRING_SIZE] [-S] [-M MAX_EVENTS] [-t]
|
|
|
818e97 |
+ [-u] [-T] [-C] [-c CGROUP_PATH] [-n NAME] [-f MSG_FILTER] [-B] [-s SYM_FILE_LIST] [-K] [-U] [-a]
|
|
|
818e97 |
+ [-I header] [-A]
|
|
|
818e97 |
probe [probe ...]
|
|
|
818e97 |
+
|
|
|
818e97 |
.SH DESCRIPTION
|
|
|
818e97 |
trace probes functions you specify and displays trace messages if a particular
|
|
|
818e97 |
condition is met. You can control the message format to display function
|
|
|
818e97 |
diff --git a/tools/killsnoop_example.txt b/tools/killsnoop_example.txt
|
|
|
818e97 |
index 7746f2a0..038d09c6 100644
|
|
|
818e97 |
--- a/tools/killsnoop_example.txt
|
|
|
818e97 |
+++ b/tools/killsnoop_example.txt
|
|
|
818e97 |
@@ -27,6 +27,8 @@ Trace signals issued by the kill() syscall
|
|
|
818e97 |
-h, --help show this help message and exit
|
|
|
818e97 |
-x, --failed only show failed kill syscalls
|
|
|
818e97 |
-p PID, --pid PID trace this PID only
|
|
|
818e97 |
+ -s SIGNAL, --signal SIGNAL
|
|
|
818e97 |
+ trace this signal only
|
|
|
818e97 |
|
|
|
818e97 |
examples:
|
|
|
818e97 |
./killsnoop # trace all kill() signals
|
|
|
818e97 |
--
|
|
|
818e97 |
2.38.1
|
|
|
818e97 |
|