Lines Matching refs:seq
160 static void *task_seq_start(struct seq_file *seq, loff_t *pos) in task_seq_start() argument
162 struct bpf_iter_seq_task_info *info = seq->private; in task_seq_start()
174 static void *task_seq_next(struct seq_file *seq, void *v, loff_t *pos) in task_seq_next() argument
176 struct bpf_iter_seq_task_info *info = seq->private; in task_seq_next()
196 static int __task_seq_show(struct seq_file *seq, struct task_struct *task, in DEFINE_BPF_ITER_FUNC()
203 meta.seq = seq; in DEFINE_BPF_ITER_FUNC()
213 static int task_seq_show(struct seq_file *seq, void *v) in task_seq_show() argument
215 return __task_seq_show(seq, v, false); in task_seq_show()
218 static void task_seq_stop(struct seq_file *seq, void *v) in task_seq_stop() argument
221 (void)__task_seq_show(seq, v, true); in task_seq_stop()
338 static void *task_file_seq_start(struct seq_file *seq, loff_t *pos) in task_file_seq_start() argument
340 struct bpf_iter_seq_task_file_info *info = seq->private; in task_file_seq_start()
351 static void *task_file_seq_next(struct seq_file *seq, void *v, loff_t *pos) in task_file_seq_next() argument
353 struct bpf_iter_seq_task_file_info *info = seq->private; in task_file_seq_next()
372 static int __task_file_seq_show(struct seq_file *seq, struct file *file, in DEFINE_BPF_ITER_FUNC()
375 struct bpf_iter_seq_task_file_info *info = seq->private; in DEFINE_BPF_ITER_FUNC()
380 meta.seq = seq; in DEFINE_BPF_ITER_FUNC()
392 static int task_file_seq_show(struct seq_file *seq, void *v) in task_file_seq_show() argument
394 return __task_file_seq_show(seq, v, false); in task_file_seq_show()
397 static void task_file_seq_stop(struct seq_file *seq, void *v) in task_file_seq_stop() argument
399 struct bpf_iter_seq_task_file_info *info = seq->private; in task_file_seq_stop()
402 (void)__task_file_seq_show(seq, v, true); in task_file_seq_stop()
606 static void *task_vma_seq_start(struct seq_file *seq, loff_t *pos) in task_vma_seq_start() argument
608 struct bpf_iter_seq_task_vma_info *info = seq->private; in task_vma_seq_start()
618 static void *task_vma_seq_next(struct seq_file *seq, void *v, loff_t *pos) in task_vma_seq_next() argument
620 struct bpf_iter_seq_task_vma_info *info = seq->private; in task_vma_seq_next()
635 static int __task_vma_seq_show(struct seq_file *seq, bool in_stop) in DEFINE_BPF_ITER_FUNC()
637 struct bpf_iter_seq_task_vma_info *info = seq->private; in DEFINE_BPF_ITER_FUNC()
642 meta.seq = seq; in DEFINE_BPF_ITER_FUNC()
653 static int task_vma_seq_show(struct seq_file *seq, void *v) in task_vma_seq_show() argument
655 return __task_vma_seq_show(seq, false); in task_vma_seq_show()
658 static void task_vma_seq_stop(struct seq_file *seq, void *v) in task_vma_seq_stop() argument
660 struct bpf_iter_seq_task_vma_info *info = seq->private; in task_vma_seq_stop()
663 (void)__task_vma_seq_show(seq, true); in task_vma_seq_stop()
711 static void bpf_iter_task_show_fdinfo(const struct bpf_iter_aux_info *aux, struct seq_file *seq) in bpf_iter_task_show_fdinfo() argument
713 seq_printf(seq, "task_type:\t%s\n", iter_task_type_names[aux->task.type]); in bpf_iter_task_show_fdinfo()
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()