Lines Matching full:map

2 bpftool-map
13 **bpftool** [*OPTIONS*] **map** *COMMAND*
21 MAP COMMANDS
24 | **bpftool** **map** { **show** | **list** } [*MAP*]
25 | **bpftool** **map create** *FILE* **type** *TYPE* **key** *KEY_SIZE* **value** *VALUE_SIZE* \
26 | **entries** *MAX_ENTRIES* **name** *NAME* [**flags** *FLAGS*] [**inner_map** *MAP*] \
28 | **bpftool** **map dump** *MAP*
29 | **bpftool** **map update** *MAP* [**key** *DATA*] [**value** *VALUE*] [*UPDATE_FLAGS*]
30 | **bpftool** **map lookup** *MAP* [**key** *DATA*]
31 | **bpftool** **map getnext** *MAP* [**key** *DATA*]
32 | **bpftool** **map delete** *MAP* **key** *DATA*
33 | **bpftool** **map pin** *MAP* *FILE*
34 | **bpftool** **map event_pipe** *MAP* [**cpu** *N* **index** *M*]
35 | **bpftool** **map peek** *MAP*
36 | **bpftool** **map push** *MAP* **value** *VALUE*
37 | **bpftool** **map pop** *MAP*
38 | **bpftool** **map enqueue** *MAP* **value** *VALUE*
39 | **bpftool** **map dequeue** *MAP*
40 | **bpftool** **map freeze** *MAP*
41 | **bpftool** **map help**
43 | *MAP* := { **id** *MAP_ID* | **pinned** *FILE* | **name** *MAP_NAME* }
46 | *VALUE* := { *DATA* | *MAP* | *PROG* }
57 **bpftool map { show | list }** [*MAP*]
58 Show information about loaded maps. If *MAP* is specified
61 *MAP* may match several maps which will all be shown.
63 Output will start with map ID followed by map type and
71map create** *FILE* **type** *TYPE* **key** *KEY_SIZE* **value** *VALUE_SIZE* **entries** *MAX_EN…
72 Create a new map with given parameters and pin it to *bpffs*
80 **inner_map** keyword must be used to pass an inner map. The
82 that the new map will work with.
85 to request hardware offload for the map.
87 **bpftool map dump** *MAP*
88 Dump all entries in a given *MAP*. In case of **name**,
89 *MAP* may match several maps which will all be dumped.
91 **bpftool map update** *MAP* [**key** *DATA*] [**value** *VALUE*] [*UPDATE_FLAGS*]
92 Update map entry for a given *KEY*.
104 **bpftool map lookup** *MAP* [**key** *DATA*]
105 Lookup **key** in the map.
107 **bpftool map getnext** *MAP* [**key** *DATA*]
110 **bpftool map delete** *MAP* **key** *DATA*
111 Remove entry from the map.
113 **bpftool map pin** *MAP* *FILE*
114 Pin map *MAP* as *FILE*.
120 **bpftool** **map event_pipe** *MAP* [**cpu** *N* **index** *M*]
121 Read events from a **BPF_MAP_TYPE_PERF_EVENT_ARRAY** map.
123 Install perf rings into a perf event array map and dump
136 **bpftool map peek** *MAP*
139 **bpftool map push** *MAP* **value** *VALUE*
142 **bpftool map pop** *MAP*
145 **bpftool map enqueue** *MAP* **value** *VALUE*
148 **bpftool map dequeue** *MAP*
151 **bpftool map freeze** *MAP*
152 Freeze the map as read-only from user space. Entries from a
153 frozen map can not longer be updated or deleted with the
155 and the map remains immutable from user space until its
157 programs to the map remain unchanged.
159 **bpftool map help**
175 **# bpftool map show**
186 | **# bpftool map update id 10 key hex 20 c4 b7 00 value hex 0f ff ff ab 01 02 …
187 | **# bpftool map update id 10 key 0x20 0xc4 0xb7 0x00 value 0x0f 0xff 0xff 0xab 0x01 0x02 …
188 | **# bpftool map update id 10 key 32 196 183 0 value 15 255 255 171 1 2 …
190 **# bpftool map lookup id 10 key 0 1 2 3**
197 **# bpftool map dump id 10**
205 **# bpftool map getnext id 10 key 0 1 2 3**
216 | **# bpftool map pin id 10 /sys/fs/bpf/map**
217 | **# bpftool map del pinned /sys/fs/bpf/map key 13 00 07 00**
219 Note that map update can also be used in order to change the program references
220 hold by a program array map. This can be used, for example, to change the
223 defining a prog array map, and with a main function that contains a tail call
225 processing. Note that the prog array map MUST be pinned into the BPF virtual
226 file system for the map update to work successfully, as kernel flushes prog
249 **# bpftool map**
258 | **# bpftool map pin id 294 /sys/fs/bpf/bar**
259 | **# bpftool map dump pinned /sys/fs/bpf/bar**
266 | **# bpftool map update pinned /sys/fs/bpf/bar key 0 0 0 0 value pinned /sys/fs/bpf/foo/debug**
267 | **# bpftool map dump pinned /sys/fs/bpf/bar**