Lines Matching refs:pid_list
609 * trace_filter_add_remove_task - Add or remove a task from a pid_list
610 * @pid_list: The list to modify
615 * is also included in @pid_list. This happens on fork and tasks should
620 void trace_filter_add_remove_task(struct trace_pid_list *pid_list,
624 if (!pid_list)
629 if (!trace_find_filtered_pid(pid_list, self->pid))
635 trace_pid_list_set(pid_list, task->pid);
637 trace_pid_list_clear(pid_list, task->pid);
641 * trace_pid_next - Used for seq_file to get to the next pid of a pid_list
642 * @pid_list: The pid list to show
652 void *trace_pid_next(struct trace_pid_list *pid_list, void *v, loff_t *pos)
660 if (trace_pid_list_next(pid_list, pid, &next) < 0)
671 * @pid_list: The pid list to show
680 void *trace_pid_start(struct trace_pid_list *pid_list, loff_t *pos)
686 if (trace_pid_list_first(pid_list, &first) < 0)
693 pid = (unsigned long)trace_pid_next(pid_list, (void *)pid, &l))
721 struct trace_pid_list *pid_list;
739 pid_list = trace_pid_list_alloc();
740 if (!pid_list) {
749 trace_pid_list_set(pid_list, pid);
777 if (trace_pid_list_set(pid_list, pid) < 0) {
789 trace_pid_list_free(pid_list);
795 trace_pid_list_free(pid_list);
796 pid_list = NULL;
799 *new_pid_list = pid_list;