/openbmc/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | btf_write.c | 30 t = btf__type_by_id(btf, 1); in gen_btf() 57 t = btf__type_by_id(btf, 2); in gen_btf() 65 t = btf__type_by_id(btf, 3); in gen_btf() 73 t = btf__type_by_id(btf, 4); in gen_btf() 81 t = btf__type_by_id(btf, 5); in gen_btf() 90 t = btf__type_by_id(btf, 6); in gen_btf() 108 t = btf__type_by_id(btf, 7); in gen_btf() 140 t = btf__type_by_id(btf, 8); in gen_btf() 163 t = btf__type_by_id(btf, 9); in gen_btf() 182 t = btf__type_by_id(btf, 10); in gen_btf() [all …]
|
H A D | btf_split.c | 44 t = btf__type_by_id(btf2, 1); in test_btf_split() 56 t = btf__type_by_id(btf1, 4); in test_btf_split() 59 t = btf__type_by_id(btf2, 4); in test_btf_split()
|
H A D | libbpf_str.c | 36 t = btf__type_by_id(btf, id); in test_libbpf_bpf_attach_type_str() 81 t = btf__type_by_id(btf, id); in test_libbpf_bpf_link_type_str() 126 t = btf__type_by_id(btf, id); in test_libbpf_bpf_map_type_str() 176 t = btf__type_by_id(btf, id); in test_libbpf_bpf_prog_type_str()
|
H A D | libbpf_probes.c | 22 t = btf__type_by_id(btf, id); in test_libbpf_probe_prog_types() 60 t = btf__type_by_id(btf, id); in test_libbpf_probe_map_types()
|
H A D | btf_endian.c | 91 t = btf__type_by_id(swap_btf, var_id); in test_btf_endian()
|
H A D | resolve_btfids.c | 72 type = btf__type_by_id(btf, type_id); in BTF_ID()
|
H A D | core_reloc.c | 448 t = btf__type_by_id(local_btf, i); in setup_type_id_case_local() 465 } else if (btf_is_ptr(t) && (t = btf__type_by_id(local_btf, t->type))) { in setup_type_id_case_local() 466 if (btf_is_func_proto(t) && (t = btf__type_by_id(local_btf, t->type)) && in setup_type_id_case_local() 475 } else if (btf_is_array(t) && (t = btf__type_by_id(local_btf, btf_array(t)->type)) && in setup_type_id_case_local()
|
H A D | btf_dedup_split.c | 46 t = btf__type_by_id(btf2, 1); in test_split_simple()
|
H A D | verifier_log.c | 291 t = (void *)btf__type_by_id(btf, res); in verif_btf_log_subtest()
|
/openbmc/linux/tools/bpf/bpftool/ |
H A D | gen.c | 144 const struct btf_type *var = btf__type_by_id(btf, sec_var->type); in codegen_datasec_def() 218 const struct btf_type *t = btf__type_by_id(btf, i); in find_type_for_map() 291 return btf_is_ptr(v) && btf_is_func_proto(btf__type_by_id(btf, v->type)); in btf_is_ptr_to_func_proto() 337 var = btf__type_by_id(btf, sec_var->type); in codegen_subskel_datasecs() 503 const struct btf_type *var = btf__type_by_id(btf, sec_var->type); in codegen_asserts() 1397 map_type = btf__type_by_id(btf, map_type_id); in do_subskeleton() 1402 var_type = btf__type_by_id(btf, var->type); in do_subskeleton() 1515 map_type = btf__type_by_id(btf, map_type_id); in do_subskeleton() 1519 var_type = btf__type_by_id(btf, var->type); in do_subskeleton() 1721 const struct btf_type *t = btf__type_by_id(info->marked_btf, type_id); in btfgen_mark_member() [all …]
|
H A D | btf_dumper.c | 80 func_type = btf__type_by_id(prog_btf, finfo.type_id); in dump_prog_id_as_func_ptr() 121 ptr_type = btf__type_by_id(d->btf, ptr_type_id); in btf_dumper_ptr() 220 elem_type = btf__type_by_id(btf, arr->type); in is_str_array() 225 elem_type = btf__type_by_id(btf, elem_type->type); in is_str_array() 250 const struct btf_type *t = btf__type_by_id(d->btf, type_id); in btf_dumper_array() 475 t = btf__type_by_id(d->btf, type_id); in btf_dumper_struct() 516 const struct btf_type *t = btf__type_by_id(d->btf, type_id); in btf_dumper_var() 534 t = btf__type_by_id(d->btf, type_id); in btf_dumper_datasec() 558 const struct btf_type *t = btf__type_by_id(d->btf, type_id); in btf_dumper_do_type() 632 t = btf__type_by_id(btf, type_id); in __btf_dumper_type_only() [all …]
|
H A D | struct_ops.c | 51 t = btf__type_by_id(kern_btf, info->btf_vmlinux_value_type_id); in get_kern_struct_ops_name() 75 map_info_type = btf__type_by_id(kern_btf, map_info_type_id); in get_map_info_type_id() 367 struct_ops_type = btf__type_by_id(kern_btf, in __do_dump()
|
H A D | btf.c | 377 vt = btf__type_by_id(btf, v->type); in dump_btf_type() 432 t = btf__type_by_id(btf, root_type_ids[i]); in dump_btf_raw() 445 t = btf__type_by_id(btf, i); in dump_btf_raw()
|
H A D | prog.c | 328 t_datasec = btf__type_by_id(btf, map_info.btf_value_type_id); in show_prog_metadata() 347 t_var = btf__type_by_id(btf, vsi->type); in show_prog_metadata() 376 t_var = btf__type_by_id(btf, vsi->type); in show_prog_metadata() 2248 t = btf__type_by_id(btf, func_info.type_id); in profile_target_name()
|
H A D | cgroup.c | 125 btf__type_by_id(btf_vmlinux, info.attach_btf_id); in show_bpf_prog()
|
/openbmc/linux/tools/lib/bpf/ |
H A D | btf_dump.c | 318 t = btf__type_by_id(d->btf, i); in btf_dump_mark_referenced() 491 t = btf__type_by_id(d->btf, id); in btf_dump_order_type() 654 const struct btf_type *t = btf__type_by_id(d->btf, id); in btf_dump_is_blacklisted() 695 t = btf__type_by_id(d->btf, id); in btf_dump_emit_type() 1296 t = btf__type_by_id(d->btf, id); in btf_dump_emit_type_decl() 1375 t = btf__type_by_id(d->btf, id); in btf_dump_emit_mods() 1401 t = btf__type_by_id(d->btf, id); in btf_dump_drop_mods() 1445 t = btf__type_by_id(d->btf, id); in btf_dump_emit_type_chain() 1522 next_t = btf__type_by_id(d->btf, next_id); in btf_dump_emit_type_chain() 1616 t = btf__type_by_id(d->btf, id); in btf_dump_emit_type_cast() [all …]
|
H A D | libbpf.c | 942 kern_type = btf__type_by_id(btf, kern_type_id); in find_struct_ops_kern_types() 956 kern_vtype = btf__type_by_id(btf, kern_vtype_id); in find_struct_ops_kern_types() 1165 datasec = btf__type_by_id(btf, datasec_id); in init_struct_ops_maps() 1168 type = btf__type_by_id(obj->btf, vsi->type); in init_struct_ops_maps() 1178 type = btf__type_by_id(obj->btf, type_id); in init_struct_ops_maps() 1618 t = btf__type_by_id(obj->btf, map->btf_value_type_id); in map_is_mmapable() 1624 vt = btf__type_by_id(obj->btf, vsi->type); in map_is_mmapable() 2067 const struct btf_type *t = btf__type_by_id(btf, id); in skip_mods_and_typedefs() 2075 t = btf__type_by_id(btf, t->type); in skip_mods_and_typedefs() 2148 arr_t = btf__type_by_id(btf, t->type); in get_map_field_int() [all …]
|
H A D | btf.c | 471 const struct btf_type *btf__type_by_id(const struct btf *btf, __u32 type_id) in btf__type_by_id() function 502 t = btf__type_by_id(btf, i); in determine_ptr_size() 612 t = btf__type_by_id(btf, type_id); in btf__resolve_size() 647 t = btf__type_by_id(btf, type_id); in btf__resolve_size() 661 const struct btf_type *t = btf__type_by_id(btf, id); in btf__align_of() 719 t = btf__type_by_id(btf, type_id); in btf__resolve_type() 724 t = btf__type_by_id(btf, type_id); in btf__resolve_type() 742 const struct btf_type *t = btf__type_by_id(btf, i); in btf__find_by_name() 761 const struct btf_type *t = btf__type_by_id(btf, i); in btf_find_by_name_kind() 3867 if (!btf_is_fwd(btf__type_by_id(d->btf, type_id))) in resolve_fwd_id() [all …]
|
H A D | linker.c | 1585 t = btf__type_by_id(obj->btf, btf_id); in glob_map_defs_match() 1599 t = btf__type_by_id(linker->btf, glob_sym->btf_id); in glob_map_defs_match() 1630 src_t = btf__type_by_id(obj->btf, btf_id); in glob_syms_match() 1669 t = btf__type_by_id(obj->btf, i); in find_glob_sym_btf() 1689 t = btf__type_by_id(obj->btf, vi->type); in find_glob_sym_btf() 1854 t = btf__type_by_id(obj->btf, btf_sec_id); in linker_append_elf_sym() 2192 const struct btf_type *vt = btf__type_by_id(obj->btf, vi->type); in linker_fixup_btf() 2256 t = btf__type_by_id(obj->btf, i); in linker_append_btf() 2354 t = btf__type_by_id(obj->btf, src_sec->sec_type_id); in linker_append_btf()
|
H A D | libbpf.map | 61 btf__type_by_id;
|
H A D | btf.h | 130 LIBBPF_API const struct btf_type *btf__type_by_id(const struct btf *btf,
|
/openbmc/linux/tools/perf/util/ |
H A D | bpf_off_cpu.c | 110 t1 = btf__type_by_id(btf, type_id); in check_sched_switch_args() 114 t2 = btf__type_by_id(btf, t1->type); in check_sched_switch_args() 118 t3 = btf__type_by_id(btf, t2->type); in check_sched_switch_args()
|
/openbmc/linux/tools/perf/tests/ |
H A D | sigtrap.c | 79 t = btf__type_by_id(btf, id); in attr_has_sigtrap()
|
/openbmc/linux/tools/testing/selftests/bpf/ |
H A D | veristat.c | 916 t = btf__type_by_id(btf, id); in fixup_obj() 917 t = btf__type_by_id(btf, t->type); in fixup_obj() 922 t = btf__type_by_id(btf, btf_params(t)[0].type); in fixup_obj() 924 t = btf__type_by_id(btf, t->type); in fixup_obj() 927 t = btf__type_by_id(btf, t->type); in fixup_obj() 929 t = btf__type_by_id(btf, t->type); in fixup_obj()
|
H A D | btf_helpers.c | 94 t = btf__type_by_id(btf, id); in fprintf_btf_type_raw()
|