mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-30 05:48:05 +00:00
criu/pagemap-cache: pagescan: look for PAGE_IS_GUARD pages
Signed-off-by: Alexander Mikhalitsyn <aleksandr.mikhalitsyn@canonical.com>
This commit is contained in:
parent
66251ba1d9
commit
0852cf97ec
@ -194,6 +194,9 @@ int pmc_fill(pmc_t *pmc, u64 start, u64 end)
|
|||||||
};
|
};
|
||||||
long ret;
|
long ret;
|
||||||
|
|
||||||
|
if (kdat.has_pagemap_scan_guard_pages)
|
||||||
|
args.return_mask |= PAGE_IS_GUARD;
|
||||||
|
|
||||||
ret = ioctl(pmc->fd, PAGEMAP_SCAN, &args);
|
ret = ioctl(pmc->fd, PAGEMAP_SCAN, &args);
|
||||||
if (ret == -1) {
|
if (ret == -1) {
|
||||||
pr_perror("PAGEMAP_SCAN");
|
pr_perror("PAGEMAP_SCAN");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user