/openbmc/linux/tools/bpf/bpftool/ |
H A D | btf_dumper.c | 84 prog_name = btf__name_by_offset(prog_btf, func_type->name_off); in dump_prog_id_as_func_ptr() 175 btf__name_by_offset(d->btf, in btf_dumper_enum() 201 btf__name_by_offset(d->btf, in btf_dumper_enum64() 231 strcmp("char", btf__name_by_offset(btf, elem_type->name_off))) in is_str_array() 493 jsonw_name(d->jw, btf__name_by_offset(d->btf, m[i].name_off)); in btf_dumper_struct() 520 jsonw_name(d->jw, btf__name_by_offset(d->btf, t->name_off)); in btf_dumper_var() 542 jsonw_name(d->jw, btf__name_by_offset(d->btf, t->name_off)); in btf_dumper_datasec() 638 BTF_PRINT_ARG("%s ", btf__name_by_offset(btf, t->name_off)); in __btf_dumper_type_only() 642 btf__name_by_offset(btf, t->name_off)); in __btf_dumper_type_only() 646 btf__name_by_offset(btf, t->name_off)); in __btf_dumper_type_only() [all …]
|
H A D | gen.c | 130 const char *sec_name = btf__name_by_offset(btf, sec->name_off); in codegen_datasec_def() 145 const char *var_name = btf__name_by_offset(btf, var->name_off); in codegen_datasec_def() 320 sec_name = btf__name_by_offset(btf, sec->name_off); in codegen_subskel_datasecs() 338 var_name = btf__name_by_offset(btf, var->name_off); in codegen_subskel_datasecs() 504 const char *var_name = btf__name_by_offset(btf, var->name_off); in codegen_asserts() 1520 var_name = btf__name_by_offset(btf, var_type->name_off); in do_subskeleton() 2017 local_name = btf__name_by_offset(local_btf, local_type->name_off); in btfgen_find_cands() 2085 const char *sec_name = btf__name_by_offset(btf, sec->sec_name_off); in btfgen_record_obj()
|
H A D | struct_ops.c | 52 st_ops_name = btf__name_by_offset(kern_btf, t->name_off); in get_kern_struct_ops_name() 369 struct_ops_name = btf__name_by_offset(kern_btf, in __do_dump()
|
H A D | cgroup.c | 127 btf__name_by_offset(btf_vmlinux, t->name_off); in show_bpf_prog()
|
H A D | prog.c | 348 name = btf__name_by_offset(btf, t_var->name_off); in show_prog_metadata() 377 name = btf__name_by_offset(btf, t_var->name_off); in show_prog_metadata() 2254 name = strdup(btf__name_by_offset(btf, t->name_off)); in profile_target_name()
|
H A D | common.c | 442 prog_name = btf__name_by_offset(prog_btf, func_type->name_off); in get_prog_full_name()
|
H A D | btf.c | 94 return btf__name_by_offset(btf, off) ? : "(invalid)"; in btf_str()
|
/openbmc/linux/tools/lib/bpf/ |
H A D | relo_core.c | 27 static const char *btf__name_by_offset(const struct btf *btf, u32 offset) in btf__name_by_offset() function 274 spec_str = btf__name_by_offset(btf, relo->access_str_off); in bpf_core_parse_spec() 322 acc->name = btf__name_by_offset(btf, name_off); in bpf_core_parse_spec() 354 name = btf__name_by_offset(btf, m->name_off); in bpf_core_parse_spec() 440 local_name = btf__name_by_offset(local_btf, in bpf_core_fields_are_compat() 442 targ_name = btf__name_by_offset(targ_btf, targ_type->name_off); in bpf_core_fields_are_compat() 503 local_name = btf__name_by_offset(local_btf, local_member->name_off); in bpf_core_match_member() 520 targ_name = btf__name_by_offset(targ_btf, m->name_off); in bpf_core_match_member() 603 targ_name = btf__name_by_offset(targ_spec->btf, name_off); in bpf_core_spec_match() 1176 s = btf__name_by_offset(spec->btf, t->name_off); in bpf_core_format_spec() [all …]
|
H A D | libbpf.map | 57 btf__name_by_offset;
|
H A D | libbpf.c | 914 if (!strcmp(btf__name_by_offset(btf, m->name_off), name)) in find_member_by_name() 1036 mname = btf__name_by_offset(btf, member->name_off); in bpf_map__init_kern_struct_ops() 1169 var_name = btf__name_by_offset(obj->btf, type->name_off); in init_struct_ops_maps() 1179 tname = btf__name_by_offset(obj->btf, type->name_off); in init_struct_ops_maps() 2138 const char *name = btf__name_by_offset(btf, m->name_off); in get_map_field_int() 2211 const char *name = btf__name_by_offset(btf, m->name_off); in parse_btf_map_def() 2532 map_name = btf__name_by_offset(obj->btf, var->name_off); in bpf_object__init_user_btf_map() 2641 name = btf__name_by_offset(obj->btf, t->name_off); in bpf_object__init_user_btf_maps() 2743 name = (char *)btf__name_by_offset(btf, t->name_off); in bpf_object__sanitize_btf() 2884 sec_name = btf__name_by_offset(obj->btf, sec->sec_name_off); in bpf_object__init_btf() [all …]
|
H A D | btf.h | 142 LIBBPF_API const char *btf__name_by_offset(const struct btf *btf, __u32 offset);
|
H A D | linker.c | 2450 sec_name = btf__name_by_offset(obj->btf, ext_sec->sec_name_off); in linker_append_btf_ext() 2479 sec_name = btf__name_by_offset(obj->btf, ext_sec->sec_name_off); in linker_append_btf_ext() 2521 sec_name = btf__name_by_offset(obj->btf, ext_sec->sec_name_off); in linker_append_btf_ext()
|
H A D | btf.c | 509 name = btf__name_by_offset(btf, t->name_off); in determine_ptr_size() 743 const char *name = btf__name_by_offset(btf, t->name_off); in btf__find_by_name() 766 name = btf__name_by_offset(btf, t->name_off); in btf_find_by_name_kind() 1337 const char *btf__name_by_offset(const struct btf *btf, __u32 offset) in btf__name_by_offset() function
|
H A D | btf_dump.c | 133 return btf__name_by_offset(d->btf, name_off); in btf_name_of()
|
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | core_reloc.c | 454 (name = btf__name_by_offset(local_btf, btf_members(t)[0].name_off)) && in setup_type_id_case_local() 458 (name = btf__name_by_offset(local_btf, btf_members(t)[0].name_off)) && in setup_type_id_case_local() 462 (name = btf__name_by_offset(local_btf, btf_enum(t)[0].name_off)) && in setup_type_id_case_local() 467 btf_is_int(t) && (name = btf__name_by_offset(local_btf, t->name_off)) && in setup_type_id_case_local() 476 btf_is_int(t) && (name = btf__name_by_offset(local_btf, t->name_off)) && in setup_type_id_case_local()
|
H A D | resolve_btfids.c | 85 str = btf__name_by_offset(btf, type->name_off); in BTF_ID()
|
H A D | ctx_rewrite.c | 270 const char *mname = btf__name_by_offset(btf, m->name_off); in find_field_offset_aux()
|
H A D | btf.c | 4891 fname = btf__name_by_offset(btf, t->name_off); in do_test_file()
|
/openbmc/linux/tools/perf/tests/ |
H A D | sigtrap.c | 81 name = btf__name_by_offset(btf, m->name_off); in attr_has_sigtrap()
|
/openbmc/linux/tools/perf/util/ |
H A D | bpf-event.c | 140 short_name = btf__name_by_offset(btf, t->name_off); in synthesize_bpf_prog_name()
|
H A D | bpf_counter.c | 95 name = strdup(btf__name_by_offset(btf, t->name_off)); in bpf_target_prog_name()
|
H A D | annotate.c | 1954 srcline = btf__name_by_offset(btf, linfo->line_off); in symbol__disassemble_bpf()
|
/openbmc/linux/tools/bpf/resolve_btfids/ |
H A D | main.c | 587 str = btf__name_by_offset(btf, type->name_off); in symbols_resolve()
|
/openbmc/linux/tools/testing/selftests/bpf/ |
H A D | veristat.c | 933 ctx_name = btf__name_by_offset(btf, t->name_off); in fixup_obj()
|