Home
last modified time | relevance | path

Searched refs:btf__name_by_offset (Results 1 – 25 of 28) 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()
551 jsonw_name(d->jw, btf__name_by_offset(d->btf, t->name_off)); in btf_dumper_datasec()
649 BTF_PRINT_ARG("%s ", btf__name_by_offset(btf, t->name_off)); in __btf_dumper_type_only()
653 btf__name_by_offset(btf, t->name_off)); in __btf_dumper_type_only()
657 btf__name_by_offset(bt in __btf_dumper_type_only()
[all...]
H A Dgen.c159 const char *sec_name = btf__name_by_offset(btf, sec->name_off); in codegen_datasec_def()
174 const char *var_name = btf__name_by_offset(btf, var->name_off); in codegen_datasec_def()
367 sec_name = btf__name_by_offset(btf, sec->name_off); in codegen_subskel_datasecs()
385 var_name = btf__name_by_offset(btf, var->name_off); in codegen_subskel_datasecs()
541 const char *var_name = btf__name_by_offset(btf, var->name_off); in codegen_asserts()
1056 member_name = btf__name_by_offset(btf, m->name_off); in walk_st_ops_shadow_vars()
1166 type_name = btf__name_by_offset(btf, map_type->name_off); in gen_st_ops_shadow_type()
1898 var_name = btf__name_by_offset(btf, var_type->name_off); in do_subskeleton()
2403 local_name = btf__name_by_offset(local_btf, local_type->name_off); in btfgen_find_cands()
2471 const char *sec_name = btf__name_by_offset(bt in btfgen_record_obj()
[all...]
H A Dbtf.c116 return btf__name_by_offset(btf, off) ? : "(invalid)"; in btf_kind_safe()
862 name = btf__name_by_offset(btf, t->name_off); in btf_is_kernel_module()
891 opts.field_name = btf__name_by_offset(btf, t->name_off); in merge_btf_files()
967 return btf__name_by_offset(btf, name_off); in do_dump()
980 return btf__name_by_offset(btf, t->name_off); in do_dump()
995 return hasher(hash, str_hash(btf__name_by_offset(btf, name_off))); in do_dump()
1086 d->own_name = btf__name_by_offset(btf, t->name_off); in do_dump()
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.c230 btf__name_by_offset(btf_vmlinux, t->name_off); in cgroup_has_attached_progs()
H A Dcommon.c459 prog_name = btf__name_by_offset(prog_btf, func_type->name_off); in get_fd_type()
/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()
323 acc->name = btf__name_by_offset(btf, name_off); in bpf_core_parse_spec()
355 name = btf__name_by_offset(btf, m->name_off); in bpf_core_parse_spec()
441 local_name = btf__name_by_offset(local_btf, in bpf_core_fields_are_compat()
443 targ_name = btf__name_by_offset(targ_btf, targ_type->name_off); in bpf_core_fields_are_compat()
504 local_name = btf__name_by_offset(local_btf, local_member->name_off); in bpf_core_match_member()
521 targ_name = btf__name_by_offset(targ_btf, m->name_off); in bpf_core_match_member()
604 targ_name = btf__name_by_offset(targ_spec->btf, name_off); in bpf_core_spec_match()
1197 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.c1115 if (!strcmp(btf__name_by_offset(btf, m->name_off), name)) in is_valid_st_ops_program()
1274 tname = btf__name_by_offset(btf, type->name_off); in bpf_map__init_kern_struct_ops()
1310 mname = btf__name_by_offset(btf, member->name_off); in bpf_map__init_kern_struct_ops()
1513 var_name = btf__name_by_offset(obj->btf, type->name_off); in bpf_object_init_struct_ops()
1523 tname = btf__name_by_offset(obj->btf, type->name_off); in bpf_object__new()
2595 const char *name = btf__name_by_offset(btf, m->name_off);
2625 const char *name = btf__name_by_offset(btf, m->name_off); in parse_btf_map_def()
2708 const char *name = btf__name_by_offset(btf, m->name_off); in parse_btf_map_def()
3029 map_name = btf__name_by_offset(obj->btf, var->name_off); in init_arena_map_data()
3285 name = btf__name_by_offset(ob in bpf_object__sanitize_btf()
[all...]
H A Dbtf.c892 name = btf__name_by_offset(btf, t->name_off); in is_host_big_endian()
1944 const char *btf__name_by_offset(const struct btf *btf, __u32 offset) in btf_get_from_fd()
5149 btf__name_by_offset(d->btf, t1->name_off),
5150 btf__name_by_offset(d->btf, t2->name_off));
5218 btf__name_by_offset(d->btf, t1->name_off), in btf_dedup_merge_hypot_map()
5220 btf__name_by_offset(d->btf, m1->name_off)); in btf_dedup_merge_hypot_map()
5468 btf__name_by_offset(d->btf, cand_type->name_off), in btf_dedup_ref_type()
5470 btf__name_by_offset(d->btf, cand_m->name_off), eq); in btf_dedup_ref_type()
6413 name = btf__name_by_offset(dist->pipe.src, t->name_off);
1888 const char *btf__name_by_offset(const struct btf *btf, __u32 offset) btf__name_by_offset() function
H A Dbtf.h191 LIBBPF_API const char *btf__name_by_offset(const struct btf *btf, __u32 offset);
H A Dlinker.c2672 sec_name = btf__name_by_offset(obj->btf, ext_sec->sec_name_off); in linker_append_btf_ext()
2701 sec_name = btf__name_by_offset(obj->btf, ext_sec->sec_name_off); in linker_append_btf_ext()
2743 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.h130 n = btf__name_by_offset(__COMPAT_vmlinux_btf, e[i].name_off); in __COMPAT_read_enum()
131 SCX_BUG_ON(!n, "btf__name_by_offset()"); in __COMPAT_read_enum()
154 n = btf__name_by_offset(__COMPAT_vmlinux_btf, e[i].name_off); in __COMPAT_read_enum()
155 SCX_BUG_ON(!n, "btf__name_by_offset()"); in __COMPAT_read_enum()
198 n = btf__name_by_offset(__COMPAT_vmlinux_btf, m[i].name_off); in __COMPAT_struct_has_field()
199 SCX_BUG_ON(!n, "btf__name_by_offset()"); in __COMPAT_struct_has_field()
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dresolve_btfids.c157 str = btf__name_by_offset(btf, type->name_off); in BTF_ID()
210 name = btf__name_by_offset(btf, t->name_off); in btf_has_decl_tag()
254 name = btf__name_by_offset(btf, tag->name_off); in is_arena_tagged_ptr()
H A Dcore_reloc.c456 (name = btf__name_by_offset(local_btf, btf_members(t)[0].name_off)) && in setup_type_id_case_local()
460 (name = btf__name_by_offset(local_btf, btf_members(t)[0].name_off)) && in setup_type_id_case_local()
464 (name = btf__name_by_offset(local_btf, btf_enum(t)[0].name_off)) && in setup_type_id_case_local()
469 btf_is_int(t) && (name = btf__name_by_offset(local_btf, t->name_off)) && in setup_type_id_case_local()
478 btf_is_int(t) && (name = btf__name_by_offset(local_btf, t->name_off)) && in setup_type_id_case_local()
H A Dtest_global_funcs.c109 name = btf__name_by_offset(btf, fn_t->name_off); in subtest_ctx_arg_rewrite()
H A Dtracing_multi.c131 str = btf__name_by_offset(btf, type->name_off); in get_ids()
691 str = btf__name_by_offset(btf, type->name_off); in serial_test_tracing_multi_bench_attach()
828 str = btf__name_by_offset(btf, type->name_off); in test_rollback_put()
H A Dctx_rewrite.c272 const char *mname = btf__name_by_offset(btf, m->name_off); in find_field_offset_aux()
/linux/tools/bpf/resolve_btfids/
H A Dmain.c873 str = btf__name_by_offset(btf, type->name_off); in sets_patch()
1341 const char *name = btf__name_by_offset(btf, param->name_off); in arena_tag_ptr()
1446 name = btf__name_by_offset(btf, t->name_off); in process_kfunc_with_arena_attrs()
1527 tag_name = btf__name_by_offset(btf, t->name_off); in cmp_type_names()
1560 param_name = btf__name_by_offset(btf, params[i].name_off); in sort_btf_by_name()
1669 name = btf__name_by_offset(btf, btf_params(proto)[i].name_off); in patch_btfids()
1778 name = btf__name_by_offset(obj->btf, t->name_off); in main()
/linux/tools/perf/util/
H A Dbpf-event.c156 short_name = btf__name_by_offset(btf, t->name_off); in synthesize_bpf_prog_name()
237 const char *name = btf__name_by_offset(btf, t_var->name_off); in bpf_metadata_read_map_data()
323 const char *name = btf__name_by_offset(map->btf, in bpf_metadata_fill_event()
H A Dlibbfd.c613 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/
H A Dveristat.c1369 ctx_name = btf__name_by_offset(btf, t->name_off); in fixup_obj()
1922 const char *cur_name = btf__name_by_offset(btf, e->name_off); in enum_value_from_name()
1934 const char *cur_name = btf__name_by_offset(btf, e->name_off); in enum_value_from_name()
2050 const char *name = btf__name_by_offset(btf, member->name_off); in adjust_var_secinfo_member()
2148 btf__name_by_offset(btf, base_type->name_off)); in set_global_var()
2162 btf__name_by_offset(btf, base_type->name_off), value, in set_global_var()
2206 sec_name = btf__name_by_offset(btf, t->name_off); in set_global_vars()
2219 var_name = btf__name_by_offset(btf, var_type->name_off); in set_global_vars()
H A Dtest_loader.c1285 name = btf__name_by_offset(prog_btf, t->name_off); in fixup_btf_from_path()
1295 cname = btf__name_by_offset(custom_btf, custom_t->name_off); in fixup_btf_from_path()
1332 pname = btf__name_by_offset(custom_btf, custom_params[j].name_off); in run_subtest()

12