[CRIU] [PATCH 05/14] protobuf: add a new description for saving siginfo-s

Andrey Vagin avagin at openvz.org
Thu Jan 17 09:38:29 EST 2013


Signed-off-by: Andrey Vagin <avagin at openvz.org>
---
 include/protobuf.h     | 1 +
 protobuf.c             | 2 ++
 protobuf/Makefile      | 1 +
 protobuf/siginfo.proto | 3 +++
 4 files changed, 7 insertions(+)
 create mode 100644 protobuf/siginfo.proto

diff --git a/include/protobuf.h b/include/protobuf.h
index 6da4969..5f11181 100644
--- a/include/protobuf.h
+++ b/include/protobuf.h
@@ -47,6 +47,7 @@ enum {
 	PB_TTY_INFO,
 	PB_RLIMIT,
 	PB_IDS,
+	PB_SIGINFO,
 
 	PB_MAX
 };
diff --git a/protobuf.c b/protobuf.c
index 24dfb64..8fb9dc9 100644
--- a/protobuf.c
+++ b/protobuf.c
@@ -50,6 +50,7 @@
 #include "protobuf/tcp-stream.pb-c.h"
 #include "protobuf/tty.pb-c.h"
 #include "protobuf/rlimit.pb-c.h"
+#include "protobuf/siginfo.pb-c.h"
 
 typedef size_t (*pb_getpksize_t)(void *obj);
 typedef size_t (*pb_pack_t)(void *obj, void *where);
@@ -130,6 +131,7 @@ void cr_pb_init(void)
 	CR_PB_DESC(TTY,			TtyFile,	tty_file);
 	CR_PB_DESC(TTY_INFO,		TtyInfo,	tty_info);
 	CR_PB_DESC(RLIMIT,		Rlimit,		rlimit);
+	CR_PB_DESC(SIGINFO,		Siginfo,	siginfo);
 }
 
 /*
diff --git a/protobuf/Makefile b/protobuf/Makefile
index 3713f18..41a8acb 100644
--- a/protobuf/Makefile
+++ b/protobuf/Makefile
@@ -38,6 +38,7 @@ PROTO_FILES	+= core.proto
 PROTO_FILES	+= netdev.proto
 PROTO_FILES	+= tty.proto
 PROTO_FILES	+= rlimit.proto
+PROTO_FILES	+= siginfo.proto
 
 PROTO_HDRS	:= $(patsubst %.proto,%.pb-c.h,$(PROTO_FILES))
 PROTO_SRCS	:= $(patsubst %.proto,%.pb-c.c,$(PROTO_FILES))
diff --git a/protobuf/siginfo.proto b/protobuf/siginfo.proto
new file mode 100644
index 0000000..e43eb88
--- /dev/null
+++ b/protobuf/siginfo.proto
@@ -0,0 +1,3 @@
+message siginfo_entry {
+	required bytes siginfo = 1;
+}
-- 
1.7.11.7



More information about the CRIU mailing list