Lines Matching refs:tasks
191 if (pids->tasks[i].pid == pid) in get_task_info()
192 return &pids->tasks[i]; in get_task_info()
202 struct pid_task *n = realloc(pids->tasks, in add_task_info()
203 sizeof(*pids->tasks) * ns); in add_task_info()
206 pids->tasks = n; in add_task_info()
209 struct pid_task * task_info = &pids->tasks[pids->count++]; in add_task_info()
354 if (self->pids.tasks[i].pid != 0 in process_stopping_done()
355 && (self->pids.tasks[i].delivered in process_stopping_done()
356 || self->pids.tasks[i].sysret)) in process_stopping_done()
357 continue_process(self->pids.tasks[i].pid); in process_stopping_done()
478 if (pids->tasks[i].pid != 0 in continue_for_sigstop_delivery()
479 && pids->tasks[i].sigstopped in continue_for_sigstop_delivery()
480 && !pids->tasks[i].delivered in continue_for_sigstop_delivery()
481 && pids->tasks[i].got_event) { in continue_for_sigstop_delivery()
483 pids->tasks[i].pid); in continue_for_sigstop_delivery()
484 ptrace(PTRACE_SYSCALL, pids->tasks[i].pid, 0, 0); in continue_for_sigstop_delivery()
528 if (pids->tasks[i].pid != 0 in await_sigstop_delivery()
529 && pids->tasks[i].sigstopped in await_sigstop_delivery()
530 && !pids->tasks[i].delivered) { in await_sigstop_delivery()
545 if (pids->tasks[i].pid != 0 in all_stops_accountable()
546 && !pids->tasks[i].got_event in all_stops_accountable()
547 && !have_events_for(pids->tasks[i].pid)) in all_stops_accountable()
853 free(self->pids.tasks); in process_stopping_destroy()
977 free(self->pids.tasks); in ltrace_exiting_destroy()