Home
last modified time | relevance | path

Searched refs:btf_type_by_id (Results 1 – 22 of 22) sorted by relevance

/linux/tools/lib/bpf/
H A Dbtf_relocate.c16 #define btf_type_by_id (struct btf_type *)btf_type_by_id macro
68 struct btf_type *t = btf_type_by_id(r->btf, i); in btf_relocate_rewrite_type_id()
134 struct btf_type *t = btf_type_by_id(r->btf, i); in btf_mark_embedded_composite_type_ids()
150 t = btf_type_by_id(r->btf, next_id); in btf_mark_embedded_composite_type_ids()
202 dist_t = btf_type_by_id(r->dist_base_btf, id); in btf_relocate_map_distilled_base()
231 base_t = btf_type_by_id(r->base_btf, id); in btf_relocate_map_distilled_base()
243 base_t = btf_type_by_id(r->base_btf, id); in btf_relocate_map_distilled_base()
288 dist_t = btf_type_by_id(r->dist_base_btf, dist_info->id); in btf_relocate_map_distilled_base()
369 dist_t = btf_type_by_id(r->dist_base_btf, id); in btf_relocate_map_distilled_base()
388 struct btf_type *t = btf_type_by_id(r->dist_base_btf, i); in btf_relocate_validate_distilled_base()
[all …]
H A Drelo_core.c37 t = btf_type_by_id(btf, type_id); in btf__resolve_size()
81 t = btf_type_by_id(btf, acc->type_id); in is_flex_arr()
152 local_type = btf_type_by_id(local_btf, local_id); in __bpf_core_types_are_compat()
153 targ_type = btf_type_by_id(targ_btf, targ_id); in __bpf_core_types_are_compat()
500 local_type = btf_type_by_id(local_btf, local_id); in bpf_core_match_member()
702 t = btf_type_by_id(spec->btf, acc->type_id); in bpf_core_calc_field_relo()
875 t = btf_type_by_id(spec->btf, spec->spec[0].type_id); in bpf_core_calc_enumval_relo()
928 orig_t = btf_type_by_id(local_spec->btf, res->orig_type_id); in bpf_core_calc_relo()
929 new_t = btf_type_by_id(targ_spec->btf, res->new_type_id); in bpf_core_calc_relo()
1190 t = btf_type_by_id(spec->btf, type_id); in bpf_core_format_spec()
[all …]
H A Dbtf.c611 t = btf_type_by_id(btf, i); in btf_sanity_check()
630 struct btf_type *btf_type_by_id(const struct btf *btf, __u32 type_id) in btf_type_by_id()
635 return btf_type_by_id(btf->base_btf, type_id); in btf_type_by_id()
643 return btf_type_by_id((struct btf *)btf, type_id);
908 struct btf_type *ta = btf_type_by_id(btf, i - 1); in btf__find_by_name()
909 struct btf_type *tb = btf_type_by_id(btf, i); in btf__find_by_name()
937 t = btf_type_by_id(btf, m); in btf_find_by_name_kind()
983 t = btf_type_by_id(btf, id); in btf__free()
2370 return btf_type_by_id(btf, btf__type_cnt(btf) - 1); in btf__add_field()
2643 t = btf_type_by_id(bt in btf__add_restrict()
628 struct btf_type *btf_type_by_id(const struct btf *btf, __u32 type_id) btf_type_by_id() function
[all...]
H A Dlinker.c1099 t = btf_type_by_id(obj->btf, i); in linker_sanity_check_btf()
1929 struct btf_type *dst_t = btf_type_by_id(dst_btf, dst_id); in complete_extern_btf_info()
1930 struct btf_type *src_t = btf_type_by_id(src_btf, src_id); in complete_extern_btf_info()
1946 src_t = btf_type_by_id(src_btf, src_t->type); in complete_extern_btf_info()
1947 dst_t = btf_type_by_id(dst_btf, dst_t->type); in complete_extern_btf_info()
2331 t = btf_type_by_id(obj->btf, i); in linker_fixup_btf()
2485 struct btf_type *dst_t = btf_type_by_id(linker->btf, i); in linker_append_btf()
2519 glob_t = btf_type_by_id(linker->btf, glob_sym->btf_id); in linker_append_btf()
2553 t = btf_type_by_id(linker->btf, new_id); in linker_append_btf()
H A Dlibbpf_internal.h247 struct btf_type *btf_type_by_id(const struct btf *btf, __u32 type_id);
H A Dlibbpf.c3457 struct btf_type *t = btf_type_by_id(obj->btf, i); in bpf_object_fixup_btf()
3588 t = btf_type_by_id(obj->btf, j); in bpf_object__sanitize_and_load_btf()
6985 t = btf_type_by_id(obj->btf, i); in bpf_prog_assign_exc_cb()
6993 t = btf_type_by_id(obj->btf, t->type); in bpf_prog_assign_exc_cb()
7172 fn_t = btf_type_by_id(btf, orig_fn_id); in clone_func_btf_info()
7173 fn_proto_t = btf_type_by_id(btf, fn_t->type); in clone_func_btf_info()
7199 t = btf_type_by_id(btf, orig_proto_id); in clone_func_btf_info()
7207 fn_proto_t = btf_type_by_id(btf, fn_proto_id); in clone_func_btf_info()
7220 fn_t = btf_type_by_id(btf, fn_id); in clone_func_btf_info()
7288 fn_t = btf_type_by_id(btf, orig_fn_id); in bpf_program_fixup_func_info()
[all …]
/linux/kernel/bpf/
H A Dbtf.c565 const struct btf_type *t = btf_type_by_id(btf, i); in btf_check_sorted()
577 const struct btf_type *ta = btf_type_by_id(btf, i - 1); in btf_check_sorted()
578 const struct btf_type *tb = btf_type_by_id(btf, i); in btf_check_sorted()
626 t = btf_type_by_id(btf, m); in btf_find_by_name_kind_bsearch()
657 t = btf_type_by_id(btf, id); in btf_find_by_name_kind()
666 t = btf_type_by_id(btf, id); in btf_find_by_name_kind()
726 const struct btf_type *t = btf_type_by_id(btf, id); in btf_type_skip_modifiers()
730 t = btf_type_by_id(btf, t->type); in btf_type_skip_modifiers()
959 const struct btf_type *btf_type_by_id(const struct btf *btf, u32 type_id) in btf_type_by_id() function
969 EXPORT_SYMBOL_GPL(btf_type_by_id);
[all …]
H A Dbpf_struct_ops.c97 vt = btf_type_by_id(btf, value_id); in is_valid_value_type()
104 mt = btf_type_by_id(btf, member->type); in is_valid_value_type()
105 common_value_type = btf_type_by_id(btf_vmlinux, in is_valid_value_type()
113 mt = btf_type_by_id(btf, member->type); in is_valid_value_type()
202 stub_func_proto = btf_type_by_id(btf, stub_func_id); in prepare_arg_info()
203 stub_func_proto = btf_type_by_id(btf, stub_func_proto->type); in prepare_arg_info()
364 t = btf_type_by_id(btf, type_id); in bpf_struct_ops_desc_init()
389 st_ops_desc->value_type = btf_type_by_id(btf, value_id); in bpf_struct_ops_desc_init()
567 mtype = btf_type_by_id(btf, member->type); in check_zero_holes()
745 module_type = btf_type_by_id(btf_vmlinux, st_ops_ids[IDX_MODULE_ID]); in bpf_struct_ops_map_update_elem()
[all …]
H A Dverifier.c366 return btf_name_by_offset(btf, btf_type_by_id(btf, id)->name_off); in btf_type_name()
3129 t = btf_type_by_id(btf, main_btf_id); in bpf_find_exception_callback_insn_off()
3152 t = btf_type_by_id(btf, id); in bpf_find_exception_callback_insn_off()
3371 func = btf_type_by_id(btf, impl_id); in find_kfunc_impl_proto()
3373 return btf_type_by_id(btf, func->type); in find_kfunc_impl_proto()
3406 func = btf_type_by_id(btf, func_id); in fetch_kfunc_meta()
3421 func_proto = btf_type_by_id(btf, func->type); in fetch_kfunc_meta()
4182 func = btf_type_by_id(desc_btf, insn->imm); in disasm_kfunc_name()
6148 t = btf_type_by_id(field->kptr.btf, field->kptr.btf_id); in mark_uptr_ld_reg()
7386 const struct btf_type *t = btf_type_by_id(reg->btf, reg->btf_id); in check_ptr_to_btf_access()
[all …]
H A Dlog.c432 return btf_name_by_offset(btf, btf_type_by_id(btf, id)->name_off); in btf_type_name()
H A Dinode.c631 *btf_enums[i].type = btf_type_by_id(btf, id); in find_bpffs_btf_enums()
H A Dsyscall.c217 t = btf_type_by_id(field->kptr.btf, field->kptr.btf_id); in bpf_obj_pin_uptrs()
1258 key_type = btf_type_by_id(btf, 0); in map_check_btf()
H A Dcore.c587 type = btf_type_by_id(prog->aux->btf, in bpf_prog_ksym_set_name()
/linux/kernel/trace/
H A Dtrace_btf.c23 t = btf_type_by_id(*btf_p, id); in btf_find_func_proto()
28 t = btf_type_by_id(*btf_p, t->type); in btf_find_func_proto()
113 type = btf_type_by_id(btf, tid); in btf_find_struct_member()
H A Dbpf_trace.c999 t = btf_type_by_id(*btf, *btf_id); in bpf_btf_printf_prepare()
/linux/net/ipv4/
H A Dbpf_tcp_ca.c34 tcp_sock_type = btf_type_by_id(btf, tcp_sock_id); 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()
/linux/net/netfilter/
H A Dnf_conntrack_bpf.c242 ncit = btf_type_by_id(reg->btf, btf_nf_conn_ids[1]); in BTF_ID()
243 nct = btf_type_by_id(reg->btf, btf_nf_conn_ids[0]); in BTF_ID()
244 t = btf_type_by_id(reg->btf, reg->btf_id); in BTF_ID()
/linux/net/sched/
H A Dbpf_qdisc.c104 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()
/linux/drivers/hid/bpf/
H A Dhid_bpf_struct_ops.c89 t = btf_type_by_id(reg->btf, reg->btf_id); in hid_bpf_ops_btf_struct_access()
108 state = btf_type_by_id(reg->btf, type_id); in hid_bpf_ops_btf_struct_access()
/linux/net/bpf/
H A Dbpf_dummy_struct_ops.c249 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()
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dbtf_field_iter.c129 struct btf_type *t = btf_type_by_id(btf, id); in test_btf_field_iter()
/linux/kernel/sched/
H A Dext.c5389 t = btf_type_by_id(reg->btf, reg->btf_id); in bpf_scx_btf_struct_access()
5500 task_struct_type = btf_type_by_id(btf, btf_tracing_ids[BTF_TRACING_TYPE_TASK]); in bpf_scx_init()