[CRIU] [PATCH 30/44] 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 7 10:04:59 EST 2013


Signed-off-by: Alexander Kartashov <alekskartashov at parallels.com>
---
 arch/x86/include/asm/types.h |    2 ++
 cr-dump.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 9349db7..6035fb3 100644
--- a/arch/x86/include/asm/types.h
+++ b/arch/x86/include/asm/types.h
@@ -254,4 +254,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/cr-dump.c b/cr-dump.c
index 16898fa..a6349e6 100644
--- a/cr-dump.c
+++ b/cr-dump.c
@@ -1182,7 +1182,7 @@ static int dump_task_thread(struct parasite_ctl *parasite_ctl, struct pid *tid)
 
 	pr_info("%d: virt_pid=%d tid_address=%p sig_blocked=0x%lx\n", pid,
 			tid->virt, taddr, core->thread_core->blk_sigset);
-	core->thread_info->clear_tid_addr = (u64) taddr;
+	CORE_THREAD_INFO(core)->clear_tid_addr = (u64) taddr;
 
 	ret = dump_sched_info(pid, core->thread_core);
 	if (ret)
-- 
1.7.10.4



More information about the CRIU mailing list