| /linux/tools/sched_ext/include/scx/ |
| H A D | compat.h | 45 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/lib/bpf/ |
| H A D | btf_relocate.c | 19 #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 D | libbpf.c | 1020 if (!strcmp(btf__name_by_offset(btf, m->name_off), name)) in find_member_by_name() 1179 tname = btf__name_by_offset(btf, type->name_off); in bpf_map__init_kern_struct_ops() 1215 mname = btf__name_by_offset(btf, member->name_off); in bpf_map__init_kern_struct_ops() 1413 var_name = btf__name_by_offset(obj->btf, type->name_off); in init_struct_ops_maps() 1423 tname = btf__name_by_offset(obj->btf, type->name_off); in init_struct_ops_maps() 2470 const char *name = btf__name_by_offset(btf, m->name_off); in get_map_field_int() 2500 const char *name = btf__name_by_offset(btf, m->name_off); in get_map_field_long() 2583 const char *name = btf__name_by_offset(btf, m->name_off); in parse_btf_map_def() 2904 map_name = btf__name_by_offset(obj->btf, var->name_off); in bpf_object__init_user_btf_map() 3041 name = btf__name_by_offset(obj->btf, t->name_off); in bpf_object__init_user_btf_maps() [all …]
|
| H A D | btf.h | 169 LIBBPF_API const char *btf__name_by_offset(const struct btf *btf, __u32 offset);
|
| /linux/tools/bpf/bpftool/ |
| H A D | btf.c | 111 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 D | struct_ops.c | 52 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()
|
| /linux/tools/testing/selftests/bpf/prog_tests/ |
| H A D | core_reloc.c | 455 (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 D | resolve_btfids.c | 85 str = btf__name_by_offset(btf, type->name_off); in BTF_ID()
|
| H A D | test_global_funcs.c | 108 name = btf__name_by_offset(btf, fn_t->name_off); in subtest_ctx_arg_rewrite()
|
| H A D | ctx_rewrite.c | 273 const char *mname = btf__name_by_offset(btf, m->name_off); in find_field_offset_aux()
|
| H A D | btf.c | 4969 fname = btf__name_by_offset(btf, t->name_off); in do_test_file()
|
| /linux/tools/perf/util/ |
| H A D | bpf-event.c | 149 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 D | libbfd.c | 601 srcline = btf__name_by_offset(btf, linfo->line_off); in symbol__disassemble_bpf_libbfd()
|
| H A D | bpf_counter.c | 153 name = strdup(btf__name_by_offset(btf, t->name_off)); in bpf_target_prog_name()
|
| /linux/tools/testing/selftests/bpf/ |
| H A D | veristat.c | 1299 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 resolve_rvalue() 1859 const char *cur_name = btf__name_by_offset(btf, e->name_off); in resolve_rvalue() 1975 const char *name = btf__name_by_offset(btf, member->name_off); in adjust_var_secinfo() 2073 btf__name_by_offset(btf, base_type->name_off)); in set_global_vars() 2087 btf__name_by_offset(btf, base_type->name_off), value, in set_global_vars() 2131 sec_name = btf__name_by_offset(btf, t->name_off); in process_obj() 2144 var_name = btf__name_by_offset(btf, var_type->name_off); in process_obj()
|
| /linux/tools/bpf/resolve_btfids/ |
| H A D | main.c | 596 str = btf__name_by_offset(btf, type->name_off); in symbols_resolve()
|
| /linux/tools/perf/ |
| H A D | builtin-trace.c | 974 const char *name = btf__name_by_offset(btf, be->name_off); in syscall_arg__strtoul_btf_enum() 1023 btf__name_by_offset(btf, be->name_off)); in btf_enum_scnprintf()
|