Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
criu
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhul
criu
Commits
c4702802
Commit
c4702802
authored
Sep 28, 2016
by
Pavel Emelyanov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mem: Move mem_pp from ctl to pstree_item's dmpi
Signed-off-by:
Pavel Emelyanov
<
xemul@virtuozzo.com
>
parent
781a2e07
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
6 deletions
+6
-6
cr-dump.c
criu/cr-dump.c
+4
-2
parasite-syscall.h
criu/include/parasite-syscall.h
+0
-2
pstree.h
criu/include/pstree.h
+1
-1
mem.c
criu/mem.c
+1
-1
No files found.
criu/cr-dump.c
View file @
c4702802
...
...
@@ -1443,6 +1443,7 @@ static int cr_pre_dump_finish(int ret)
pr_info
(
"Pre-dumping tasks' memory
\n
"
);
for_each_pstree_item
(
item
)
{
struct
parasite_ctl
*
ctl
=
dmpi
(
item
)
->
parasite_ctl
;
struct
page_pipe
*
mem_pp
;
struct
page_xfer
xfer
;
if
(
!
ctl
)
...
...
@@ -1454,7 +1455,8 @@ static int cr_pre_dump_finish(int ret)
if
(
ret
<
0
)
goto
err
;
ret
=
page_xfer_dump_pages
(
&
xfer
,
ctl
->
mem_pp
,
0
);
mem_pp
=
dmpi
(
item
)
->
mem_pp
;
ret
=
page_xfer_dump_pages
(
&
xfer
,
mem_pp
,
0
);
xfer
.
close
(
&
xfer
);
...
...
@@ -1463,7 +1465,7 @@ static int cr_pre_dump_finish(int ret)
timing_stop
(
TIME_MEMWRITE
);
destroy_page_pipe
(
ctl
->
mem_pp
);
destroy_page_pipe
(
mem_pp
);
parasite_cure_local
(
ctl
);
}
...
...
criu/include/parasite-syscall.h
View file @
c4702802
...
...
@@ -52,8 +52,6 @@ struct parasite_ctl {
void
*
addr_args
;
/* address for arguments */
unsigned
long
args_size
;
int
tsock
;
/* transport socket for transferring fds */
struct
page_pipe
*
mem_pp
;
};
extern
int
parasite_dump_sigacts_seized
(
struct
parasite_ctl
*
ctl
,
struct
cr_imgset
*
cr_imgset
);
...
...
criu/include/pstree.h
View file @
c4702802
...
...
@@ -43,7 +43,7 @@ struct dmp_info {
* threads. Dumping tasks with different creds is not supported.
*/
struct
proc_status_creds
*
pi_creds
;
struct
page_pipe
*
mem_pp
;
struct
parasite_ctl
*
parasite_ctl
;
};
...
...
criu/mem.c
View file @
c4702802
...
...
@@ -389,7 +389,7 @@ out_pp:
if
(
ret
||
!
mdc
->
pre_dump
)
destroy_page_pipe
(
pp
);
else
ctl
->
mem_pp
=
pp
;
dmpi
(
item
)
->
mem_pp
=
pp
;
out:
pmc_fini
(
&
pmc
);
pr_info
(
"----------------------------------------
\n
"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment