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
a896bfd6
Commit
a896bfd6
authored
Oct 13, 2011
by
Cyrill Gorcunov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dump: Add some more comments on page dumping routines
Signed-off-by:
Cyrill Gorcunov
<
gorcunov@gmail.com
>
parent
ba5aef00
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
2 deletions
+10
-2
parasite-syscall.h
include/parasite-syscall.h
+2
-2
parasite-syscall.c
parasite-syscall.c
+4
-0
parasite.c
parasite.c
+4
-0
No files found.
include/parasite-syscall.h
View file @
a896bfd6
...
...
@@ -13,8 +13,8 @@
/* parasite control block */
struct
parasite_ctl
{
pid_t
pid
;
/* process
where we live
*/
struct
vma_area
*
vma_area
;
/* our space */
pid_t
pid
;
/* process
pid where we live in
*/
struct
vma_area
*
vma_area
;
/* our space
we host
*/
unsigned
long
parasite_ip
;
/* service routine start ip */
unsigned
long
parasite_complete_ip
;
/* where we end execution */
unsigned
long
addr_cmd
;
/* addr for command */
...
...
parasite-syscall.c
View file @
a896bfd6
...
...
@@ -241,6 +241,10 @@ static struct vma_area *get_vma_by_ip(struct list_head *vma_area_list, unsigned
return
NULL
;
}
/*
* This routine drives parasite code (been previously injected into a victim
* process) and tells it to dump pages into the file.
*/
int
parasite_dump_pages_seized
(
struct
parasite_ctl
*
ctl
,
struct
list_head
*
vma_area_list
,
struct
cr_fdset
*
cr_fdset
,
int
fd_type
)
{
...
...
parasite.c
View file @
a896bfd6
...
...
@@ -160,6 +160,10 @@ err_open:
return
ret
;
}
/*
* This is the main page dumping routine, it's executed
* inside a victim process space.
*/
static
int
dump_pages
(
parasite_args_cmd_dumppages_t
*
args
)
{
int
ret
=
PARASITE_ERR_FAIL
;
...
...
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