Lines Matching refs:pid_list
612 * trace_filter_add_remove_task - Add or remove a task from a pid_list
613 * @pid_list: The list to modify
618 * is also included in @pid_list. This happens on fork and tasks should
623 void trace_filter_add_remove_task(struct trace_pid_list *pid_list,
627 if (!pid_list)
632 if (!trace_find_filtered_pid(pid_list, self->pid))
638 trace_pid_list_set(pid_list, task->pid);
640 trace_pid_list_clear(pid_list, task->pid);
644 * trace_pid_next - Used for seq_file to get to the next pid of a pid_list
645 * @pid_list: The pid list to show
655 void *trace_pid_next(struct trace_pid_list *pid_list, void *v, loff_t *pos)
663 if (trace_pid_list_next(pid_list, pid, &next) < 0)
674 * @pid_list: The pid list to show
683 void *trace_pid_start(struct trace_pid_list *pid_list, loff_t *pos)
689 if (trace_pid_list_first(pid_list, &first) < 0)
696 pid = (unsigned long)trace_pid_next(pid_list, (void *)pid, &l))
724 struct trace_pid_list *pid_list;
742 pid_list = trace_pid_list_alloc();
743 if (!pid_list) {
752 trace_pid_list_set(pid_list, pid);
780 if (trace_pid_list_set(pid_list, pid) < 0) {
792 trace_pid_list_free(pid_list);
798 trace_pid_list_free(pid_list);
799 pid_list = NULL;
802 *new_pid_list = pid_list;