diff --git a/include/protobuf.h b/include/protobuf.h index 222a1739f..2ea9e841d 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 d5dde4766..ad4c87a66 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 de3bf112a..1db47d3c2 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 000000000..e43eb88d9 --- /dev/null +++ b/protobuf/siginfo.proto @@ -0,0 +1,3 @@ +message siginfo_entry { + required bytes siginfo = 1; +}