Line 1:
Line 1:
−
== Initial Support for BPF Maps ==
−
BPF maps are kernel objects which store data (used by BPF programs) in the form of key-value pairs. Applications access BPF maps using file descriptors. C/R of BPF maps involves serializing their ''meta-data'' and ''data'':
BPF maps are kernel objects which store data (used by BPF programs) in the form of key-value pairs. Applications access BPF maps using file descriptors. C/R of BPF maps involves serializing their ''meta-data'' and ''data'':
Line 6:
Line 4:
: '''Data''' - This is the map's contents i.e. the actual key-value pairs. CRIU relies on batch operations to read <code>(BPF_MAP_LOOKUP_BATCH)</code> key-value pairs from maps during the checkpoint stage and to write <code>(BPF_MAP_UPDATE_BATCH)</code> them during the restore phase.
: '''Data''' - This is the map's contents i.e. the actual key-value pairs. CRIU relies on batch operations to read <code>(BPF_MAP_LOOKUP_BATCH)</code> key-value pairs from maps during the checkpoint stage and to write <code>(BPF_MAP_UPDATE_BATCH)</code> them during the restore phase.
+
+
== Support for BPF Maps ==
CRIU currently supports C/R of the following BPF map types:
CRIU currently supports C/R of the following BPF map types: