Lines Matching refs:pid_list
652 * trace_filter_add_remove_task - Add or remove a task from a pid_list
653 * @pid_list: The list to modify
658 * is also included in @pid_list. This happens on fork and tasks should
663 void trace_filter_add_remove_task(struct trace_pid_list *pid_list,
667 if (!pid_list)
672 if (!trace_find_filtered_pid(pid_list, self->pid))
678 trace_pid_list_set(pid_list, task->pid);
680 trace_pid_list_clear(pid_list, task->pid);
684 * trace_pid_next - Used for seq_file to get to the next pid of a pid_list
685 * @pid_list: The pid list to show
695 void *trace_pid_next(struct trace_pid_list *pid_list, void *v, loff_t *pos)
703 if (trace_pid_list_next(pid_list, pid, &next) < 0)
714 * @pid_list: The pid list to show
723 void *trace_pid_start(struct trace_pid_list *pid_list, loff_t *pos)
729 if (trace_pid_list_first(pid_list, &first) < 0)
736 pid = (unsigned long)trace_pid_next(pid_list, (void *)pid, &l))
764 struct trace_pid_list *pid_list;
782 pid_list = trace_pid_list_alloc();
783 if (!pid_list) {
792 trace_pid_list_set(pid_list, pid);
820 if (trace_pid_list_set(pid_list, pid) < 0) {
832 trace_pid_list_free(pid_list);
838 trace_pid_list_free(pid_list);
839 pid_list = NULL;
842 *new_pid_list = pid_list;