Lines Matching refs:common
30 struct bpf_iter_seq_task_common common; member
34 static struct task_struct *task_group_seq_get_next(struct bpf_iter_seq_task_common *common, in task_group_seq_get_next() argument
44 pid = find_pid_ns(common->pid, common->ns); 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()
62 if (*tid == common->pid_visiting) { in task_group_seq_get_next()
63 pid = find_pid_ns(common->pid_visiting, common->ns); in task_group_seq_get_next()
69 pid = find_pid_ns(common->pid_visiting, common->ns); in task_group_seq_get_next()
89 *tid = __task_pid_nr_ns(next_task, PIDTYPE_PID, common->ns); in task_group_seq_get_next()
90 if (!*tid || *tid == common->pid) { in task_group_seq_get_next()
99 common->pid_visiting = *tid; in task_group_seq_get_next()
109 static struct task_struct *task_seq_get_next(struct bpf_iter_seq_task_common *common, in task_seq_get_next() argument
116 if (common->type == BPF_TASK_ITER_TID) { in task_seq_get_next()
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()
123 *tid = common->pid; in task_seq_get_next()
130 if (common->type == BPF_TASK_ITER_TGID) { in task_seq_get_next()
132 task = task_group_seq_get_next(common, tid, skip_if_dup_files); in task_seq_get_next()
140 pid = find_ge_pid(*tid, common->ns); in task_seq_get_next()
142 *tid = pid_nr_ns(pid, common->ns); in task_seq_get_next()
165 task = task_seq_get_next(&info->common, &info->tid, false); in task_seq_start()
182 task = task_seq_get_next(&info->common, &info->tid, false); in task_seq_next()
272 struct bpf_iter_seq_task_common common; member
294 curr_task = task_seq_get_next(&info->common, &info->tid, true); in task_file_seq_get_next()
327 if (info->common.type == BPF_TASK_ITER_TID) { in task_file_seq_get_next()
412 struct bpf_iter_seq_task_common *common = priv_data; in init_seq_pidns() local
414 common->ns = get_pid_ns(task_active_pid_ns(current)); in init_seq_pidns()
415 common->type = aux->task.type; in init_seq_pidns()
416 common->pid = aux->task.pid; in init_seq_pidns()
423 struct bpf_iter_seq_task_common *common = priv_data; in fini_seq_pidns() local
425 put_pid_ns(common->ns); in fini_seq_pidns()
439 struct bpf_iter_seq_task_common common; member
525 curr_task = task_seq_get_next(&info->common, &info->tid, true); in task_vma_seq_get_next()
588 if (info->common.type == BPF_TASK_ITER_TID) in task_vma_seq_get_next()