Skip to content

Commit 214eb3e

Browse files
rameezrehman408qmonnet
authored andcommitted
bpftool: Remove useless emphasis on command description in man pages
As it turns out, the terms in definition lists in the rST file are already rendered with bold-ish formatting when generating the man pages; all double-star sequences we have in the commands for the command description are unnecessary, and can be removed to make the documentation easier to read. The rST files were automatically processed with: sed -i '/DESCRIPTION/,/OPTIONS/ { /^\*/ s/\*\*//g }' b*.rst Signed-off-by: Rameez Rehman <[email protected]> Signed-off-by: Quentin Monnet <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
1 parent 0451298 commit 214eb3e

11 files changed

+61
-61
lines changed

docs/bpftool-btf.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ BTF COMMANDS
3434
3535
DESCRIPTION
3636
===========
37-
**bpftool btf { show | list }** [**id** *BTF_ID*]
37+
bpftool btf { show | list } [id *BTF_ID*]
3838
Show information about loaded BTF objects. If a BTF ID is specified, show
3939
information only about given BTF object, otherwise list all BTF objects
4040
currently loaded on the system.
@@ -43,7 +43,7 @@ DESCRIPTION
4343
that hold open file descriptors (FDs) against BTF objects. On such kernels
4444
bpftool will automatically emit this information as well.
4545

46-
**bpftool btf dump** *BTF_SRC*
46+
bpftool btf dump *BTF_SRC*
4747
Dump BTF entries from a given *BTF_SRC*.
4848

4949
When **id** is specified, BTF object with that ID will be loaded and all
@@ -65,7 +65,7 @@ DESCRIPTION
6565
**format** option can be used to override default (raw) output format. Raw
6666
(**raw**) or C-syntax (**c**) output formats are supported.
6767

68-
**bpftool btf help**
68+
bpftool btf help
6969
Print short help message.
7070

7171
OPTIONS

docs/bpftool-cgroup.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ CGROUP COMMANDS
4949
5050
DESCRIPTION
5151
===========
52-
**bpftool cgroup { show | list }** *CGROUP* [**effective**]
52+
bpftool cgroup { show | list } *CGROUP* [effective]
5353
List all programs attached to the cgroup *CGROUP*.
5454

5555
Output will start with program ID followed by attach type, attach flags and
@@ -59,7 +59,7 @@ DESCRIPTION
5959
for events within a cgroup. This includes inherited along with attached
6060
ones.
6161

62-
**bpftool cgroup tree** [*CGROUP_ROOT*] [**effective**]
62+
bpftool cgroup tree [*CGROUP_ROOT*] [effective]
6363
Iterate over all cgroups in *CGROUP_ROOT* and list all attached programs.
6464
If *CGROUP_ROOT* is not specified, bpftool uses cgroup v2 mountpoint.
6565

@@ -71,7 +71,7 @@ DESCRIPTION
7171
for events within a cgroup. This includes inherited along with attached
7272
ones.
7373

74-
**bpftool cgroup attach** *CGROUP* *ATTACH_TYPE* *PROG* [*ATTACH_FLAGS*]
74+
bpftool cgroup attach *CGROUP* *ATTACH_TYPE* *PROG* [*ATTACH_FLAGS*]
7575
Attach program *PROG* to the cgroup *CGROUP* with attach type *ATTACH_TYPE*
7676
and optional *ATTACH_FLAGS*.
7777

@@ -126,10 +126,10 @@ DESCRIPTION
126126
**getsockname_unix** call to getsockname(2) for a unix socket (since 6.7);
127127
**sock_release** closing an userspace inet socket (since 5.9).
128128

129-
**bpftool cgroup detach** *CGROUP* *ATTACH_TYPE* *PROG*
129+
bpftool cgroup detach *CGROUP* *ATTACH_TYPE* *PROG*
130130
Detach *PROG* from the cgroup *CGROUP* and attach type *ATTACH_TYPE*.
131131

132-
**bpftool prog help**
132+
bpftool prog help
133133
Print short help message.
134134

135135
OPTIONS

docs/bpftool-feature.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ FEATURE COMMANDS
3232
3333
DESCRIPTION
3434
===========
35-
**bpftool feature probe** [**kernel**] [**full**] [**macros** [**prefix** *PREFIX*]]
35+
bpftool feature probe [kernel] [full] [macros [prefix *PREFIX*]]
3636
Probe the running kernel and dump a number of eBPF-related parameters, such
3737
as availability of the **bpf**\ () system call, JIT status, eBPF program
3838
types availability, eBPF helper functions availability, and more.
@@ -59,14 +59,14 @@ DESCRIPTION
5959
bpftool is inadvertently run as non-root, for example. This keyword is
6060
unavailable if bpftool was compiled without libcap.
6161

62-
**bpftool feature probe dev** *NAME* [**full**] [**macros** [**prefix** *PREFIX*]]
62+
bpftool feature probe dev *NAME* [full] [macros [prefix *PREFIX*]]
6363
Probe network device for supported eBPF features and dump results to the
6464
console.
6565

6666
The keywords **full**, **macros** and **prefix** have the same role as when
6767
probing the kernel.
6868

69-
**bpftool feature list_builtins** *GROUP*
69+
bpftool feature list_builtins *GROUP*
7070
List items known to bpftool. These can be BPF program types
7171
(**prog_types**), BPF map types (**map_types**), attach types
7272
(**attach_types**), link types (**link_types**), or BPF helper functions
@@ -75,7 +75,7 @@ DESCRIPTION
7575
(for all object types) or from the BPF UAPI header (list of helpers). This
7676
can be used in scripts to iterate over BPF types or helpers.
7777

78-
**bpftool feature help**
78+
bpftool feature help
7979
Print short help message.
8080

8181
OPTIONS

docs/bpftool-gen.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ GEN COMMANDS
3131
3232
DESCRIPTION
3333
===========
34-
**bpftool gen object** *OUTPUT_FILE* *INPUT_FILE* [*INPUT_FILE*...]
34+
bpftool gen object *OUTPUT_FILE* *INPUT_FILE* [*INPUT_FILE*...]
3535
Statically link (combine) together one or more *INPUT_FILE*'s into a single
3636
resulting *OUTPUT_FILE*. All the files involved are BPF ELF object files.
3737

@@ -48,7 +48,7 @@ DESCRIPTION
4848
command) or passed directly into **libbpf** (using **bpf_object__open()**
4949
family of APIs).
5050

51-
**bpftool gen skeleton** *FILE*
51+
bpftool gen skeleton *FILE*
5252
Generate BPF skeleton C header file for a given *FILE*.
5353

5454
BPF skeleton is an alternative interface to existing libbpf APIs for
@@ -132,7 +132,7 @@ DESCRIPTION
132132
used to fetch and update (non-read-only) data from userspace, with same
133133
simplicity as for BPF side.
134134

135-
**bpftool gen subskeleton** *FILE*
135+
bpftool gen subskeleton *FILE*
136136
Generate BPF subskeleton C header file for a given *FILE*.
137137

138138
Subskeletons are similar to skeletons, except they do not own the
@@ -154,7 +154,7 @@ DESCRIPTION
154154
Frees the storage for the subskeleton but *does not* unload any BPF
155155
programs or maps.
156156

157-
**bpftool** **gen min_core_btf** *INPUT* *OUTPUT* *OBJECT* [*OBJECT*...]
157+
bpftool gen min_core_btf *INPUT* *OUTPUT* *OBJECT* [*OBJECT*...]
158158
Generate a minimum BTF file as *OUTPUT*, derived from a given *INPUT* BTF
159159
file, containing all needed BTF types so one, or more, given eBPF objects
160160
CO-RE relocations may be satisfied.
@@ -174,7 +174,7 @@ DESCRIPTION
174174

175175
Check examples bellow for more information how to use it.
176176

177-
**bpftool gen help**
177+
bpftool gen help
178178
Print short help message.
179179

180180
OPTIONS

docs/bpftool-iter.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ ITER COMMANDS
3131
3232
DESCRIPTION
3333
===========
34-
**bpftool iter pin** *OBJ* *PATH* [**map** *MAP*]
34+
bpftool iter pin *OBJ* *PATH* [map *MAP*]
3535
A bpf iterator combines a kernel iterating of particular kernel data (e.g.,
3636
tasks, bpf_maps, etc.) and a bpf program called for each kernel data object
3737
(e.g., one task, one bpf_map, etc.). User space can *read* kernel iterator
@@ -48,7 +48,7 @@ DESCRIPTION
4848

4949
User can then *cat PATH* to see the bpf iterator output.
5050

51-
**bpftool iter help**
51+
bpftool iter help
5252
Print short help message.
5353

5454
OPTIONS

docs/bpftool-link.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ LINK COMMANDS
3333

3434
DESCRIPTION
3535
===========
36-
**bpftool link { show | list }** [*LINK*]
36+
bpftool link { show | list } [*LINK*]
3737
Show information about active links. If *LINK* is specified show
3838
information only about given link, otherwise list all links currently
3939
active on the system.
@@ -45,19 +45,19 @@ DESCRIPTION
4545
that hold open file descriptors (FDs) against BPF links. On such kernels
4646
bpftool will automatically emit this information as well.
4747

48-
**bpftool link pin** *LINK* *FILE*
48+
bpftool link pin *LINK* *FILE*
4949
Pin link *LINK* as *FILE*.
5050

5151
Note: *FILE* must be located in *bpffs* mount. It must not contain a dot
5252
character ('.'), which is reserved for future extensions of *bpffs*.
5353

54-
**bpftool link detach** *LINK*
54+
bpftool link detach *LINK*
5555
Force-detach link *LINK*. BPF link and its underlying BPF program will stay
5656
valid, but they will be detached from the respective BPF hook and BPF link
5757
will transition into a defunct state until last open file descriptor for
5858
that link is closed.
5959

60-
**bpftool link help**
60+
bpftool link help
6161
Print short help message.
6262

6363
OPTIONS

docs/bpftool-map.rst

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ MAP COMMANDS
5959
6060
DESCRIPTION
6161
===========
62-
**bpftool map { show | list }** [*MAP*]
62+
bpftool map { show | list } [*MAP*]
6363
Show information about loaded maps. If *MAP* is specified show information
6464
only about given maps, otherwise list all maps currently loaded on the
6565
system. In case of **name**, *MAP* may match several maps which will all
@@ -72,7 +72,7 @@ DESCRIPTION
7272
that hold open file descriptors (FDs) against BPF maps. On such kernels
7373
bpftool will automatically emit this information as well.
7474

75-
**bpftool map create** *FILE* **type** *TYPE* **key** *KEY_SIZE* **value** *VALUE_SIZE* **entries** *MAX_ENTRIES* **name** *NAME* [**flags** *FLAGS*] [**inner_map** *MAP*] [**offload_dev** *NAME*]
75+
bpftool map create *FILE* type *TYPE* key *KEY_SIZE* value *VALUE_SIZE* entries *MAX_ENTRIES* name *NAME* [flags *FLAGS*] [inner_map *MAP*] [offload_dev *NAME*]
7676
Create a new map with given parameters and pin it to *bpffs* as *FILE*.
7777

7878
*FLAGS* should be an integer which is the combination of desired flags,
@@ -86,11 +86,11 @@ DESCRIPTION
8686
Keyword **offload_dev** expects a network interface name, and is used to
8787
request hardware offload for the map.
8888

89-
**bpftool map dump** *MAP*
89+
bpftool map dump *MAP*
9090
Dump all entries in a given *MAP*. In case of **name**, *MAP* may match
9191
several maps which will all be dumped.
9292

93-
**bpftool map update** *MAP* [**key** *DATA*] [**value** *VALUE*] [*UPDATE_FLAGS*]
93+
bpftool map update *MAP* [key *DATA*] [value *VALUE*] [*UPDATE_FLAGS*]
9494
Update map entry for a given *KEY*.
9595

9696
*UPDATE_FLAGS* can be one of: **any** update existing entry or add if
@@ -103,22 +103,22 @@ DESCRIPTION
103103
unless a "0x" prefix (for hexadecimal) or a "0" prefix (for octal) is
104104
provided.
105105

106-
**bpftool map lookup** *MAP* [**key** *DATA*]
106+
bpftool map lookup *MAP* [key *DATA*]
107107
Lookup **key** in the map.
108108

109-
**bpftool map getnext** *MAP* [**key** *DATA*]
109+
bpftool map getnext *MAP* [key *DATA*]
110110
Get next key. If *key* is not specified, get first key.
111111

112-
**bpftool map delete** *MAP* **key** *DATA*
112+
bpftool map delete *MAP* key *DATA*
113113
Remove entry from the map.
114114

115-
**bpftool map pin** *MAP* *FILE*
115+
bpftool map pin *MAP* *FILE*
116116
Pin map *MAP* as *FILE*.
117117

118118
Note: *FILE* must be located in *bpffs* mount. It must not contain a dot
119119
character ('.'), which is reserved for future extensions of *bpffs*.
120120

121-
**bpftool** **map event_pipe** *MAP* [**cpu** *N* **index** *M*]
121+
bpftool map event_pipe *MAP* [cpu *N* index *M*]
122122
Read events from a **BPF_MAP_TYPE_PERF_EVENT_ARRAY** map.
123123

124124
Install perf rings into a perf event array map and dump output of any
@@ -133,29 +133,29 @@ DESCRIPTION
133133
existing ring. Any other application will stop receiving events if it
134134
installed its rings earlier.
135135

136-
**bpftool map peek** *MAP*
136+
bpftool map peek *MAP*
137137
Peek next value in the queue or stack.
138138

139-
**bpftool map push** *MAP* **value** *VALUE*
139+
bpftool map push *MAP* value *VALUE*
140140
Push *VALUE* onto the stack.
141141

142-
**bpftool map pop** *MAP*
142+
bpftool map pop *MAP*
143143
Pop and print value from the stack.
144144

145-
**bpftool map enqueue** *MAP* **value** *VALUE*
145+
bpftool map enqueue *MAP* value *VALUE*
146146
Enqueue *VALUE* into the queue.
147147

148-
**bpftool map dequeue** *MAP*
148+
bpftool map dequeue *MAP*
149149
Dequeue and print value from the queue.
150150

151-
**bpftool map freeze** *MAP*
151+
bpftool map freeze *MAP*
152152
Freeze the map as read-only from user space. Entries from a frozen map can
153153
not longer be updated or deleted with the **bpf**\ () system call. This
154154
operation is not reversible, and the map remains immutable from user space
155155
until its destruction. However, read and write permissions for BPF programs
156156
to the map remain unchanged.
157157

158-
**bpftool map help**
158+
bpftool map help
159159
Print short help message.
160160

161161
OPTIONS

docs/bpftool-net.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ NET COMMANDS
3333
3434
DESCRIPTION
3535
===========
36-
**bpftool net { show | list }** [ **dev** *NAME* ]
36+
bpftool net { show | list } [ dev *NAME* ]
3737
List bpf program attachments in the kernel networking subsystem.
3838

3939
Currently, device driver xdp attachments, tcx, netkit and old-style tc
@@ -58,7 +58,7 @@ DESCRIPTION
5858
then all bpf programs attached to non clsact qdiscs, and finally all bpf
5959
programs attached to root and clsact qdisc.
6060

61-
**bpftool** **net attach** *ATTACH_TYPE* *PROG* **dev** *NAME* [ **overwrite** ]
61+
bpftool net attach *ATTACH_TYPE* *PROG* dev *NAME* [ overwrite ]
6262
Attach bpf program *PROG* to network interface *NAME* with type specified
6363
by *ATTACH_TYPE*. Previously attached bpf program can be replaced by the
6464
command used with **overwrite** option. Currently, only XDP-related modes
@@ -70,13 +70,13 @@ DESCRIPTION
7070
**xdpdrv** - Native XDP. runs earliest point in driver's receive path;
7171
**xdpoffload** - Offload XDP. runs directly on NIC on each packet reception;
7272

73-
**bpftool** **net detach** *ATTACH_TYPE* **dev** *NAME*
73+
bpftool net detach *ATTACH_TYPE* dev *NAME*
7474
Detach bpf program attached to network interface *NAME* with type specified
7575
by *ATTACH_TYPE*. To detach bpf program, same *ATTACH_TYPE* previously used
7676
for attach must be specified. Currently, only XDP-related modes are
7777
supported for *ATTACH_TYPE*.
7878

79-
**bpftool net help**
79+
bpftool net help
8080
Print short help message.
8181

8282
OPTIONS

docs/bpftool-perf.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ PERF COMMANDS
2929
3030
DESCRIPTION
3131
===========
32-
**bpftool perf { show | list }**
32+
bpftool perf { show | list }
3333
List all raw_tracepoint, tracepoint, kprobe attachment in the system.
3434

3535
Output will start with process id and file descriptor in that process,
@@ -39,7 +39,7 @@ DESCRIPTION
3939
kernel virtual address. The attachment point for u[ret]probe is the file
4040
name and the file offset.
4141

42-
**bpftool perf help**
42+
bpftool perf help
4343
Print short help message.
4444

4545
OPTIONS

0 commit comments

Comments
 (0)