Home
last modified time | relevance | path

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

12

/linux-6.15/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()
520 jsonw_name(d->jw, btf__name_by_offset(d->btf, t->name_off)); in btf_dumper_var()
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()
651 btf__name_by_offset(btf, t->name_off)); in __btf_dumper_type_only()
665 btf__name_by_offset(btf, t->name_off)); in __btf_dumper_type_only()
696 btf__name_by_offset(btf, t->name_off)); in __btf_dumper_type_only()
700 btf__name_by_offset(btf, t->name_off)); in __btf_dumper_type_only()
[all …]
H A Dgen.c153 const char *sec_name = btf__name_by_offset(btf, sec->name_off); in codegen_datasec_def()
168 const char *var_name = btf__name_by_offset(btf, var->name_off); in codegen_datasec_def()
350 sec_name = btf__name_by_offset(btf, sec->name_off); in codegen_subskel_datasecs()
368 var_name = btf__name_by_offset(btf, var->name_off); in codegen_subskel_datasecs()
534 const char *var_name = btf__name_by_offset(btf, var->name_off); in codegen_asserts()
983 member_name = btf__name_by_offset(btf, m->name_off); in walk_st_ops_shadow_vars()
1093 type_name = btf__name_by_offset(btf, map_type->name_off); in gen_st_ops_shadow_type()
1817 var_name = btf__name_by_offset(btf, var_type->name_off); in do_subskeleton()
2320 local_name = btf__name_by_offset(local_btf, local_type->name_off); in btfgen_find_cands()
2388 const char *sec_name = btf__name_by_offset(btf, sec->sec_name_off); in btfgen_record_obj()
H A Dbtf.c111 return btf__name_by_offset(btf, off) ? : "(invalid)"; in btf_str()
538 name = btf__name_by_offset(btf, t->name_off); in dump_btf_kfuncs()
567 opts.field_name = btf__name_by_offset(btf, t->name_off); in dump_btf_kfuncs()
643 return btf__name_by_offset(btf, name_off); in btf_type_sort_name()
656 return btf__name_by_offset(btf, t->name_off); in btf_type_sort_name()
671 return hasher(hash, str_hash(btf__name_by_offset(btf, name_off))); in btf_name_hasher()
762 d->own_name = btf__name_by_offset(btf, t->name_off); in sort_btf_c()
H A Dstruct_ops.c52 st_ops_name = btf__name_by_offset(kern_btf, t->name_off); in get_kern_struct_ops_name()
375 struct_ops_name = btf__name_by_offset(kern_btf, in __do_dump()
H A Dcgroup.c161 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()
2259 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()
/linux-6.15/tools/lib/bpf/
H A Drelo_core.c274 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()
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()
1192 s = btf__name_by_offset(spec->btf, t->name_off); in bpf_core_format_spec()
1208 s = btf__name_by_offset(spec->btf, e->name_off); in bpf_core_format_spec()
1216 s = btf__name_by_offset(spec->btf, e->name_off); in bpf_core_format_spec()
1444 local_n = btf__name_by_offset(local_btf, local_name_off); in bpf_core_names_match()
[all …]
H A Dbtf_relocate.c19 #define btf__name_by_offset btf_name_by_offset macro
203 info[id].name = btf__name_by_offset(r->dist_base_btf, dist_t->name_off); in btf_relocate_map_distilled_base()
249 base_info.name = btf__name_by_offset(r->base_btf, base_t->name_off); in btf_relocate_map_distilled_base()
370 name = btf__name_by_offset(r->dist_base_btf, dist_t->name_off); in btf_relocate_map_distilled_base()
H A Dlibbpf.map57 btf__name_by_offset;
H A Dlibbpf.c1149 tname = btf__name_by_offset(btf, type->name_off); in bpf_map__init_kern_struct_ops()
1185 mname = btf__name_by_offset(btf, member->name_off); in bpf_map__init_kern_struct_ops()
1393 tname = btf__name_by_offset(obj->btf, type->name_off); in init_struct_ops_maps()
2882 map_name = btf__name_by_offset(obj->btf, var->name_off); in bpf_object__init_user_btf_map()
3019 name = btf__name_by_offset(obj->btf, t->name_off); in bpf_object__init_user_btf_maps()
3155 name = (char *)btf__name_by_offset(btf, t->name_off); in bpf_object__sanitize_btf()
3177 name = (char *)btf__name_by_offset(btf, t->name_off); in bpf_object__sanitize_btf()
3389 var_name = btf__name_by_offset(btf, t_var->name_off); in btf_fixup_datasec()
4052 tname = btf__name_by_offset(btf, t->name_off); in find_extern_btf_id()
4101 name = btf__name_by_offset(btf, t->name_off); in find_kcfg_type()
[all …]
H A Dbtf.h164 LIBBPF_API const char *btf__name_by_offset(const struct btf *btf, __u32 offset);
H A Dbtf.c672 name = btf__name_by_offset(btf, t->name_off); in determine_ptr_size()
906 const char *name = btf__name_by_offset(btf, t->name_off); in btf__find_by_name()
929 name = btf__name_by_offset(btf, t->name_off); in btf_find_by_name_kind()
1563 const char *btf__name_by_offset(const struct btf *btf, __u32 offset) in btf__name_by_offset() function
5485 name = btf__name_by_offset(dist->pipe.src, t->name_off); in btf_add_distilled_types()
/linux-6.15/tools/sched_ext/include/scx/
H A Dcompat.h45 n = btf__name_by_offset(__COMPAT_vmlinux_btf, e[i].name_off); in __COMPAT_read_enum()
56 n = btf__name_by_offset(__COMPAT_vmlinux_btf, e[i].name_off); in __COMPAT_read_enum()
100 n = btf__name_by_offset(__COMPAT_vmlinux_btf, m[i].name_off); in __COMPAT_struct_has_field()
/linux-6.15/tools/perf/util/
H A Dbtf.c20 const char *current_member_name = btf__name_by_offset(btf, m->name_off); in __btf_type__find_member_by_name()
H A Ddisasm_bpf.c131 srcline = btf__name_by_offset(btf, linfo->line_off); in symbol__disassemble_bpf()
H A Dbpf-event.c141 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()
/linux-6.15/tools/testing/selftests/bpf/prog_tests/
H A Dcore_reloc.c455 (name = btf__name_by_offset(local_btf, btf_members(t)[0].name_off)) && in setup_type_id_case_local()
459 (name = btf__name_by_offset(local_btf, btf_members(t)[0].name_off)) && in setup_type_id_case_local()
463 (name = btf__name_by_offset(local_btf, btf_enum(t)[0].name_off)) && in setup_type_id_case_local()
468 btf_is_int(t) && (name = btf__name_by_offset(local_btf, t->name_off)) && in setup_type_id_case_local()
477 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 Dtest_global_funcs.c108 name = btf__name_by_offset(btf, fn_t->name_off); in subtest_ctx_arg_rewrite()
H A Dctx_rewrite.c273 const char *mname = btf__name_by_offset(btf, m->name_off); in find_field_offset_aux()
/linux-6.15/tools/testing/selftests/bpf/
H A Dveristat.c1230 ctx_name = btf__name_by_offset(btf, t->name_off); in fixup_obj()
1460 const char *cur_name = btf__name_by_offset(btf, e->name_off); in enum_value_from_name()
1472 const char *cur_name = btf__name_by_offset(btf, e->name_off); in enum_value_from_name()
1505 btf__name_by_offset(btf, base_type->name_off)); in set_global_var()
1519 preset->svalue, btf__name_by_offset(btf, base_type->name_off)); in set_global_var()
1533 btf__name_by_offset(btf, t->name_off), value, in set_global_var()
1577 sec_name = btf__name_by_offset(btf, t->name_off); in set_global_vars()
1590 var_name = btf__name_by_offset(btf, var_type->name_off); in set_global_vars()
/linux-6.15/tools/perf/tests/
H A Dsigtrap.c117 type_name = btf__name_by_offset(btf, type->name_off); in kernel_with_sleepable_spinlocks()
/linux-6.15/tools/bpf/resolve_btfids/
H A Dmain.c596 str = btf__name_by_offset(btf, type->name_off); in symbols_resolve()

12