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 show information
65 system. In case of **name**, *MAP* may match several maps which will all
68 Output will start with map ID followed by map type and zero or more named
75 bpftool map create *FILE* type *TYPE* key *KEY_SIZE* value *VALUE_SIZE* entries *MAX_ENTRIES* name…
76 Create a new map with given parameters and pin it to *bpffs* as *FILE*.
83 keyword must be used to pass an inner map. The kernel needs it to collect
84 metadata related to the inner maps that the new map will work with.
87 request hardware offload for the map.
89 bpftool map dump *MAP*
90 Dump all entries in a given *MAP*. In case of **name**, *MAP* may match
93 bpftool map update *MAP* [key *DATA*] [value *VALUE*] [*UPDATE_FLAGS*]
94 Update map entry for a given *KEY*.
106 bpftool map lookup *MAP* [key *DATA*]
107 Lookup **key** in the map.
109 bpftool map getnext *MAP* [key *DATA*]
112 bpftool map delete *MAP* key *DATA*
113 Remove entry from the map.
115 bpftool map pin *MAP* *FILE*
116 Pin map *MAP* as *FILE*.
121 bpftool map event_pipe *MAP* [cpu *N* index *M*]
122 Read events from a **BPF_MAP_TYPE_PERF_EVENT_ARRAY** map.
124 Install perf rings into a perf event array map and dump output of any
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 frozen map can
154 operation is not reversible, and the map remains immutable from user space
156 to the map remain unchanged.
158 bpftool map help
174 **# bpftool map show**
185 | **# bpftool map update id 10 key hex 20 c4 b7 00 value hex 0f ff ff ab 01 02 …
186 | **# bpftool map update id 10 key 0x20 0xc4 0xb7 0x00 value 0x0f 0xff 0xff 0xab 0x01 0x02 …
187 | **# bpftool map update id 10 key 32 196 183 0 value 15 255 255 171 1 2 …
189 **# bpftool map lookup id 10 key 0 1 2 3**
196 **# bpftool map dump id 10**
204 **# bpftool map getnext id 10 key 0 1 2 3**
215 | **# bpftool map pin id 10 /sys/fs/bpf/map**
216 | **# bpftool map del pinned /sys/fs/bpf/map key 13 00 07 00**
218 Note that map update can also be used in order to change the program references
219 hold by a program array map. This can be used, for example, to change the
222 defining a prog array map, and with a main function that contains a tail call
224 processing. Note that the prog array map MUST be pinned into the BPF virtual
225 file system for the map update to work successfully, as kernel flushes prog
248 **# bpftool map**
257 | **# bpftool map pin id 294 /sys/fs/bpf/bar**
258 | **# bpftool map dump pinned /sys/fs/bpf/bar**
265 | **# bpftool map update pinned /sys/fs/bpf/bar key 0 0 0 0 value pinned /sys/fs/bpf/foo/debug**
266 | **# bpftool map dump pinned /sys/fs/bpf/bar**