mirror of
https://github.com/checkpoint-restore/criu
synced 2025-09-02 07:15:31 +00:00
IPC: dump shared memory
Signed-off-by: Stanislav Kinsbursky <skinsbursky@parallels.com> Acked-by: Pavel Emelyanov <xemul@parallels.com> Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
This commit is contained in:
committed by
Cyrill Gorcunov
parent
9ef1cb99b6
commit
3d886be2c6
@@ -38,6 +38,7 @@ enum {
|
||||
CR_FD_PSTREE,
|
||||
CR_FD_UTSNS,
|
||||
CR_FD_IPCNS_VAR,
|
||||
CR_FD_IPCNS_SHM,
|
||||
|
||||
CR_FD_MAX
|
||||
};
|
||||
@@ -80,6 +81,7 @@ extern struct cr_fd_desc_tmpl fdset_template[CR_FD_MAX];
|
||||
#define FMT_FNAME_CREDS "creds-%d.img"
|
||||
#define FMT_FNAME_UTSNS "utsns-%d.img"
|
||||
#define FMT_FNAME_IPCNS_VAR "ipcns-var-%d.img"
|
||||
#define FMT_FNAME_IPCNS_SHM "ipcns-shm-%d.img"
|
||||
|
||||
extern int get_image_path(char *path, int size, const char *fmt, int pid);
|
||||
|
||||
@@ -111,7 +113,8 @@ struct cr_fdset {
|
||||
CR_FD_DESC_USE(CR_FD_CREDS) )
|
||||
#define CR_FD_DESC_NS (\
|
||||
CR_FD_DESC_USE(CR_FD_UTSNS) |\
|
||||
CR_FD_DESC_USE(CR_FD_IPCNS_VAR) )
|
||||
CR_FD_DESC_USE(CR_FD_IPCNS_VAR) |\
|
||||
CR_FD_DESC_USE(CR_FD_IPCNS_SHM) )
|
||||
#define CR_FD_DESC_NONE (0)
|
||||
|
||||
int cr_dump_tasks(pid_t pid, struct cr_options *opts);
|
||||
|
Reference in New Issue
Block a user