Lines Matching refs:proc
67 * proc - Process descriptor of the process, in context of which new thread
74 create_new_thread(ProcDesc* proc, uint32_t tid)
82 new_thread->process = proc;
87 LIST_INSERT_HEAD(&proc->threads, new_thread, proc_entry);
245 * proc - Descriptor of the process where to set, or replace image path.
254 procdesc_set_image_path(ProcDesc* proc,
258 if (image_path == NULL || proc == NULL) {
262 if (proc->image_path != NULL) {
268 if (!strcmp(proc->image_path, image_path)) {
272 qemu_free(proc->image_path);
273 proc->image_path = NULL;
277 proc->image_path = qemu_malloc(strlen(image_path) + 1);
278 if (proc->image_path == NULL) {
280 strlen(image_path) + 1, image_path, proc->pid);
283 strcpy(proc->image_path, image_path);
284 proc->flags |= set_flags_on_replace;
323 ProcDesc* proc;
332 LIST_FOREACH(proc, &proc_list, global_entry) {
333 if (pid == proc->pid) {
337 return proc;
583 ProcDesc* proc;
594 proc = thread->process;
606 if (!LIST_EMPTY(&proc->threads)) {
611 proc->flags |= PROC_FLAG_EXITING;
615 while (!allocmap_pull_first(&proc->alloc_map, &leaked_alloc)) {
624 proc->image_path, proc->pid);
643 procdesc_find_mapentry(proc,
680 proc->image_path, proc->pid, leaks_reported);
684 proc->image_path, proc->pid, current_tid, leaks_reported);
689 LIST_REMOVE(proc, global_entry);
692 mmrangemap_empty(&proc->mmrange_map);
693 if (proc->image_path != NULL) {
694 qemu_free(proc->image_path);
696 qemu_free(proc);
709 ProcDesc* proc = get_current_process();
710 if (proc == NULL) {
731 ins_res = mmrangemap_insert(&proc->mmrange_map, &desc, &replaced);
734 proc->image_path, proc->pid, vstart, vend);
741 proc->image_path, proc->pid, replaced.path, replaced.map_start,
747 proc->image_path, proc->pid, path, vstart, vend, exec_offset);
754 ProcDesc* proc = get_current_process();
755 if (proc == NULL) {
761 if (mmrangemap_pull(&proc->mmrange_map, vstart, vend, &desc)) {
768 proc->image_path, proc->pid, desc.path, vstart, vend, desc.exec_offset);
782 mmrangemap_insert(&proc->mmrange_map, &desc, NULL);
786 mmrangemap_insert(&proc->mmrange_map, &desc, NULL);
795 mmrangemap_insert(&proc->mmrange_map, &tail, NULL);
797 mmrangemap_insert(&proc->mmrange_map, &desc, NULL);