Home
last modified time | relevance | path

Searched refs:btf__name_by_offset (Results 1 – 24 of 24) sorted by relevance

/openbmc/linux/tools/bpf/bpftool/
H A Dbtf_dumper.c84 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 Dgen.c130 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 Dstruct_ops.c52 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 Dcgroup.c127 btf__name_by_offset(btf_vmlinux, t->name_off); in show_bpf_prog()
H A Dprog.c348 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 Dcommon.c442 prog_name = btf__name_by_offset(prog_btf, func_type->name_off); in get_prog_full_name()
H A Dbtf.c94 return btf__name_by_offset(btf, off) ? : "(invalid)"; in btf_str()
/openbmc/linux/tools/lib/bpf/
H A Drelo_core.c27 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 Dlibbpf.map57 btf__name_by_offset;
H A Dlibbpf.c914 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 Dbtf.h142 LIBBPF_API const char *btf__name_by_offset(const struct btf *btf, __u32 offset);
H A Dlinker.c2450 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 Dbtf.c509 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 Dbtf_dump.c133 return btf__name_by_offset(d->btf, name_off); in btf_name_of()
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/
H A Dcore_reloc.c454 (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 Dresolve_btfids.c85 str = btf__name_by_offset(btf, type->name_off); in BTF_ID()
H A Dctx_rewrite.c270 const char *mname = btf__name_by_offset(btf, m->name_off); in find_field_offset_aux()
H A Dbtf.c4891 fname = btf__name_by_offset(btf, t->name_off); in do_test_file()
/openbmc/linux/tools/perf/tests/
H A Dsigtrap.c81 name = btf__name_by_offset(btf, m->name_off); in attr_has_sigtrap()
/openbmc/linux/tools/perf/util/
H A Dbpf-event.c140 short_name = btf__name_by_offset(btf, t->name_off); in synthesize_bpf_prog_name()
H A Dbpf_counter.c95 name = strdup(btf__name_by_offset(btf, t->name_off)); in bpf_target_prog_name()
H A Dannotate.c1954 srcline = btf__name_by_offset(btf, linfo->line_off); in symbol__disassemble_bpf()
/openbmc/linux/tools/bpf/resolve_btfids/
H A Dmain.c587 str = btf__name_by_offset(btf, type->name_off); in symbols_resolve()
/openbmc/linux/tools/testing/selftests/bpf/
H A Dveristat.c933 ctx_name = btf__name_by_offset(btf, t->name_off); in fixup_obj()