mirror of
https://github.com/checkpoint-restore/criu
synced 2025-09-05 16:55:43 +00:00
restore: Parse /proc/self/maps for self mappings
On restore we only need to know currnet task mappings' start and end to find where to put the restorer blob. And since the smaps file in /proc/pid is up to 3 times slower, than the maps one, it makes perfect sense just to parse the latter one. Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
@@ -142,6 +142,7 @@ extern struct mount_info *parse_mountinfo(pid_t pid);
|
||||
extern int parse_pid_stat(pid_t pid, struct proc_pid_stat *s);
|
||||
extern int parse_pid_stat_small(pid_t pid, struct proc_pid_stat_small *s);
|
||||
extern int parse_smaps(pid_t pid, struct vm_area_list *vma_area_list, bool use_map_files);
|
||||
extern int parse_self_maps_lite(struct vm_area_list *vms);
|
||||
extern int parse_pid_status(pid_t pid, struct proc_status_creds *);
|
||||
|
||||
union fdinfo_entries {
|
||||
|
Reference in New Issue
Block a user