@@ -59,7 +59,7 @@ MAP COMMANDS
59
59
60
60
DESCRIPTION
61
61
===========
62
- ** bpftool map { show | list } ** [*MAP *]
62
+ bpftool map { show | list } [*MAP *]
63
63
Show information about loaded maps. If *MAP * is specified show information
64
64
only about given maps, otherwise list all maps currently loaded on the
65
65
system. In case of **name **, *MAP * may match several maps which will all
@@ -72,7 +72,7 @@ DESCRIPTION
72
72
that hold open file descriptors (FDs) against BPF maps. On such kernels
73
73
bpftool will automatically emit this information as well.
74
74
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 *]
76
76
Create a new map with given parameters and pin it to *bpffs * as *FILE *.
77
77
78
78
*FLAGS * should be an integer which is the combination of desired flags,
@@ -86,11 +86,11 @@ DESCRIPTION
86
86
Keyword **offload_dev ** expects a network interface name, and is used to
87
87
request hardware offload for the map.
88
88
89
- ** bpftool map dump ** *MAP *
89
+ bpftool map dump *MAP *
90
90
Dump all entries in a given *MAP *. In case of **name **, *MAP * may match
91
91
several maps which will all be dumped.
92
92
93
- ** bpftool map update ** *MAP * [** key ** *DATA *] [** value ** *VALUE *] [*UPDATE_FLAGS *]
93
+ bpftool map update *MAP * [key *DATA *] [value *VALUE *] [*UPDATE_FLAGS *]
94
94
Update map entry for a given *KEY *.
95
95
96
96
*UPDATE_FLAGS * can be one of: **any ** update existing entry or add if
@@ -103,22 +103,22 @@ DESCRIPTION
103
103
unless a "0x" prefix (for hexadecimal) or a "0" prefix (for octal) is
104
104
provided.
105
105
106
- ** bpftool map lookup ** *MAP * [** key ** *DATA *]
106
+ bpftool map lookup *MAP * [key *DATA *]
107
107
Lookup **key ** in the map.
108
108
109
- ** bpftool map getnext ** *MAP * [** key ** *DATA *]
109
+ bpftool map getnext *MAP * [key *DATA *]
110
110
Get next key. If *key * is not specified, get first key.
111
111
112
- ** bpftool map delete ** *MAP * ** key ** *DATA *
112
+ bpftool map delete *MAP * key *DATA *
113
113
Remove entry from the map.
114
114
115
- ** bpftool map pin ** *MAP * *FILE *
115
+ bpftool map pin *MAP * *FILE *
116
116
Pin map *MAP * as *FILE *.
117
117
118
118
Note: *FILE * must be located in *bpffs * mount. It must not contain a dot
119
119
character ('.'), which is reserved for future extensions of *bpffs *.
120
120
121
- ** bpftool ** ** map event_pipe ** *MAP * [** cpu ** *N * ** index ** *M *]
121
+ bpftool map event_pipe *MAP * [cpu *N * index *M *]
122
122
Read events from a **BPF_MAP_TYPE_PERF_EVENT_ARRAY ** map.
123
123
124
124
Install perf rings into a perf event array map and dump output of any
@@ -133,29 +133,29 @@ DESCRIPTION
133
133
existing ring. Any other application will stop receiving events if it
134
134
installed its rings earlier.
135
135
136
- ** bpftool map peek ** *MAP *
136
+ bpftool map peek *MAP *
137
137
Peek next value in the queue or stack.
138
138
139
- ** bpftool map push ** *MAP * ** value ** *VALUE *
139
+ bpftool map push *MAP * value *VALUE *
140
140
Push *VALUE * onto the stack.
141
141
142
- ** bpftool map pop ** *MAP *
142
+ bpftool map pop *MAP *
143
143
Pop and print value from the stack.
144
144
145
- ** bpftool map enqueue ** *MAP * ** value ** *VALUE *
145
+ bpftool map enqueue *MAP * value *VALUE *
146
146
Enqueue *VALUE * into the queue.
147
147
148
- ** bpftool map dequeue ** *MAP *
148
+ bpftool map dequeue *MAP *
149
149
Dequeue and print value from the queue.
150
150
151
- ** bpftool map freeze ** *MAP *
151
+ bpftool map freeze *MAP *
152
152
Freeze the map as read-only from user space. Entries from a frozen map can
153
153
not longer be updated or deleted with the **bpf **\ () system call. This
154
154
operation is not reversible, and the map remains immutable from user space
155
155
until its destruction. However, read and write permissions for BPF programs
156
156
to the map remain unchanged.
157
157
158
- ** bpftool map help **
158
+ bpftool map help
159
159
Print short help message.
160
160
161
161
OPTIONS
0 commit comments