Lines Matching refs:btf
99 void bpf_struct_ops_init(struct btf *btf, struct bpf_verifier_log *log) in bpf_struct_ops_init() argument
114 module_id = btf_find_by_name_kind(btf, "module", BTF_KIND_STRUCT); in bpf_struct_ops_init()
119 module_type = btf_type_by_id(btf, module_id); in bpf_struct_ops_init()
132 value_id = btf_find_by_name_kind(btf, value_name, in bpf_struct_ops_init()
140 type_id = btf_find_by_name_kind(btf, st_ops->name, in bpf_struct_ops_init()
147 t = btf_type_by_id(btf, type_id); in bpf_struct_ops_init()
157 mname = btf_name_by_offset(btf, member->name_off); in bpf_struct_ops_init()
170 func_proto = btf_type_resolve_func_ptr(btf, in bpf_struct_ops_init()
174 btf_distill_func_proto(log, btf, in bpf_struct_ops_init()
184 if (st_ops->init(btf)) { in bpf_struct_ops_init()
191 st_ops->value_type = btf_type_by_id(btf, in bpf_struct_ops_init()
198 extern struct btf *btf_vmlinux;