[CRIU] [PATCH 3/4] dump: Add dumping of thread blocked signals mask

Cyrill Gorcunov gorcunov at openvz.org
Tue Oct 30 17:57:38 EDT 2012


Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
 cr-dump.c           |    5 +++++
 protobuf/core.proto |    1 +
 2 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/cr-dump.c b/cr-dump.c
index 5f89645..bbb1feb 100644
--- a/cr-dump.c
+++ b/cr-dump.c
@@ -1333,6 +1333,11 @@ static int dump_task_thread(struct parasite_ctl *parasite_ctl, struct pid *tid)
 	pr_info("%d: tid_address=%p\n", pid, info->tid_addr);
 	core->thread_info->clear_tid_addr = (u64)info->tid_addr;
 
+	BUILD_BUG_ON(sizeof(core->thread_core->blk_sigset) != sizeof(k_rtsigset_t));
+
+	core->thread_core->has_blk_sigset = true;
+	memcpy(&core->thread_core->blk_sigset, &info->blocked, sizeof(k_rtsigset_t));
+
 	ret = dump_sched_info(pid, core->thread_core);
 	if (ret)
 		goto err_free;
diff --git a/protobuf/core.proto b/protobuf/core.proto
index 72a2c7e..a527fe1 100644
--- a/protobuf/core.proto
+++ b/protobuf/core.proto
@@ -72,6 +72,7 @@ message thread_core_entry {
 	optional sint32			sched_nice	= 3;
 	optional uint32			sched_policy	= 4;
 	optional uint32			sched_prio	= 5;
+	optional uint64			blk_sigset	= 6;
 }
 
 message core_entry {
-- 
1.7.7.6



More information about the CRIU mailing list