mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-22 01:31:34 +00:00
This commit adds protobuf definitions needed to checkpoint and restore BPF map files along with the data they contain Source files added: * bpfmap-file.proto - Stores the meta-data about BPF maps * bpfmap-data.proto - Stores the data (key-value pairs) contained in BPF maps Source files modified: * fdinfo.proto - Added BPF map as a new kind of file descriptor. 'message file_entry' can now hold information about BPF map file descriptors * Makefile - Now generates build artifacts for bpfmap-file.proto and bpfmap-data.proto Signed-off-by: Abhishek Vijeev <abhishek.vijeev@gmail.com>
8 lines
292 B
Protocol Buffer
8 lines
292 B
Protocol Buffer
syntax = "proto2";
|
|
|
|
message bpfmap_data_entry {
|
|
required uint32 map_id = 1;
|
|
required uint32 keys_bytes = 2; /* Bytes required to store keys */
|
|
required uint32 values_bytes = 3; /* Bytes required to store values */
|
|
required uint32 count = 4; /* Number of key-value pairs stored */
|
|
}
|