• Home
  • Raw
  • Download

Lines Matching refs:aux

228 				struct bpf_iter_aux_info *aux)  in bpf_iter_attach_task()  argument
237 aux->task.type = BPF_TASK_ITER_ALL; in bpf_iter_attach_task()
239 aux->task.type = BPF_TASK_ITER_TID; in bpf_iter_attach_task()
240 aux->task.pid = linfo->task.tid; in bpf_iter_attach_task()
243 aux->task.type = BPF_TASK_ITER_TGID; in bpf_iter_attach_task()
244 aux->task.pid = linfo->task.pid; in bpf_iter_attach_task()
247 aux->task.type = BPF_TASK_ITER_TGID; in bpf_iter_attach_task()
254 aux->task.pid = tgid; in bpf_iter_attach_task()
410 static int init_seq_pidns(void *priv_data, struct bpf_iter_aux_info *aux) in init_seq_pidns() argument
415 common->type = aux->task.type; in init_seq_pidns()
416 common->pid = aux->task.pid; in init_seq_pidns()
696 static int bpf_iter_fill_link_info(const struct bpf_iter_aux_info *aux, struct bpf_link_info *info) in bpf_iter_fill_link_info() argument
698 switch (aux->task.type) { in bpf_iter_fill_link_info()
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()
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()
714 if (aux->task.type == BPF_TASK_ITER_TID) in bpf_iter_task_show_fdinfo()
715 seq_printf(seq, "tid:\t%u\n", aux->task.pid); in bpf_iter_task_show_fdinfo()
716 else if (aux->task.type == BPF_TASK_ITER_TGID) in bpf_iter_task_show_fdinfo()
717 seq_printf(seq, "pid:\t%u\n", aux->task.pid); in bpf_iter_task_show_fdinfo()