[CRIU] [PATCHv3 09/30] x86/crtools: log dumping task's mode
Dmitry Safonov
dsafonov at virtuozzo.com
Tue Jun 28 12:24:02 PDT 2016
Cc: Cyrill Gorcunov <gorcunov at openvz.org>
Signed-off-by: Dmitry Safonov <dsafonov at virtuozzo.com>
---
criu/arch/x86/crtools.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/criu/arch/x86/crtools.c b/criu/arch/x86/crtools.c
index 733d13484692..2a768bcc4b27 100644
--- a/criu/arch/x86/crtools.c
+++ b/criu/arch/x86/crtools.c
@@ -169,7 +169,8 @@ int get_task_regs(pid_t pid, user_regs_struct_t regs, CoreEntry *core)
struct iovec iov;
int ret = -1;
- pr_info("Dumping GP/FPU registers for %d\n", pid);
+ pr_info("Dumping general registers for %d in %s mode\n", pid,
+ user_regs_native(®s) ? "native" : "compat");
/* Did we come from a system call? */
if (get_signed_user_reg(®s, orig_ax) >= 0) {
@@ -254,6 +255,8 @@ int get_task_regs(pid_t pid, user_regs_struct_t regs, CoreEntry *core)
* thus decode it accrodingly.
*/
+ pr_info("Dumping GP/FPU registers for %d\n", pid);
+
if (cpu_has_feature(X86_FEATURE_XSAVE)) {
iov.iov_base = &xsave;
iov.iov_len = sizeof(xsave);
--
2.9.0
More information about the CRIU
mailing list