Blame SOURCES/bcc-0.25.0-Fix-some-documentation-issues-4197.patch

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