| /Linux-v6.1/tools/bpf/bpftool/ |
| D | btf_dumper.c | 84 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 …]
|
| D | gen.c | 130 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() 321 sec_name = btf__name_by_offset(btf, sec->name_off); in codegen_subskel_datasecs() 339 var_name = btf__name_by_offset(btf, var->name_off); in codegen_subskel_datasecs() 505 const char *var_name = btf__name_by_offset(btf, var->name_off); in codegen_asserts() 1519 var_name = btf__name_by_offset(btf, var_type->name_off); in do_subskeleton() 2021 local_name = btf__name_by_offset(local_btf, local_type->name_off); in btfgen_find_cands() 2090 const char *sec_name = btf__name_by_offset(btf, sec->sec_name_off); in btfgen_record_obj()
|
| D | struct_ops.c | 52 st_ops_name = btf__name_by_offset(kern_btf, t->name_off); in get_kern_struct_ops_name() 371 struct_ops_name = btf__name_by_offset(kern_btf, in __do_dump()
|
| D | cgroup.c | 127 btf__name_by_offset(btf_vmlinux, t->name_off); in show_bpf_prog()
|
| D | prog.c | 346 name = btf__name_by_offset(btf, t_var->name_off); in show_prog_metadata() 375 name = btf__name_by_offset(btf, t_var->name_off); in show_prog_metadata() 2146 name = strdup(btf__name_by_offset(btf, t->name_off)); in profile_target_name()
|
| D | common.c | 365 prog_name = btf__name_by_offset(prog_btf, func_type->name_off); in get_prog_full_name()
|
| D | btf.c | 94 return btf__name_by_offset(btf, off) ? : "(invalid)"; in btf_str()
|
| /Linux-v6.1/tools/lib/bpf/ |
| D | relo_core.c | 27 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 …]
|
| D | libbpf.map | 57 btf__name_by_offset;
|
| D | libbpf.c | 929 if (!strcmp(btf__name_by_offset(btf, m->name_off), name)) in find_member_by_name() 1051 mname = btf__name_by_offset(btf, member->name_off); in bpf_map__init_kern_struct_ops() 1183 var_name = btf__name_by_offset(obj->btf, type->name_off); in bpf_object__init_struct_ops_maps() 1193 tname = btf__name_by_offset(obj->btf, type->name_off); in bpf_object__init_struct_ops_maps() 2074 const char *name = btf__name_by_offset(btf, m->name_off); in get_map_field_int() 2147 const char *name = btf__name_by_offset(btf, m->name_off); in parse_btf_map_def() 2468 map_name = btf__name_by_offset(obj->btf, var->name_off); in bpf_object__init_user_btf_map() 2577 name = btf__name_by_offset(obj->btf, t->name_off); in bpf_object__init_user_btf_maps() 2679 name = (char *)btf__name_by_offset(btf, t->name_off); in bpf_object__sanitize_btf() 2819 sec_name = btf__name_by_offset(obj->btf, sec->sec_name_off); in bpf_object__init_btf() [all …]
|
| D | btf.h | 142 LIBBPF_API const char *btf__name_by_offset(const struct btf *btf, __u32 offset);
|
| D | linker.c | 2442 sec_name = btf__name_by_offset(obj->btf, ext_sec->sec_name_off); in linker_append_btf_ext() 2471 sec_name = btf__name_by_offset(obj->btf, ext_sec->sec_name_off); in linker_append_btf_ext() 2513 sec_name = btf__name_by_offset(obj->btf, ext_sec->sec_name_off); in linker_append_btf_ext()
|
| D | btf.c | 509 name = btf__name_by_offset(btf, t->name_off); in determine_ptr_size() 730 const char *name = btf__name_by_offset(btf, t->name_off); in btf__find_by_name() 753 name = btf__name_by_offset(btf, t->name_off); in btf_find_by_name_kind() 1325 const char *btf__name_by_offset(const struct btf *btf, __u32 offset) in btf__name_by_offset() function
|
| D | btf_dump.c | 132 return btf__name_by_offset(d->btf, name_off); in btf_name_of()
|
| /Linux-v6.1/tools/testing/selftests/bpf/prog_tests/ |
| D | core_reloc.c | 453 (name = btf__name_by_offset(local_btf, btf_members(t)[0].name_off)) && in setup_type_id_case_local() 457 (name = btf__name_by_offset(local_btf, btf_members(t)[0].name_off)) && in setup_type_id_case_local() 461 (name = btf__name_by_offset(local_btf, btf_enum(t)[0].name_off)) && in setup_type_id_case_local() 466 btf_is_int(t) && (name = btf__name_by_offset(local_btf, t->name_off)) && in setup_type_id_case_local() 475 btf_is_int(t) && (name = btf__name_by_offset(local_btf, t->name_off)) && in setup_type_id_case_local()
|
| D | resolve_btfids.c | 85 str = btf__name_by_offset(btf, type->name_off); in BTF_ID()
|
| D | btf.c | 4814 fname = btf__name_by_offset(btf, t->name_off); in do_test_file()
|
| /Linux-v6.1/tools/perf/tests/ |
| D | sigtrap.c | 81 name = btf__name_by_offset(btf, m->name_off); in attr_has_sigtrap()
|
| /Linux-v6.1/tools/bpf/resolve_btfids/ |
| D | main.c | 569 str = btf__name_by_offset(btf, type->name_off); in symbols_resolve()
|
| /Linux-v6.1/tools/perf/util/ |
| D | bpf-event.c | 204 short_name = btf__name_by_offset(btf, t->name_off); in synthesize_bpf_prog_name()
|
| D | bpf_counter.c | 95 name = strdup(btf__name_by_offset(btf, t->name_off)); in bpf_target_prog_name()
|
| D | annotate.c | 1827 srcline = btf__name_by_offset(btf, linfo->line_off); in symbol__disassemble_bpf()
|