[PATCHv3,09/30] x86/crtools: log dumping task's mode

Submitted by Dmitry Safonov on June 28, 2016, 7:24 p.m.

Details

Message ID 20160628192423.14943-10-dsafonov@virtuozzo.com
State Rejected
Series "x86 Compatible C/R, part 2"
Headers show

Commit Message

Dmitry Safonov June 28, 2016, 7:24 p.m.
Cc: Cyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: Dmitry Safonov <dsafonov@virtuozzo.com>
---
 criu/arch/x86/crtools.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

Patch hide | download patch | download mbox

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(&regs) ? "native" : "compat");
 
 	/* Did we come from a system call? */
 	if (get_signed_user_reg(&regs, 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);