Lines Matching refs:pid_list
647 * trace_filter_add_remove_task - Add or remove a task from a pid_list
648 * @pid_list: The list to modify
653 * is also included in @pid_list. This happens on fork and tasks should
658 void trace_filter_add_remove_task(struct trace_pid_list *pid_list,
662 if (!pid_list)
667 if (!trace_find_filtered_pid(pid_list, self->pid))
673 trace_pid_list_set(pid_list, task->pid);
675 trace_pid_list_clear(pid_list, task->pid);
679 * trace_pid_next - Used for seq_file to get to the next pid of a pid_list
680 * @pid_list: The pid list to show
690 void *trace_pid_next(struct trace_pid_list *pid_list, void *v, loff_t *pos)
698 if (trace_pid_list_next(pid_list, pid, &next) < 0)
709 * @pid_list: The pid list to show
718 void *trace_pid_start(struct trace_pid_list *pid_list, loff_t *pos)
724 if (trace_pid_list_first(pid_list, &first) < 0)
731 pid = (unsigned long)trace_pid_next(pid_list, (void *)pid, &l))
759 struct trace_pid_list *pid_list;
777 pid_list = trace_pid_list_alloc();
778 if (!pid_list) {
787 trace_pid_list_set(pid_list, pid);
815 if (trace_pid_list_set(pid_list, pid) < 0) {
827 trace_pid_list_free(pid_list);
833 trace_pid_list_free(pid_list);
834 pid_list = NULL;
837 *new_pid_list = pid_list;