Lines Matching defs:pid

587  * trace_find_filtered_pid - check if a pid exists in a filtered_pid list
615 * If filtered_no_pids is not empty, and the task's pid is listed
623 !trace_find_filtered_pid(filtered_pids, task->pid)) ||
625 trace_find_filtered_pid(filtered_no_pids, task->pid));
637 * @task pid will be removed from the list, which would happen on exit
649 if (!trace_find_filtered_pid(pid_list, self->pid))
655 trace_pid_list_set(pid_list, task->pid);
657 trace_pid_list_clear(pid_list, task->pid);
661 * trace_pid_next - Used for seq_file to get to the next pid of a pid_list
662 * @pid_list: The pid list to show
663 * @v: The last pid that was shown (+1 the actual pid to let zero be displayed)
669 * Returns the pid+1 as we want to display pid of zero, but NULL would
674 long pid = (unsigned long)v;
679 /* pid already is +1 of the actual previous bit */
680 if (trace_pid_list_next(pid_list, pid, &next) < 0)
683 pid = next;
685 /* Return pid + 1 to allow zero to be represented */
686 return (void *)(pid + 1);
690 * trace_pid_start - Used for seq_file to start reading pid lists
691 * @pid_list: The pid list to show
697 * Returns the pid+1 as we want to display pid of zero, but NULL would
702 unsigned long pid;
709 pid = first;
711 /* Return pid + 1 so that zero can be the exit value */
712 for (pid++; pid && l < *pos;
713 pid = (unsigned long)trace_pid_next(pid_list, (void *)pid, &l))
715 return (void *)pid;
719 * trace_pid_show - show the current pid in seq_file processing
721 * @v: A void pointer of the pid (+1) value to display
724 * pid value.
728 unsigned long pid = (unsigned long)v - 1;
730 seq_printf(m, "%lu\n", pid);
748 pid_t pid;
767 ret = trace_pid_list_first(filtered_pids, &pid);
769 trace_pid_list_set(pid_list, pid);
770 ret = trace_pid_list_next(filtered_pids, pid + 1, &pid);
795 pid = (pid_t)val;
797 if (trace_pid_list_set(pid_list, pid) < 0) {
1911 max_data->pid = tsk->pid;
4114 "# cmd pid |||||| time | caller \n"
4197 data->comm, data->pid,
4288 entry->pid, iter->cpu, iter->ts);
4313 SEQ_PUT_HEX_FIELD(s, entry->pid);
4342 SEQ_PUT_FIELD(s, entry->pid);
5435 " saved_cmdlines_size\t- echo command number in here to store comm-pid list\n"
5475 " set_ftrace_pid\t- Write pid(s) to only function trace those pids\n"
5477 " set_ftrace_notrace_pid\t- Write pid(s) to not function trace those pids\n"