Lines Matching refs:pid

22 	u32 pid;  member
39 struct pid *pid; in task_group_seq_get_next() local
44 pid = find_pid_ns(common->pid, common->ns); in task_group_seq_get_next()
45 if (!pid) in task_group_seq_get_next()
48 task = get_pid_task(pid, PIDTYPE_TGID); in task_group_seq_get_next()
52 *tid = common->pid; in task_group_seq_get_next()
53 common->pid_visiting = common->pid; in task_group_seq_get_next()
63 pid = find_pid_ns(common->pid_visiting, common->ns); in task_group_seq_get_next()
64 task = get_pid_task(pid, PIDTYPE_PID); in task_group_seq_get_next()
69 pid = find_pid_ns(common->pid_visiting, common->ns); in task_group_seq_get_next()
70 if (!pid) in task_group_seq_get_next()
73 task = get_pid_task(pid, PIDTYPE_PID); in task_group_seq_get_next()
90 if (!*tid || *tid == common->pid) { in task_group_seq_get_next()
114 struct pid *pid; in task_seq_get_next() local
117 if (*tid && *tid != common->pid) in task_seq_get_next()
120 pid = find_pid_ns(common->pid, common->ns); in task_seq_get_next()
121 if (pid) { in task_seq_get_next()
122 task = get_pid_task(pid, PIDTYPE_TGID); in task_seq_get_next()
123 *tid = common->pid; in task_seq_get_next()
140 pid = find_ge_pid(*tid, common->ns); in task_seq_get_next()
141 if (pid) { in task_seq_get_next()
142 *tid = pid_nr_ns(pid, common->ns); in task_seq_get_next()
143 task = get_pid_task(pid, PIDTYPE_PID); in task_seq_get_next()
231 struct pid *pid; in bpf_iter_attach_task() local
234 if ((!!linfo->task.tid + !!linfo->task.pid + !!linfo->task.pid_fd) > 1) in bpf_iter_attach_task()
240 aux->task.pid = linfo->task.tid; in bpf_iter_attach_task()
242 if (linfo->task.pid != 0) { in bpf_iter_attach_task()
244 aux->task.pid = linfo->task.pid; in bpf_iter_attach_task()
249 pid = pidfd_get_pid(linfo->task.pid_fd, &flags); in bpf_iter_attach_task()
250 if (IS_ERR(pid)) in bpf_iter_attach_task()
251 return PTR_ERR(pid); in bpf_iter_attach_task()
253 tgid = pid_nr_ns(pid, task_active_pid_ns(current)); in bpf_iter_attach_task()
254 aux->task.pid = tgid; in bpf_iter_attach_task()
255 put_pid(pid); in bpf_iter_attach_task()
416 common->pid = aux->task.pid; in init_seq_pidns()
700 info->iter.task.tid = aux->task.pid; in bpf_iter_fill_link_info()
703 info->iter.task.pid = aux->task.pid; in bpf_iter_fill_link_info()
715 seq_printf(seq, "tid:\t%u\n", aux->task.pid); in bpf_iter_task_show_fdinfo()
717 seq_printf(seq, "pid:\t%u\n", aux->task.pid); in bpf_iter_task_show_fdinfo()