Home
last modified time | relevance | path

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

12

/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.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()
1035 member_name = btf__name_by_offset(btf, m->name_off); in walk_st_ops_shadow_vars()
1145 type_name = btf__name_by_offset(btf, map_type->name_off); in gen_st_ops_shadow_type()
1877 var_name = btf__name_by_offset(btf, var_type->name_off); in do_subskeleton()
2380 local_name = btf__name_by_offset(local_btf, local_type->name_off); in btfgen_find_cands()
2448 const char *sec_name = btf__name_by_offset(bt in btfgen_record_obj()
[all...]
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.c165 btf__name_by_offset(btf_vmlinux, t->name_off); in show_bpf_prog()
H A Dprog.c349 name = btf__name_by_offset(btf, t_var->name_off); in show_prog_metadata()
378 name = btf__name_by_offset(btf, t_var->name_off); in show_prog_metadata()
2341 name = strdup(btf__name_by_offset(btf, t->name_off)); in profile_target_name()
/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
273 spec_str = btf__name_by_offset(btf, relo->access_str_off); in bpf_core_parse_spec()
321 acc->name = btf__name_by_offset(btf, name_off); in bpf_core_parse_spec()
353 name = btf__name_by_offset(btf, m->name_off); in bpf_core_parse_spec()
439 local_name = btf__name_by_offset(local_btf, in bpf_core_fields_are_compat()
441 targ_name = btf__name_by_offset(targ_btf, targ_type->name_off); in bpf_core_fields_are_compat()
502 local_name = btf__name_by_offset(local_btf, local_member->name_off); in bpf_core_match_member()
519 targ_name = btf__name_by_offset(targ_btf, m->name_off); in bpf_core_match_member()
602 targ_name = btf__name_by_offset(targ_spec->btf, name_off); in bpf_core_spec_match()
1191 s = btf__name_by_offset(spec->btf, t->name_off); in bpf_core_format_spec()
[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.c1022 if (!strcmp(btf__name_by_offset(btf, m->name_off), name)) in find_member_by_name()
1181 tname = btf__name_by_offset(btf, type->name_off); in bpf_map__init_kern_struct_ops()
1217 mname = btf__name_by_offset(btf, member->name_off); in bpf_map__init_kern_struct_ops()
1415 var_name = btf__name_by_offset(obj->btf, type->name_off); in init_struct_ops_maps()
1425 tname = btf__name_by_offset(obj->btf, type->name_off); in init_struct_ops_maps()
2472 const char *name = btf__name_by_offset(btf, m->name_off); in get_map_field_int()
2502 const char *name = btf__name_by_offset(btf, m->name_off); in get_map_field_long()
2585 const char *name = btf__name_by_offset(btf, m->name_off); in parse_btf_map_def()
2906 map_name = btf__name_by_offset(obj->btf, var->name_off); in bpf_object__init_user_btf_map()
3044 name = btf__name_by_offset(obj->btf, t->name_off); in bpf_object__init_user_btf_maps()
[all …]
H A Dbtf.h169 LIBBPF_API const char *btf__name_by_offset(const struct btf *btf, __u32 offset);
H A Dbtf.c677 name = btf__name_by_offset(btf, t->name_off); in determine_ptr_size()
1684 const char *btf__name_by_offset(const struct btf *btf, __u32 offset) in btf_load_from_kernel()
4503 btf__name_by_offset(d->btf, t1->name_off), in btf_dedup_identical_types()
4504 btf__name_by_offset(d->btf, t2->name_off)); in btf_dedup_identical_types()
4572 btf__name_by_offset(d->btf, t1->name_off),
4574 btf__name_by_offset(d->btf, m1->name_off));
4822 btf__name_by_offset(d->btf, cand_type->name_off), in btf_dedup_merge_hypot_map()
4824 btf__name_by_offset(d->btf, cand_m->name_off), eq); in btf_dedup_merge_hypot_map()
5723 name = btf__name_by_offset(dist->pipe.src, t->name_off); in btf_update_distilled_type_ids()
1620 const char *btf__name_by_offset(const struct btf *btf, __u32 offset) btf__name_by_offset() function
H A Dlinker.c2645 sec_name = btf__name_by_offset(obj->btf, ext_sec->sec_name_off); in linker_append_btf_ext()
2674 sec_name = btf__name_by_offset(obj->btf, ext_sec->sec_name_off); in linker_append_btf_ext()
2716 sec_name = btf__name_by_offset(obj->btf, ext_sec->sec_name_off); in linker_append_btf_ext()
/linux/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/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 Dbpf-event.c149 short_name = btf__name_by_offset(btf, t->name_off); in synthesize_bpf_prog_name()
229 const char *name = btf__name_by_offset(btf, t_var->name_off); in bpf_metadata_read_map_data()
315 const char *name = btf__name_by_offset(map->btf, in bpf_metadata_fill_event()
H A Dlibbfd.c601 srcline = btf__name_by_offset(btf, linfo->line_off); in symbol__disassemble_bpf_libbfd()
H A Dbpf_counter.c153 name = strdup(btf__name_by_offset(btf, t->name_off)); in bpf_target_prog_name()
/linux/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/tools/bpf/resolve_btfids/
H A Dmain.c662 str = btf__name_by_offset(btf, type->name_off); in symbols_resolve()
1010 tag_name = btf__name_by_offset(btf, t->name_off); in collect_kfuncs()
1019 func_name = btf__name_by_offset(btf, t->name_off); in collect_kfuncs()
1080 name = btf__name_by_offset(btf, t->name_off); in is_kf_implicit_arg()
1161 tag_name = btf__name_by_offset(btf, t->name_off); in process_kfunc_with_implicit_args()
1194 param_name = btf__name_by_offset(btf, params[i].name_off); in process_kfunc_with_implicit_args()
/linux/tools/perf/tests/
H A Dsigtrap.c117 type_name = btf__name_by_offset(btf, type->name_off); in kernel_with_sleepable_spinlocks()
/linux/tools/testing/selftests/bpf/
H A Dveristat.c1299 ctx_name = btf__name_by_offset(btf, t->name_off); in fixup_obj()
1847 const char *cur_name = btf__name_by_offset(btf, e->name_off); in enum_value_from_name()
1859 const char *cur_name = btf__name_by_offset(btf, e->name_off); in enum_value_from_name()
1975 const char *name = btf__name_by_offset(btf, member->name_off); in adjust_var_secinfo_member()
2073 btf__name_by_offset(btf, base_type->name_off)); in set_global_var()
2087 btf__name_by_offset(btf, base_type->name_off), value, in set_global_var()
2131 sec_name = btf__name_by_offset(btf, t->name_off); in set_global_vars()
2144 var_name = btf__name_by_offset(btf, var_type->name_off); in set_global_vars()

12