Lines Matching refs:seq
53 static void *task_seq_start(struct seq_file *seq, loff_t *pos) in task_seq_start() argument
55 struct bpf_iter_seq_task_info *info = seq->private; in task_seq_start()
67 static void *task_seq_next(struct seq_file *seq, void *v, loff_t *pos) in task_seq_next() argument
69 struct bpf_iter_seq_task_info *info = seq->private; in task_seq_next()
89 static int __task_seq_show(struct seq_file *seq, struct task_struct *task, in DEFINE_BPF_ITER_FUNC()
96 meta.seq = seq; in DEFINE_BPF_ITER_FUNC()
101 meta.seq = seq; in DEFINE_BPF_ITER_FUNC()
107 static int task_seq_show(struct seq_file *seq, void *v) in task_seq_show() argument
109 return __task_seq_show(seq, v, false); in task_seq_show()
112 static void task_seq_stop(struct seq_file *seq, void *v) in task_seq_stop() argument
115 (void)__task_seq_show(seq, v, true); in task_seq_stop()
195 static void *task_file_seq_start(struct seq_file *seq, loff_t *pos) in task_file_seq_start() argument
197 struct bpf_iter_seq_task_file_info *info = seq->private; in task_file_seq_start()
208 static void *task_file_seq_next(struct seq_file *seq, void *v, loff_t *pos) in task_file_seq_next() argument
210 struct bpf_iter_seq_task_file_info *info = seq->private; in task_file_seq_next()
229 static int __task_file_seq_show(struct seq_file *seq, struct file *file, in DEFINE_BPF_ITER_FUNC()
232 struct bpf_iter_seq_task_file_info *info = seq->private; in DEFINE_BPF_ITER_FUNC()
237 meta.seq = seq; in DEFINE_BPF_ITER_FUNC()
249 static int task_file_seq_show(struct seq_file *seq, void *v) in task_file_seq_show() argument
251 return __task_file_seq_show(seq, v, false); in task_file_seq_show()
254 static void task_file_seq_stop(struct seq_file *seq, void *v) in task_file_seq_stop() argument
256 struct bpf_iter_seq_task_file_info *info = seq->private; in task_file_seq_stop()
259 (void)__task_file_seq_show(seq, v, true); in task_file_seq_stop()
446 static void *task_vma_seq_start(struct seq_file *seq, loff_t *pos) in task_vma_seq_start() argument
448 struct bpf_iter_seq_task_vma_info *info = seq->private; in task_vma_seq_start()
458 static void *task_vma_seq_next(struct seq_file *seq, void *v, loff_t *pos) in task_vma_seq_next() argument
460 struct bpf_iter_seq_task_vma_info *info = seq->private; in task_vma_seq_next()
475 static int __task_vma_seq_show(struct seq_file *seq, bool in_stop) in DEFINE_BPF_ITER_FUNC()
477 struct bpf_iter_seq_task_vma_info *info = seq->private; in DEFINE_BPF_ITER_FUNC()
482 meta.seq = seq; in DEFINE_BPF_ITER_FUNC()
493 static int task_vma_seq_show(struct seq_file *seq, void *v) in task_vma_seq_show() argument
495 return __task_vma_seq_show(seq, false); in task_vma_seq_show()
498 static void task_vma_seq_stop(struct seq_file *seq, void *v) in task_vma_seq_stop() argument
500 struct bpf_iter_seq_task_vma_info *info = seq->private; in task_vma_seq_stop()
503 (void)__task_vma_seq_show(seq, true); in task_vma_seq_stop()