[CRIU] [PATCH 32/44] cr-dump.c: introduced the macro core_put_tls to store the thread TLS value in a machine-independent way.

Alexander Kartashov alekskartashov at parallels.com
Mon Jan 7 10:05:01 EST 2013


Signed-off-by: Alexander Kartashov <alekskartashov at parallels.com>
---
 arch/x86/include/asm/dump.h |    3 +++
 cr-dump.c                   |    3 +++
 2 files changed, 6 insertions(+)

diff --git a/arch/x86/include/asm/dump.h b/arch/x86/include/asm/dump.h
index ba4d5c8..f99d770 100644
--- a/arch/x86/include/asm/dump.h
+++ b/arch/x86/include/asm/dump.h
@@ -5,4 +5,7 @@ extern int get_task_regs(pid_t pid, CoreEntry *core, const struct parasite_ctl *
 extern int arch_alloc_thread_info(CoreEntry *core);
 extern void core_entry_free(CoreEntry *core);
 
+
+#define core_put_tls(core, tls)
+
 #endif
diff --git a/cr-dump.c b/cr-dump.c
index ae2e9d9..6b700d2 100644
--- a/cr-dump.c
+++ b/cr-dump.c
@@ -786,6 +786,8 @@ static int dump_task_core_all(pid_t pid, const struct proc_pid_stat *stat,
 	if (ret)
 		goto err_free;
 
+	core_put_tls(core, misc->tls);
+
 	ret = pb_write_one(fd_core, core, PB_CORE);
 	if (ret < 0)
 		goto err_free;
@@ -1179,6 +1181,7 @@ static int dump_task_thread(struct parasite_ctl *parasite_ctl, struct pid *tid)
 		goto err_free;
 	}
 	core->thread_core->has_blk_sigset = true;
+	core_put_tls(core, tls);
 
 	pr_info("%d: virt_pid=%d tid_address=%p sig_blocked=0x%lx\n", pid,
 			tid->virt, taddr, core->thread_core->blk_sigset);
-- 
1.7.10.4



More information about the CRIU mailing list