Lines Matching refs:task
28 struct task_struct *task = NULL; in task_seq_get_next() local
36 task = get_pid_task(pid, PIDTYPE_PID); in task_seq_get_next()
37 if (!task) { in task_seq_get_next()
40 } else if (skip_if_dup_files && !thread_group_leader(task) && in task_seq_get_next()
41 task->files == task->group_leader->files) { in task_seq_get_next()
42 put_task_struct(task); in task_seq_get_next()
43 task = NULL; in task_seq_get_next()
50 return task; in task_seq_get_next()
56 struct task_struct *task; in task_seq_start() local
58 task = task_seq_get_next(info->common.ns, &info->tid, false); in task_seq_start()
59 if (!task) in task_seq_start()
64 return task; in task_seq_start()
70 struct task_struct *task; in task_seq_next() local
75 task = task_seq_get_next(info->common.ns, &info->tid, false); in task_seq_next()
76 if (!task) in task_seq_next()
79 return task; in task_seq_next()
84 __bpf_md_ptr(struct task_struct *, task);
87 DEFINE_BPF_ITER_FUNC(task, struct bpf_iter_meta *meta, struct task_struct *task) in DEFINE_BPF_ITER_FUNC() argument
89 static int __task_seq_show(struct seq_file *seq, struct task_struct *task, in DEFINE_BPF_ITER_FUNC()
103 ctx.task = task; in DEFINE_BPF_ITER_FUNC()
132 struct task_struct *task; member
150 if (info->task) { in task_file_seq_get_next()
151 curr_task = info->task; in task_file_seq_get_next()
156 info->task = NULL; in task_file_seq_get_next()
162 info->task = curr_task; in task_file_seq_get_next()
189 info->task = NULL; in task_file_seq_get_next()
200 info->task = NULL; in task_file_seq_start()
220 __bpf_md_ptr(struct task_struct *, task);
226 struct task_struct *task, u32 fd, in DEFINE_BPF_ITER_FUNC() argument
243 ctx.task = info->task; in DEFINE_BPF_ITER_FUNC()
262 put_task_struct(info->task); in task_file_seq_stop()
263 info->task = NULL; in task_file_seq_stop()
294 struct task_struct *task; member
321 if (info->task) { in task_vma_seq_get_next()
322 curr_task = info->task; in task_vma_seq_get_next()
428 info->task = curr_task; in task_vma_seq_get_next()
434 info->task = NULL; in task_vma_seq_get_next()
441 info->task = NULL; in task_vma_seq_get_next()
468 __bpf_md_ptr(struct task_struct *, task);
473 struct task_struct *task, struct vm_area_struct *vma) in DEFINE_BPF_ITER_FUNC() argument
488 ctx.task = info->task; in DEFINE_BPF_ITER_FUNC()
514 mmap_read_unlock(info->task->mm); in task_vma_seq_stop()
515 put_task_struct(info->task); in task_vma_seq_stop()
516 info->task = NULL; in task_vma_seq_stop()
543 { offsetof(struct bpf_iter__task, task),
561 { offsetof(struct bpf_iter__task_file, task),
581 { offsetof(struct bpf_iter__task_vma, task),