[CRIU] [PATCH 09/23] cr-dump.c: introduced the macro CORE_THREAD_INFO to access the machine-specific part of CoreEntry

Alexander Kartashov alekskartashov at parallels.com
Mon Jan 14 02:20:03 EST 2013


---
 arch/x86/include/asm/types.h |    2 ++
 parasite-syscall.c           |    2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/arch/x86/include/asm/types.h b/arch/x86/include/asm/types.h
index a75902e..5f605b1 100644
--- a/arch/x86/include/asm/types.h
+++ b/arch/x86/include/asm/types.h
@@ -270,4 +270,6 @@ typedef struct {
 
 #define CORE_ENTRY__MARCH CORE_ENTRY__MARCH__X86_64
 
+#define CORE_THREAD_INFO(core) core->thread_info
+
 #endif /* __CR_ASM_TYPES_H__ */
diff --git a/parasite-syscall.c b/parasite-syscall.c
index d35bed8..ac029c9 100644
--- a/parasite-syscall.c
+++ b/parasite-syscall.c
@@ -376,7 +376,7 @@ int parasite_dump_thread_seized(struct parasite_ctl *ctl, struct pid *tid,
 	ret = parasite_execute_by_pid(PARASITE_CMD_DUMP_THREAD, ctl, tid->real);
 
 	memcpy(&core->thread_core->blk_sigset, &args->blocked, sizeof(args->blocked));
-	core->thread_info->clear_tid_addr = (u64)args->tid_addr;
+	CORE_THREAD_INFO(core)->clear_tid_addr = (u64)args->tid_addr;
 	tid->virt = args->tid;
 	core_put_tls(core, args->tls);
 
-- 
1.7.10.4



More information about the CRIU mailing list