Searched refs:btf (Results 1 – 5 of 5) sorted by relevance
| /net/sched/ |
| A D | bpf_qdisc.c | 24 static int bpf_qdisc_init(struct btf *btf) in bpf_qdisc_init() argument 38 struct btf *btf = prog->aux->attach_btf; in BTF_ID_LIST_SINGLE() local 41 arg = btf_ctx_arg_idx(btf, prog->aux->attach_func_proto, off); in BTF_ID_LIST_SINGLE() 45 info->btf = btf; in BTF_ID_LIST_SINGLE() 104 skbt = btf_type_by_id(reg->btf, bpf_sk_buff_ids[0]); in bpf_qdisc_btf_struct_access() 105 qdisct = btf_type_by_id(reg->btf, bpf_qdisc_ids[0]); in bpf_qdisc_btf_struct_access() 106 t = btf_type_by_id(reg->btf, reg->btf_id); in bpf_qdisc_btf_struct_access() 119 btf_name_by_offset(reg->btf, t->name_off), off); in bpf_qdisc_btf_struct_access() 126 off, size, btf_name_by_offset(reg->btf, t->name_off), end); in bpf_qdisc_btf_struct_access()
|
| /net/ipv4/ |
| A D | bpf_tcp_ca.c | 21 static int bpf_tcp_ca_init(struct btf *btf) in bpf_tcp_ca_init() argument 25 type_id = btf_find_by_name_kind(btf, "sock", BTF_KIND_STRUCT); in bpf_tcp_ca_init() 30 type_id = btf_find_by_name_kind(btf, "tcp_sock", BTF_KIND_STRUCT); in bpf_tcp_ca_init() 34 tcp_sock_type = btf_type_by_id(btf, tcp_sock_id); in bpf_tcp_ca_init() 36 type_id = btf_find_by_name_kind(btf, "tcp_congestion_ops", BTF_KIND_STRUCT); in bpf_tcp_ca_init() 39 tcp_congestion_ops_type = btf_type_by_id(btf, type_id); in bpf_tcp_ca_init() 68 t = btf_type_by_id(reg->btf, reg->btf_id); in bpf_tcp_ca_btf_struct_access()
|
| /net/bpf/ |
| A D | bpf_dummy_struct_ops.c | 25 static struct btf *bpf_dummy_ops_btf; 205 static int bpf_dummy_init(struct btf *btf) in bpf_dummy_init() argument 207 bpf_dummy_ops_btf = btf; in bpf_dummy_init() 244 type_id = btf_find_by_name_kind(reg->btf, "bpf_dummy_ops_state", in bpf_dummy_ops_btf_struct_access() 249 t = btf_type_by_id(reg->btf, reg->btf_id); in bpf_dummy_ops_btf_struct_access() 250 state = btf_type_by_id(reg->btf, type_id); in bpf_dummy_ops_btf_struct_access()
|
| /net/netfilter/ |
| A D | nf_bpf_link.c | 275 struct btf *btf; in nf_ptr_to_btf_id() local 278 btf = bpf_get_btf_vmlinux(); in nf_ptr_to_btf_id() 279 if (IS_ERR_OR_NULL(btf)) in nf_ptr_to_btf_id() 282 type_id = btf_find_by_name_kind(btf, name, BTF_KIND_STRUCT); in nf_ptr_to_btf_id() 286 info->btf = btf; in nf_ptr_to_btf_id()
|
| A D | nf_conntrack_bpf.c | 243 ncit = btf_type_by_id(reg->btf, btf_nf_conn_ids[1]); in BTF_ID() 244 nct = btf_type_by_id(reg->btf, btf_nf_conn_ids[0]); in BTF_ID() 245 t = btf_type_by_id(reg->btf, reg->btf_id); in BTF_ID()
|
Completed in 730 milliseconds