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
0f58bae4
Commit
0f58bae4
authored
Dec 17, 2012
by
Pavel Emelyanov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
doc: Add syscalls execution description
Signed-off-by:
Pavel Emelyanov
<
xemul@parallels.com
>
parent
15901c2d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
0 deletions
+35
-0
crtools.txt
Documentation/crtools.txt
+35
-0
No files found.
Documentation/crtools.txt
View file @
0f58bae4
...
@@ -31,6 +31,9 @@ OPTIONS
...
@@ -31,6 +31,9 @@ OPTIONS
* 'check'
* 'check'
to test whether the kernel support is up-to-date
to test whether the kernel support is up-to-date
* 'exec'
to execute a system call from other task's context
-c::
-c::
In case of 'show' command the dumped pages content will be shown in hex format.
In case of 'show' command the dumped pages content will be shown in hex format.
...
@@ -109,6 +112,27 @@ OPTIONS
...
@@ -109,6 +112,27 @@ OPTIONS
-h|--help::
-h|--help::
Print inline help.
Print inline help.
SYSCALLS EXECUTION
------------------
To run a system call from another task's context use
crtools exec -t <pid> <syscall-string>
command. The syscall string should look like
<syscall-name> <syscall-arguments>...
Each command line argument is transformed into the system call argument by
the following rules:
* If one starts with '&', the rest of it gets copied to the target task's
address space and the respective syscall argument is the pointer to this
string;
* Otherwise it's treated as a number (converted with strtol) and is directly
passed into the system call.
EXAMPLES
EXAMPLES
--------
--------
...
@@ -121,6 +145,17 @@ To restore this program detaching crtools itself, one should type
...
@@ -121,6 +145,17 @@ To restore this program detaching crtools itself, one should type
crtools restore -d -D checkpoint -t 1234
crtools restore -d -D checkpoint -t 1234
To close a file descriptor number '1' in task with pid '1234' run
crtools exec -t 1234 close 1
To open a file named '/foo/bar' for read-write in the task with pid
'1234' run
crtools exec -t 1234 open '&/foo/bar' 2
AUTHOR
AUTHOR
------
------
OpenVZ team.
OpenVZ team.
...
...
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