Lines Matching full:map

4 bpftool-map
17 **bpftool** [*OPTIONS*] **map** *COMMAND*
25 MAP COMMANDS
28 | **bpftool** **map** { **show** | **list** } [*MAP*]
29 | **bpftool** **map create** *FILE* **type** *TYPE* **key** *KEY_SIZE* **value** *VALUE_SIZE* \
30 | **entries** *MAX_ENTRIES* **name** *NAME* [**flags** *FLAGS*] [**inner_map** *MAP*] \
32 | **bpftool** **map dump** *MAP*
33 | **bpftool** **map update** *MAP* [**key** *DATA*] [**value** *VALUE*] [*UPDATE_FLAGS*]
34 | **bpftool** **map lookup** *MAP* [**key** *DATA*]
35 | **bpftool** **map getnext** *MAP* [**key** *DATA*]
36 | **bpftool** **map delete** *MAP* **key** *DATA*
37 | **bpftool** **map pin** *MAP* *FILE*
38 | **bpftool** **map event_pipe** *MAP* [**cpu** *N* **index** *M*]
39 | **bpftool** **map peek** *MAP*
40 | **bpftool** **map push** *MAP* **value** *VALUE*
41 | **bpftool** **map pop** *MAP*
42 | **bpftool** **map enqueue** *MAP* **value** *VALUE*
43 | **bpftool** **map dequeue** *MAP*
44 | **bpftool** **map freeze** *MAP*
45 | **bpftool** **map help**
47 | *MAP* := { **id** *MAP_ID* | **pinned** *FILE* | **name** *MAP_NAME* }
50 | *VALUE* := { *DATA* | *MAP* | *PROG* }
62 **bpftool map { show | list }** [*MAP*]
63 Show information about loaded maps. If *MAP* is specified
66 *MAP* may match several maps which will all be shown.
68 Output will start with map ID followed by map type and
76map create** *FILE* **type** *TYPE* **key** *KEY_SIZE* **value** *VALUE_SIZE* **entries** *MAX_EN…
77 Create a new map with given parameters and pin it to *bpffs*
85 **inner_map** keyword must be used to pass an inner map. The
87 that the new map will work with.
90 and is used to request hardware offload for the map.
92 **bpftool map dump** *MAP*
93 Dump all entries in a given *MAP*. In case of **name**,
94 *MAP* may match several maps which will all be dumped.
96 **bpftool map update** *MAP* [**key** *DATA*] [**value** *VALUE*] [*UPDATE_FLAGS*]
97 Update map entry for a given *KEY*.
109 **bpftool map lookup** *MAP* [**key** *DATA*]
110 Lookup **key** in the map.
112 **bpftool map getnext** *MAP* [**key** *DATA*]
115 **bpftool map delete** *MAP* **key** *DATA*
116 Remove entry from the map.
118 **bpftool map pin** *MAP* *FILE*
119 Pin map *MAP* as *FILE*.
125 **bpftool** **map event_pipe** *MAP* [**cpu** *N* **index** *M*]
126 Read events from a **BPF_MAP_TYPE_PERF_EVENT_ARRAY** map.
128 Install perf rings into a perf event array map and dump
141 **bpftool map peek** *MAP*
144 **bpftool map push** *MAP* **value** *VALUE*
147 **bpftool map pop** *MAP*
150 **bpftool map enqueue** *MAP* **value** *VALUE*
153 **bpftool map dequeue** *MAP*
156 **bpftool map freeze** *MAP*
157 Freeze the map as read-only from user space. Entries from a
158 frozen map can not longer be updated or deleted with the
160 and the map remains immutable from user space until its
162 programs to the map remain unchanged.
164 **bpftool map help**
180 **# bpftool map show**
191 | **# bpftool map update id 10 key hex 20 c4 b7 00 value hex 0f ff ff ab 01 02 …
192 | **# bpftool map update id 10 key 0x20 0xc4 0xb7 0x00 value 0x0f 0xff 0xff 0xab 0x01 0x02 …
193 | **# bpftool map update id 10 key 32 196 183 0 value 15 255 255 171 1 2 …
195 **# bpftool map lookup id 10 key 0 1 2 3**
202 **# bpftool map dump id 10**
210 **# bpftool map getnext id 10 key 0 1 2 3**
221 | **# bpftool map pin id 10 /sys/fs/bpf/map**
222 | **# bpftool map del pinned /sys/fs/bpf/map key 13 00 07 00**
224 Note that map update can also be used in order to change the program references
225 hold by a program array map. This can be used, for example, to change the
228 defining a prog array map, and with a main function that contains a tail call
230 processing. Note that the prog array map MUST be pinned into the BPF virtual
231 file system for the map update to work successfully, as kernel flushes prog
254 **# bpftool map**
263 | **# bpftool map pin id 294 /sys/fs/bpf/bar**
264 | **# bpftool map dump pinned /sys/fs/bpf/bar**
271 | **# bpftool map update pinned /sys/fs/bpf/bar key 0 0 0 0 value pinned /sys/fs/bpf/foo/debug**
272 | **# bpftool map dump pinned /sys/fs/bpf/bar**