Commit a896bfd6 authored by Cyrill Gorcunov's avatar Cyrill Gorcunov

dump: Add some more comments on page dumping routines

Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@gmail.com>
parent ba5aef00
......@@ -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 */
......
......@@ -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)
{
......
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment