| /linux/tools/lib/bpf/ |
| H A D | btf_relocate.c | 16 #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 D | relo_core.c | 37 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 D | btf.c | 611 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 D | linker.c | 1099 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 D | libbpf_internal.h | 247 struct btf_type *btf_type_by_id(const struct btf *btf, __u32 type_id);
|
| H A D | libbpf.c | 3457 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 D | btf.c | 565 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 D | bpf_struct_ops.c | 97 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 D | verifier.c | 366 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 D | log.c | 432 return btf_name_by_offset(btf, btf_type_by_id(btf, id)->name_off); in btf_type_name()
|
| H A D | inode.c | 631 *btf_enums[i].type = btf_type_by_id(btf, id); in find_bpffs_btf_enums()
|
| H A D | syscall.c | 217 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 D | core.c | 587 type = btf_type_by_id(prog->aux->btf, in bpf_prog_ksym_set_name()
|
| /linux/kernel/trace/ |
| H A D | trace_btf.c | 23 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 D | bpf_trace.c | 999 t = btf_type_by_id(*btf, *btf_id); in bpf_btf_printf_prepare()
|
| /linux/net/ipv4/ |
| H A D | bpf_tcp_ca.c | 34 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 D | nf_conntrack_bpf.c | 242 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 D | bpf_qdisc.c | 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()
|
| /linux/drivers/hid/bpf/ |
| H A D | hid_bpf_struct_ops.c | 89 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 D | bpf_dummy_struct_ops.c | 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()
|
| /linux/tools/testing/selftests/bpf/prog_tests/ |
| H A D | btf_field_iter.c | 129 struct btf_type *t = btf_type_by_id(btf, id); in test_btf_field_iter()
|
| /linux/kernel/sched/ |
| H A D | ext.c | 5389 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()
|