Lines Matching refs:new_proc
106 ProcDesc* new_proc = (ProcDesc*)qemu_malloc(sizeof(ProcDesc)); in create_new_process() local
107 if (new_proc == NULL) { in create_new_process()
111 QLIST_INIT(&new_proc->threads); in create_new_process()
112 allocmap_init(&new_proc->alloc_map); in create_new_process()
113 mmrangemap_init(&new_proc->mmrange_map); in create_new_process()
114 new_proc->pid = pid; in create_new_process()
115 new_proc->parent_pid = parent_pid; in create_new_process()
116 new_proc->image_path = NULL; in create_new_process()
117 new_proc->flags = 0; in create_new_process()
129 qemu_free(new_proc); in create_new_process()
135 failed = allocmap_copy(&new_proc->alloc_map, &parent->alloc_map, in create_new_process()
141 allocmap_empty(&new_proc->alloc_map); in create_new_process()
142 qemu_free(new_proc); in create_new_process()
147 failed = mmrangemap_copy(&new_proc->mmrange_map, &parent->mmrange_map); in create_new_process()
151 mmrangemap_empty(&new_proc->mmrange_map); in create_new_process()
152 allocmap_empty(&new_proc->alloc_map); in create_new_process()
153 qemu_free(new_proc); in create_new_process()
159 if(create_new_thread(new_proc, pid) == NULL) { in create_new_process()
160 mmrangemap_empty(&new_proc->mmrange_map); in create_new_process()
161 allocmap_empty(&new_proc->alloc_map); in create_new_process()
162 qemu_free(new_proc); in create_new_process()
167 QLIST_INSERT_HEAD(&proc_list, new_proc, global_entry); in create_new_process()
169 return new_proc; in create_new_process()
474 ProcDesc* new_proc; in memcheck_fork() local
497 new_proc = create_new_process(new_pid, parent_proc->pid); in memcheck_fork()
498 if (new_proc == NULL) { in memcheck_fork()
504 procdesc_set_image_path(new_proc, parent_proc->image_path, 0); in memcheck_fork()