Lines Matching refs:pid_list
558 * trace_filter_add_remove_task - Add or remove a task from a pid_list
559 * @pid_list: The list to modify
564 * is also included in @pid_list. This happens on fork and tasks should
569 void trace_filter_add_remove_task(struct trace_pid_list *pid_list,
573 if (!pid_list)
578 if (!trace_find_filtered_pid(pid_list, self->pid))
584 trace_pid_list_set(pid_list, task->pid);
586 trace_pid_list_clear(pid_list, task->pid);
590 * trace_pid_next - Used for seq_file to get to the next pid of a pid_list
591 * @pid_list: The pid list to show
601 void *trace_pid_next(struct trace_pid_list *pid_list, void *v, loff_t *pos)
609 if (trace_pid_list_next(pid_list, pid, &next) < 0)
620 * @pid_list: The pid list to show
629 void *trace_pid_start(struct trace_pid_list *pid_list, loff_t *pos)
635 if (trace_pid_list_first(pid_list, &first) < 0)
642 pid = (unsigned long)trace_pid_next(pid_list, (void *)pid, &l))
670 struct trace_pid_list *pid_list;
688 pid_list = trace_pid_list_alloc();
689 if (!pid_list) {
698 trace_pid_list_set(pid_list, pid);
723 if (trace_pid_list_set(pid_list, pid) < 0) {
735 trace_pid_list_free(pid_list);
741 trace_pid_list_free(pid_list);
743 pid_list = NULL;
746 *new_pid_list = pid_list;