Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/checkpoint-restore/criu.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAbhishek Vijeev <abhishek.vijeev@gmail.com>2020-07-24 17:54:57 +0300
committerAndrei Vagin <avagin@gmail.com>2020-10-20 10:18:24 +0300
commitc26cd1395f68663e5b417b7b64c9c1e35f48fedd (patch)
treeaf963c7f967585d93fa2bd302f742e878fd132a9 /images/fdinfo.proto
parentd6735616a96906c65213ac38cd29e27e6f857d99 (diff)
images: protobuf definitions for BPF map meta-data and data
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>
Diffstat (limited to 'images/fdinfo.proto')
-rw-r--r--images/fdinfo.proto3
1 files changed, 3 insertions, 0 deletions
diff --git a/images/fdinfo.proto b/images/fdinfo.proto
index d966d5bc5..f5e18954b 100644
--- a/images/fdinfo.proto
+++ b/images/fdinfo.proto
@@ -17,6 +17,7 @@ import "fifo.proto";
import "pipe.proto";
import "tty.proto";
import "memfd.proto";
+import "bpfmap-file.proto";
enum fd_types {
UND = 0;
@@ -38,6 +39,7 @@ enum fd_types {
EXT = 16;
TIMERFD = 17;
MEMFD = 18;
+ BPFMAP = 19;
/* Any number above the real used. Not stored to image */
CTL_TTY = 65534;
@@ -73,4 +75,5 @@ message file_entry {
optional pipe_entry pipe = 18;
optional tty_file_entry tty = 19;
optional memfd_file_entry memfd = 20;
+ optional bpfmap_file_entry bpf = 21;
}