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
6021378c
Commit
6021378c
authored
Jul 01, 2014
by
Pavel Emelyanov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
zdtm: Introduce $cpt_args
Signed-off-by:
Pavel Emelyanov
<
xemul@parallels.com
>
parent
3d14c71c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
9 deletions
+8
-9
zdtm.sh
test/zdtm.sh
+8
-9
No files found.
test/zdtm.sh
View file @
6021378c
...
@@ -435,7 +435,6 @@ run_test()
...
@@ -435,7 +435,6 @@ run_test()
{
{
local test
=
$1
local test
=
$1
local
linkremap
=
local
linkremap
=
local
snapopt
=
local
snappdir
=
local
snappdir
=
local
ps_pid
=
local
ps_pid
=
...
@@ -511,8 +510,8 @@ EOF
...
@@ -511,8 +510,8 @@ EOF
fi
fi
for
i
in
`
seq
$ITERATIONS
`
;
do
for
i
in
`
seq
$ITERATIONS
`
;
do
local
cpt_args
=
local
dump_only
=
local
dump_only
=
local
postdump
=
local
dump_cmd
=
"dump"
local
dump_cmd
=
"dump"
ddump
=
`
readlink
-fm
dump/
$tname
/
$PID
/
$i
`
ddump
=
`
readlink
-fm
dump/
$tname
/
$PID
/
$i
`
DUMP_PATH
=
$ddump
DUMP_PATH
=
$ddump
...
@@ -528,25 +527,25 @@ EOF
...
@@ -528,25 +527,25 @@ EOF
echo
"Unable to determing PID of page-server"
echo
"Unable to determing PID of page-server"
return
1
return
1
}
}
opts
=
"
--page-server --address 127.0.0.1 --port
$PS_PORT
"
cpt_args
=
"
$cpt_args
--page-server --address 127.0.0.1 --port
$PS_PORT
"
fi
fi
if
[
-n
"
$SNAPSHOT
"
]
;
then
if
[
-n
"
$SNAPSHOT
"
]
;
then
snapopt
=
"
--track-mem"
cpt_args
=
"
$cpt_args
--track-mem"
if
[
"
$i
"
-ne
"
$ITERATIONS
"
]
;
then
if
[
"
$i
"
-ne
"
$ITERATIONS
"
]
;
then
snapopt
=
"
$snapopt
-R"
cpt_args
=
"
$cpt_args
-R"
dump_only
=
1
dump_only
=
1
[
-n
"
$PRE_DUMP
"
]
&&
dump_cmd
=
"pre-dump"
[
-n
"
$PRE_DUMP
"
]
&&
dump_cmd
=
"pre-dump"
fi
fi
[
-n
"
$snappdir
"
]
&&
snapopt
=
"
$snapopt
--prev-images-dir=
$snappdir
"
[
-n
"
$snappdir
"
]
&&
cpt_args
=
"
$cpt_args
--prev-images-dir=
$snappdir
"
fi
fi
[
-n
"
$dump_only
"
]
&&
postdump
=
$POSTDUMP
[
-n
"
$dump_only
"
]
&&
cpt_args
=
"
$cpt_args
$POSTDUMP
"
save_fds
$PID
$ddump
/dump.fd
save_fds
$PID
$ddump
/dump.fd
save_maps
$PID
$ddump
/dump.maps
save_maps
$PID
$ddump
/dump.maps
setsid
$CRIU_CPT
$dump_cmd
$opts
--file-locks
--tcp-established
$linkremap
\
setsid
$CRIU_CPT
$dump_cmd
--file-locks
--tcp-established
$linkremap
\
-x
--evasive-devices
-D
$ddump
-o
dump.log
-v4
-t
$PID
$gen_args
$
snapopt
$postdump
-x
--evasive-devices
-D
$ddump
-o
dump.log
-v4
-t
$PID
$gen_args
$
cpt_args
retcode
=
$?
retcode
=
$?
#
#
...
...
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