Skip to content

Instantly share code, notes, and snippets.

View thtanaka's full-sized avatar

Thomas Tanaka thtanaka

View GitHub Profile
static int prepare_ipc_shm_pages(struct cr_img *img, const IpcShmEntry *shm)
{
- int ret;
void *data;
+ int ifd;
+ ssize_t size, off;
data = shmat(shm->desc->id, NULL, 0);
if (data == (void *)-1) {
pr_perror("Failed to attach IPC shared memory");
(00.000071) ========================================
(00.000081) Dumping processes (pid: 57185)
(00.000082) ========================================
(00.000084) Running pre-dump scripts
(00.000085) RPC
(00.000324) Pagemap is fully functional
(00.000362) Found anon-shmem device at 5
(00.000365) Reset 58899's dirty tracking
(00.000400) ... done
(00.000418) Dirty track supported on kernel