Lines Matching defs:pid_list
695 * trace_filter_add_remove_task - Add or remove a task from a pid_list
696 * @pid_list: The list to modify
701 * is also included in @pid_list. This happens on fork and tasks should
706 void trace_filter_add_remove_task(struct trace_pid_list *pid_list,
710 if (!pid_list)
715 if (!trace_find_filtered_pid(pid_list, self->pid))
721 trace_pid_list_set(pid_list, task->pid);
723 trace_pid_list_clear(pid_list, task->pid);
727 * trace_pid_next - Used for seq_file to get to the next pid of a pid_list
728 * @pid_list: The pid list to show
738 void *trace_pid_next(struct trace_pid_list *pid_list, void *v, loff_t *pos)
746 if (trace_pid_list_next(pid_list, pid, &next) < 0)
757 * @pid_list: The pid list to show
766 void *trace_pid_start(struct trace_pid_list *pid_list, loff_t *pos)
772 if (trace_pid_list_first(pid_list, &first) < 0)
779 pid = (unsigned long)trace_pid_next(pid_list, (void *)pid, &l))
807 struct trace_pid_list *pid_list;
825 pid_list = trace_pid_list_alloc();
826 if (!pid_list) {
835 ret = trace_pid_list_set(pid_list, pid);
866 if (trace_pid_list_set(pid_list, pid) < 0) {
879 trace_pid_list_free(pid_list);
885 trace_pid_list_free(pid_list);
886 pid_list = NULL;
889 *new_pid_list = pid_list;