Home | History | Annotate | Download | only in memcheck

Lines Matching defs:proc

62  *  proc - Process descriptor of the process, in context of which new thread
69 create_new_thread(ProcDesc* proc, uint32_t tid)
77 new_thread->process = proc;
82 QLIST_INSERT_HEAD(&proc->threads, new_thread, proc_entry);
240 * proc - Descriptor of the process where to set, or replace image path.
249 procdesc_set_image_path(ProcDesc* proc,
253 if (image_path == NULL || proc == NULL) {
257 if (proc->image_path != NULL) {
263 if (!strcmp(proc->image_path, image_path)) {
267 qemu_free(proc->image_path);
268 proc->image_path = NULL;
272 proc->image_path = qemu_malloc(strlen(image_path) + 1);
273 if (proc->image_path == NULL) {
275 strlen(image_path) + 1, image_path, proc->pid);
278 strcpy(proc->image_path, image_path);
279 proc->flags |= set_flags_on_replace;
318 ProcDesc* proc;
327 QLIST_FOREACH(proc, &proc_list, global_entry) {
328 if (pid == proc->pid) {
332 return proc;
578 ProcDesc* proc;
589 proc = thread->process;
601 if (!QLIST_EMPTY(&proc->threads)) {
606 proc->flags |= PROC_FLAG_EXITING;
610 while (!allocmap_pull_first(&proc->alloc_map, &leaked_alloc)) {
619 proc->image_path, proc->pid);
638 procdesc_find_mapentry(proc,
675 proc->image_path, proc->pid, leaks_reported);
679 proc->image_path, proc->pid, current_tid, leaks_reported);
684 QLIST_REMOVE(proc, global_entry);
687 mmrangemap_empty(&proc->mmrange_map);
688 if (proc->image_path != NULL) {
689 qemu_free(proc->image_path);
691 qemu_free(proc);
704 ProcDesc* proc = get_current_process();
705 if (proc == NULL) {
726 ins_res = mmrangemap_insert(&proc->mmrange_map, &desc, &replaced);
729 proc->image_path, proc->pid, vstart, vend);
736 proc->image_path, proc->pid, replaced.path, replaced.map_start,
742 proc->image_path, proc->pid, path, vstart, vend, exec_offset);
749 ProcDesc* proc = get_current_process();
750 if (proc == NULL) {
756 if (mmrangemap_pull(&proc->mmrange_map, vstart, vend, &desc)) {
763 proc->image_path, proc->pid, desc.path, vstart, vend, desc.exec_offset);
777 mmrangemap_insert(&proc->mmrange_map, &desc, NULL);
781 mmrangemap_insert(&proc->mmrange_map, &desc, NULL);
790 mmrangemap_insert(&proc->mmrange_map, &tail, NULL);
792 mmrangemap_insert(&proc->mmrange_map, &desc, NULL);