File bpftrace-bsc1180670-sync-man-page-and-help.patch of Package bpftrace
126
1
From 35dbdccf1d1f34e052f779a26a81962d11846fac Mon Sep 17 00:00:00 2001
2
From: Brahadambal Srinivasan <latha@linux.vnet.ibm.com>
3
Date: Tue, 22 Dec 2020 18:59:21 +0530
4
Subject: [PATCH] bpftrace man page and --help output are not in sync
5
6
The bpftrace man page and the output from --help option are not in
7
sync and have a lot of options missing.
8
9
This patch adds the missing options to the bpftrace as well as order
10
the options in alphabetical order for easy reading.
11
12
Signed-off-by: Brahadambal Srinivasan <latha@linux.vnet.ibm.com>
13
---
14
man/man8/bpftrace.8 | 74 ++++++++++++++++++++++++++++++++++++---------
15
1 file changed, 59 insertions(+), 15 deletions(-)
16
17
diff --git a/man/man8/bpftrace.8 b/man/man8/bpftrace.8
18
index 97ce7e5..f82792a 100644
19
--- a/man/man8/bpftrace.8
20
+++ b/man/man8/bpftrace.8
21
22
.SH "OPTIONS"
23
.
24
.TP
25
-\fB\-l [searchterm]\fR
26
-List probes.
27
+\fB\-B MODE\fR
28
+The buffering mode to be used for output ('full', 'none').
29
+.
30
+.TP
31
+\fB\-b | --btf\fR
32
+Force BTF data processing if it's available. By default it's enabled only if the user does not specify any types/includes.
33
+.
34
+.TP
35
+\fB\-c CMD\fR
36
+Helper to run CMD. Equivalent to manually running CMD and then giving passing the PID to -p. This is useful to ensure
37
+you've traced at least the duration CMD's execution.
38
+.
39
+.TP
40
+\fB\-d\fR
41
+Debug info dry run.
42
+.
43
+.TP
44
+\fB\-dd\fR
45
+Verbose Debug info dry run.
46
.
47
.TP
48
\fB\-e 'PROGRAM'\fR
49
Execute PROGRAM.
50
.
51
.TP
52
-\fB\-p PID\fR
53
-Enable USDT probes on PID. Will terminate bpftrace on PID termination. Note this is not a global PID filter on probes.
54
+\fB\-f FORMAT\fR
55
+The format to be used for output ('text'. 'json').
56
.
57
.TP
58
-\fB\-c CMD\fR
59
-Helper to run CMD. Equivalent to manually running CMD and then giving passing the PID to -p. This is useful to ensure
60
-you've traced at least the duration CMD's execution.
61
+\fB\-h | --help\fR
62
+Show help message.
63
+.
64
+.TP
65
+\fB\-I DIR\fR
66
+Add the directory to the INCLUDE search path.
67
+.
68
+.TP
69
+\fB\--include FILE\fR
70
+Add a #include file before preprocessing.
71
+.
72
+.TP
73
+\fB\--info\fR
74
+Print information about kernel BPF support.
75
+.
76
+.TP
77
+\fB\-k\fR
78
+Emit a warning when a bpf helper returns an error (except read functions).
79
+.
80
+.TP
81
+\fB\-kk\fR
82
+Check all bpf helper functions.
83
+.
84
+.TP
85
+\fB\-l [searchterm]\fR
86
+List probes.
87
+.
88
+.TP
89
+\fB\-o FILE\fR
90
+Redirect bpftrace output to file.
91
+.
92
+.TP
93
+\fB\-p PID\fR
94
+Enable USDT probes on PID. Will terminate bpftrace on PID termination. Note this is not a global PID filter on probes.
95
.
96
.TP
97
\fB\--unsafe\fR
98
99
Unsafe builtin functions are marked as such in \fBBUILTINS (functions)\fR.
100
.
101
.TP
102
-\fB\--btf\fR
103
-Force BTF data processing if it's available. By default it's enabled only if the user does not specify any types/includes.
104
+\fB\--usdt-file-activation\fR
105
+Activate usdt semaphores based on file path..
106
.
107
.TP
108
\fB\-v\fR
109
Verbose messages.
110
.
111
.TP
112
-\fB\-d\fR
113
-Debug info on dry run.
114
-.
115
-.TP
116
-\fB\-dd\fR
117
-Verbose debug info on dry run.
118
+\fB\-V | --version\fR
119
+Print version of bpftrace.
120
.
121
.SH "EXAMPLES"
122
.
123
--
124
2.29.2
125
126