[CRIU] [PATCHv7 2/6] protobuf: rpc.proto

Ruslan Kuprieiev kupruser at gmail.com
Fri Sep 13 05:44:02 EDT 2013


Signed-off-by: Ruslan Kuprieiev <kupruser at gmail.com>
-------------- next part --------------
diff --git a/protobuf/Makefile b/protobuf/Makefile
index 9051477..9a90087 100644
--- a/protobuf/Makefile
+++ b/protobuf/Makefile
@@ -56,6 +56,7 @@ proto-obj-y	+= file-lock.o
 proto-obj-y	+= rlimit.o
 proto-obj-y	+= pagemap.o
 proto-obj-y	+= siginfo.o
+proto-obj-y	+= rpc.o
 
 proto		:= $(proto-obj-y:.o=)
 proto-c		:= $(proto-obj-y:.o=.pb-c.c)
diff --git a/protobuf/rpc.proto b/protobuf/rpc.proto
new file mode 100644
index 0000000..864e008
--- /dev/null
+++ b/protobuf/rpc.proto
@@ -0,0 +1,29 @@
+message criu_dump_req {
+	required int32 pid		= 1; //if not set, will dump requesting process
+	required bool leave_running	= 2;
+	required bool ext_unix_sk	= 3;
+	required bool tcp_established	= 4;
+	required bool evasive_devices	= 5;
+	required bool shell_job		= 6;
+	required bool file_locks	= 7;
+	required int32 images_dir_fd	= 8;
+	required int32 log_level	= 9 [default = 2];
+}
+
+message criu_dump_resp {
+	required bool success		= 1;
+	required bool restored		= 2;
+}
+
+message criu_msg {
+	enum Type {
+		EMPTY		= 0;
+		DUMPREQ		= 1;
+		DUMPRESP	= 2;
+	}
+
+	required Type type			= 1;
+
+	optional criu_dump_req dump_req		= 2;
+	optional criu_dump_resp	dump_resp	= 3;
+}



More information about the CRIU mailing list