Home
last modified time | relevance | path

Searched refs:var_name (Results 1 – 3 of 3) sorted by relevance

/tools/bpf/bpftool/
Dgen.c145 const char *var_name = btf__name_by_offset(btf, var->name_off); in codegen_datasec_def() local
167 var_name, align); in codegen_datasec_def()
197 strncat(var_ident, var_name, sizeof(var_ident) - 1); in codegen_datasec_def()
304 const char *sec_name, *var_name; in codegen_subskel_datasecs() local
338 var_name = btf__name_by_offset(btf, var->name_off); in codegen_subskel_datasecs()
368 printf(" *%s;\n", var_name); in codegen_subskel_datasecs()
504 const char *var_name = btf__name_by_offset(btf, var->name_off); in codegen_asserts() local
516 strncat(var_ident, var_name, sizeof(var_ident) - 1); in codegen_asserts()
1285 const char *file, *var_name; in do_subskeleton() local
1520 var_name = btf__name_by_offset(btf, var_type->name_off); in do_subskeleton()
[all …]
/tools/lib/bpf/
Dlinker.c2197 const char *var_name; in linker_fixup_btf() local
2205 var_name = btf__str_by_offset(obj->btf, vt->name_off); in linker_fixup_btf()
2212 sym = find_sym_by_name(obj, sec->sec_idx, STT_OBJECT, var_name); in linker_fixup_btf()
2214 pr_warn("failed to find symbol for variable '%s' in section '%s'\n", var_name, sec_name); in linker_fixup_btf()
Dlibbpf.c1147 const char *tname, *var_name; in init_struct_ops_maps() local
1169 var_name = btf__name_by_offset(obj->btf, type->name_off); in init_struct_ops_maps()
1195 map->name = strdup(var_name); in init_struct_ops_maps()
1218 var_name, sec_name); in init_struct_ops_maps()
1230 tname, type_id, var_name, vsi->offset); in init_struct_ops_maps()
2957 const char *var_name; in btf_fixup_datasec() local
2970 var_name = btf__name_by_offset(btf, t_var->name_off); in btf_fixup_datasec()
2971 if (!var_name) { in btf_fixup_datasec()
2977 sym = find_elf_var_sym(obj, var_name); in btf_fixup_datasec()
2980 sec_name, var_name); in btf_fixup_datasec()
[all …]