Lines Matching refs:pid_list
572 * trace_filter_add_remove_task - Add or remove a task from a pid_list
573 * @pid_list: The list to modify
578 * is also included in @pid_list. This happens on fork and tasks should
583 void trace_filter_add_remove_task(struct trace_pid_list *pid_list,
587 if (!pid_list)
592 if (!trace_find_filtered_pid(pid_list, self->pid))
598 trace_pid_list_set(pid_list, task->pid);
600 trace_pid_list_clear(pid_list, task->pid);
604 * trace_pid_next - Used for seq_file to get to the next pid of a pid_list
605 * @pid_list: The pid list to show
615 void *trace_pid_next(struct trace_pid_list *pid_list, void *v, loff_t *pos)
623 if (trace_pid_list_next(pid_list, pid, &next) < 0)
634 * @pid_list: The pid list to show
643 void *trace_pid_start(struct trace_pid_list *pid_list, loff_t *pos)
649 if (trace_pid_list_first(pid_list, &first) < 0)
656 pid = (unsigned long)trace_pid_next(pid_list, (void *)pid, &l))
684 struct trace_pid_list *pid_list;
702 pid_list = trace_pid_list_alloc();
703 if (!pid_list) {
712 trace_pid_list_set(pid_list, pid);
740 if (trace_pid_list_set(pid_list, pid) < 0) {
752 trace_pid_list_free(pid_list);
758 trace_pid_list_free(pid_list);
759 pid_list = NULL;
762 *new_pid_list = pid_list;