[CRIU] [PATCH 2/2] lazy-pages: restorer: reduce amount of printouts
Mike Rapoport
rppt at linux.vnet.ibm.com
Wed Jul 26 18:06:53 MSK 2017
Signed-off-by: Mike Rapoport <rppt at linux.vnet.ibm.com>
---
criu/pie/restorer.c | 15 ++++++---------
1 file changed, 6 insertions(+), 9 deletions(-)
diff --git a/criu/pie/restorer.c b/criu/pie/restorer.c
index cadfda0..8fb7fe2 100644
--- a/criu/pie/restorer.c
+++ b/criu/pie/restorer.c
@@ -814,9 +814,6 @@ static void rst_tcp_socks_all(struct task_restore_args *ta)
rst_tcp_repair_off(&ta->tcp_socks[i]);
}
-
-
-
static int enable_uffd(int uffd, unsigned long addr, unsigned long len)
{
int rc;
@@ -833,14 +830,14 @@ static int enable_uffd(int uffd, unsigned long addr, unsigned long len)
uffdio_register.range.start = addr;
uffdio_register.range.len = len;
uffdio_register.mode = UFFDIO_REGISTER_MODE_MISSING;
- pr_info("lazy-pages: uffdio_register.range.start 0x%lx\n", (unsigned long) uffdio_register.range.start);
- pr_info("lazy-pages: uffdio_register.len 0x%llx\n", uffdio_register.range.len);
+
+ pr_info("lazy-pages: register: %lx, len %lx\n", addr, len);
+
rc = sys_ioctl(uffd, UFFDIO_REGISTER, (unsigned long) &uffdio_register);
- pr_info("lazy-pages: ioctl UFFDIO_REGISTER rc %d\n", rc);
- pr_info("lazy-pages: uffdio_register.range.start 0x%lx\n", (unsigned long) uffdio_register.range.start);
- pr_info("lazy-pages: uffdio_register.len 0x%llx\n", uffdio_register.range.len);
- if (rc != 0)
+ if (rc != 0) {
+ pr_err("lazy-pages: register %lx failed: rc:%d, \n", addr, rc);
return -1;
+ }
expected_ioctls = (1 << _UFFDIO_WAKE) | (1 << _UFFDIO_COPY) | (1 << _UFFDIO_ZEROPAGE);
--
2.7.4
More information about the CRIU
mailing list