Home
last modified time | relevance | path

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

/tools/bpf/bpftool/
Dbtf_dumper.c77 prog_name = btf__name_by_offset(prog_btf, func_type->name_off); in dump_prog_id_as_func_ptr()
167 btf__name_by_offset(d->btf, in btf_dumper_enum()
197 strcmp("char", btf__name_by_offset(btf, elem_type->name_off))) in is_str_array()
459 jsonw_name(d->jw, btf__name_by_offset(d->btf, m[i].name_off)); in btf_dumper_struct()
486 jsonw_name(d->jw, btf__name_by_offset(d->btf, t->name_off)); in btf_dumper_var()
508 jsonw_name(d->jw, btf__name_by_offset(d->btf, t->name_off)); in btf_dumper_datasec()
602 BTF_PRINT_ARG("%s ", btf__name_by_offset(btf, t->name_off)); in __btf_dumper_type_only()
606 btf__name_by_offset(btf, t->name_off)); in __btf_dumper_type_only()
610 btf__name_by_offset(btf, t->name_off)); in __btf_dumper_type_only()
614 btf__name_by_offset(btf, t->name_off)); in __btf_dumper_type_only()
[all …]
Dstruct_ops.c52 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()
Dgen.c101 const char *sec_name = btf__name_by_offset(btf, sec->name_off); in codegen_datasec_def()
126 const char *var_name = btf__name_by_offset(btf, var->name_off); in codegen_datasec_def()
Dprog.c290 name = btf__name_by_offset(btf, t_var->name_off); in show_prog_metadata()
319 name = btf__name_by_offset(btf, t_var->name_off); in show_prog_metadata()
2043 name = strdup(btf__name_by_offset(btf, t->name_off)); in profile_target_name()
Dbtf.c100 return btf__name_by_offset(btf, off) ? : "(invalid)"; in btf_str()
/tools/lib/bpf/
Drelo_core.c211 acc->name = btf__name_by_offset(btf, btf_enum(t)[access_idx].name_off); in bpf_core_parse_spec()
243 name = btf__name_by_offset(btf, m->name_off); in bpf_core_parse_spec()
328 local_name = btf__name_by_offset(local_btf, in bpf_core_fields_are_compat()
330 targ_name = btf__name_by_offset(targ_btf, targ_type->name_off); in bpf_core_fields_are_compat()
393 local_name = btf__name_by_offset(local_btf, local_member->name_off); in bpf_core_match_member()
410 targ_name = btf__name_by_offset(targ_btf, m->name_off); in bpf_core_match_member()
483 targ_name = btf__name_by_offset(targ_spec->btf, e->name_off); in bpf_core_spec_match()
1058 s = btf__name_by_offset(spec->btf, t->name_off); in bpf_core_dump_spec()
1068 s = btf__name_by_offset(spec->btf, e->name_off); in bpf_core_dump_spec()
1165 local_name = btf__name_by_offset(local_btf, local_type->name_off); in bpf_core_apply_relo_insn()
[all …]
Dlibbpf.map114 btf__name_by_offset;
Dlibbpf.c779 if (!strcmp(btf__name_by_offset(btf, m->name_off), name)) in find_member_by_name()
901 mname = btf__name_by_offset(btf, member->name_off); in bpf_map__init_kern_struct_ops()
1033 var_name = btf__name_by_offset(obj->btf, type->name_off); in bpf_object__init_struct_ops_maps()
1043 tname = btf__name_by_offset(obj->btf, type->name_off); in bpf_object__init_struct_ops_maps()
2010 const char *name = btf__name_by_offset(btf, m->name_off); in get_map_field_int()
2065 const char *name = btf__name_by_offset(btf, m->name_off); in parse_btf_map_def()
2323 map_name = btf__name_by_offset(obj->btf, var->name_off); in bpf_object__init_user_btf_map()
2428 name = btf__name_by_offset(obj->btf, t->name_off); in bpf_object__init_user_btf_maps()
2522 name = (char *)btf__name_by_offset(btf, t->name_off); in bpf_object__sanitize_btf()
3151 tname = btf__name_by_offset(btf, t->name_off); in find_extern_btf_id()
[all …]
Dbtf.h76 LIBBPF_API const char *btf__name_by_offset(const struct btf *btf, __u32 offset);
Dbtf.c471 name = btf__name_by_offset(btf, t->name_off); in determine_ptr_size()
702 const char *name = btf__name_by_offset(btf, t->name_off); in btf__find_by_name()
725 name = btf__name_by_offset(btf, t->name_off); in btf__find_by_name_kind()
1118 const char *name = btf__name_by_offset(btf, t->name_off); in btf_fixup_datasec()
1155 name = btf__name_by_offset(btf, t_var->name_off); in btf_fixup_datasec()
1345 const char *btf__name_by_offset(const struct btf *btf, __u32 offset) in btf__name_by_offset() function
2717 info_sec_name = btf__name_by_offset(btf, sinfo->sec_name_off); in btf_ext_reloc_info()
Dlinker.c2446 sec_name = btf__name_by_offset(obj->btf, ext_sec->sec_name_off); in linker_append_btf_ext()
2475 sec_name = btf__name_by_offset(obj->btf, ext_sec->sec_name_off); in linker_append_btf_ext()
2517 sec_name = btf__name_by_offset(obj->btf, ext_sec->sec_name_off); in linker_append_btf_ext()
Dbtf_dump.c133 return btf__name_by_offset(d->btf, name_off); in btf_name_of()
/tools/testing/selftests/bpf/prog_tests/
Dcore_reloc.c393 (name = btf__name_by_offset(local_btf, btf_members(t)[0].name_off)) && in setup_type_id_case_local()
397 (name = btf__name_by_offset(local_btf, btf_members(t)[0].name_off)) && in setup_type_id_case_local()
401 (name = btf__name_by_offset(local_btf, btf_enum(t)[0].name_off)) && in setup_type_id_case_local()
406 btf_is_int(t) && (name = btf__name_by_offset(local_btf, t->name_off)) && in setup_type_id_case_local()
415 btf_is_int(t) && (name = btf__name_by_offset(local_btf, t->name_off)) && in setup_type_id_case_local()
Dresolve_btfids.c85 str = btf__name_by_offset(btf, type->name_off); in BTF_ID_LIST_GLOBAL()
Dbtf.c4399 fname = btf__name_by_offset(btf, t->name_off); in do_test_file()
/tools/perf/util/
Dbpf-event.c152 short_name = btf__name_by_offset(btf, t->name_off); in synthesize_bpf_prog_name()
Dbpf_counter.c95 name = strdup(btf__name_by_offset(btf, t->name_off)); in bpf_target_prog_name()
Dannotate.c1804 srcline = btf__name_by_offset(btf, linfo->line_off); in symbol__disassemble_bpf()
/tools/bpf/resolve_btfids/
Dmain.c527 str = btf__name_by_offset(btf, type->name_off); in symbols_resolve()