mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-31 06:15:24 +00:00
vma: Keep track of lonest vma in list and sum of its lengths
I will have to push some sort of map of pages to dump into parasite. For this, I need to have estimation of how much memory I'd need for than in parasite args. These two values will help with it. Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
@@ -219,6 +219,8 @@ void close_cr_fdset(struct cr_fdset **cr_fdset);
|
||||
struct vm_area_list {
|
||||
struct list_head h;
|
||||
unsigned nr;
|
||||
unsigned long priv_size; /* nr of pages in private VMAs */
|
||||
unsigned long longest; /* nr of pages in longest VMA */
|
||||
};
|
||||
|
||||
#define VM_AREA_LIST(name) struct vm_area_list name = { .h = LIST_HEAD_INIT(name.h), .nr = 0, }
|
||||
|
Reference in New Issue
Block a user