Home
last modified time | relevance | path

Searched refs:vsi (Results 1 – 5 of 5) sorted by relevance

/tools/bpf/bpftool/
Dbtf_dumper.c496 struct btf_var_secinfo *vsi; in btf_dumper_datasec() local
505 vsi = (struct btf_var_secinfo *)(t + 1); in btf_dumper_datasec()
511 ret = btf_dumper_do_type(d, vsi[i].type, 0, data + vsi[i].offset); in btf_dumper_datasec()
Dprog.c250 struct btf_var_secinfo *vsi; in show_prog_metadata() local
275 vsi = btf_var_secinfos(t_datasec); in show_prog_metadata()
288 for (i = 0; i < vlen; i++, vsi++) { in show_prog_metadata()
289 t_var = btf__type_by_id(btf, vsi->type); in show_prog_metadata()
302 err = btf_dumper_type(&d, t_var->type, value + vsi->offset); in show_prog_metadata()
317 for (i = 0; i < vlen; i++, vsi++) { in show_prog_metadata()
318 t_var = btf__type_by_id(btf, vsi->type); in show_prog_metadata()
340 err = btf_dumper_type(&d, t_var->type, value + vsi->offset); in show_prog_metadata()
/tools/lib/bpf/
Dbtf_dump.c2107 const struct btf_var_secinfo *vsi; in btf_dump_datasec_data() local
2114 for (i = 0, vsi = btf_var_secinfos(t); i < btf_vlen(t); i++, vsi++) { in btf_dump_datasec_data()
2115 var = btf__type_by_id(d->btf, vsi->type); in btf_dump_datasec_data()
2116 err = btf_dump_dump_type_data(d, NULL, var, vsi->type, data + vsi->offset, 0, 0); in btf_dump_datasec_data()
Dbtf.c1120 struct btf_var_secinfo *vsi; in btf_fixup_datasec() local
1143 for (i = 0, vsi = btf_var_secinfos(t); i < vars; i++, vsi++) { in btf_fixup_datasec()
1144 t_var = btf__type_by_id(btf, vsi->type); in btf_fixup_datasec()
1168 vsi->offset = off; in btf_fixup_datasec()
1172 qsort(btf_var_secinfos(t), vars, sizeof(*vsi), compare_vsi_off); in btf_fixup_datasec()
Dlibbpf.c1009 const struct btf_var_secinfo *vsi; in bpf_object__init_struct_ops_maps() local
1030 vsi = btf_var_secinfos(datasec); in bpf_object__init_struct_ops_maps()
1031 for (i = 0; i < btf_vlen(datasec); i++, vsi++) { in bpf_object__init_struct_ops_maps()
1032 type = btf__type_by_id(obj->btf, vsi->type); in bpf_object__init_struct_ops_maps()
1035 type_id = btf__resolve_type(obj->btf, vsi->type); in bpf_object__init_struct_ops_maps()
1038 vsi->type, STRUCT_OPS_SEC); in bpf_object__init_struct_ops_maps()
1058 map->sec_offset = vsi->offset; in bpf_object__init_struct_ops_maps()
1079 if (vsi->offset + type->size > obj->efile.st_ops_data->d_size) { in bpf_object__init_struct_ops_maps()
1086 obj->efile.st_ops_data->d_buf + vsi->offset, in bpf_object__init_struct_ops_maps()
1093 tname, type_id, var_name, vsi->offset); in bpf_object__init_struct_ops_maps()