[CRIU] [PATCH 02/14] protobuf: add a new description for saving siginfo-s
Andrey Vagin
avagin at openvz.org
Mon Mar 25 10:37:45 EDT 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 222a173..2ea9e84 100644
--- a/include/protobuf.h
+++ b/include/protobuf.h
@@ -50,6 +50,7 @@ enum {
PB_IDS,
PB_PAGEMAP_HEAD,
PB_PAGEMAP,
+ PB_SIGINFO,
PB_MAX
};
diff --git a/protobuf.c b/protobuf.c
index 696f43a..99aae96 100644
--- a/protobuf.c
+++ b/protobuf.c
@@ -52,6 +52,7 @@
#include "protobuf/file-lock.pb-c.h"
#include "protobuf/rlimit.pb-c.h"
#include "protobuf/pagemap.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);
@@ -135,6 +136,7 @@ void cr_pb_init(void)
CR_PB_DESC(RLIMIT, Rlimit, rlimit);
CR_PB_MDESC_INIT(cr_pb_descs[PB_PAGEMAP_HEAD], PagemapHead, pagemap_head);
CR_PB_DESC(PAGEMAP, Pagemap, pagemap);
+ CR_PB_DESC(SIGINFO, Siginfo, siginfo);
}
/*
diff --git a/protobuf/Makefile b/protobuf/Makefile
index de3bf11..1db47d3 100644
--- a/protobuf/Makefile
+++ b/protobuf/Makefile
@@ -51,6 +51,7 @@ proto-obj-y += tty.o
proto-obj-y += file-lock.o
proto-obj-y += rlimit.o
proto-obj-y += pagemap.o
+proto-obj-y += siginfo.o
proto := $(proto-obj-y:.o=)
proto-c := $(proto-obj-y:.o=.pb-c.c)
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