Home
last modified time | relevance | path

Searched refs:vlen (Results 1 – 9 of 9) sorted by relevance

/tools/lib/bpf/
Dbtf_dump.c253 __u16 vlen; in btf_dump_mark_referenced() local
257 vlen = btf_vlen(t); in btf_dump_mark_referenced()
286 for (j = 0; j < vlen; j++, m++) in btf_dump_mark_referenced()
293 for (j = 0; j < vlen; j++, p++) in btf_dump_mark_referenced()
300 for (j = 0; j < vlen; j++, v++) in btf_dump_mark_referenced()
418 __u16 vlen; in btf_dump_order_type() local
461 vlen = btf_vlen(t); in btf_dump_order_type()
462 for (i = 0; i < vlen; i++, m++) { in btf_dump_order_type()
525 vlen = btf_vlen(t); in btf_dump_order_type()
526 for (i = 0; i < vlen; i++, p++) { in btf_dump_order_type()
[all …]
Dbtf.c144 __u16 vlen = btf_vlen(t); in btf_type_size() local
158 return base_size + vlen * sizeof(struct btf_enum); in btf_type_size()
163 return base_size + vlen * sizeof(struct btf_member); in btf_type_size()
165 return base_size + vlen * sizeof(struct btf_param); in btf_type_size()
169 return base_size + vlen * sizeof(struct btf_var_secinfo); in btf_type_size()
1462 __u16 vlen = btf_vlen(t); in btf_for_each_str_off() local
1464 for (j = 0; j < vlen; j++) { in btf_for_each_str_off()
1474 __u16 vlen = btf_vlen(t); in btf_for_each_str_off() local
1476 for (j = 0; j < vlen; j++) { in btf_for_each_str_off()
1486 __u16 vlen = btf_vlen(t); in btf_for_each_str_off() local
[all …]
Dlibbpf_internal.h14 #define BTF_INFO_ENC(kind, kind_flag, vlen) \ argument
15 ((!!(kind_flag) << 31) | ((kind) << 24) | ((vlen) & BTF_MAX_VLEN))
Dlibbpf.c1083 int vlen, i; in bpf_object__init_user_btf_map() local
1089 vlen = btf_vlen(var); in bpf_object__init_user_btf_map()
1137 vlen = btf_vlen(def); in bpf_object__init_user_btf_map()
1139 for (i = 0; i < vlen; i++, m++) { in bpf_object__init_user_btf_map()
1273 int nr_types, i, vlen, err; in bpf_object__init_user_btf_maps() local
1308 vlen = btf_vlen(sec); in bpf_object__init_user_btf_maps()
1309 for (i = 0; i < vlen; i++) { in bpf_object__init_user_btf_maps()
1368 int i, j, vlen; in bpf_object__sanitize_btf() local
1400 vlen = btf_vlen(t); in bpf_object__sanitize_btf()
1401 t->info = BTF_INFO_ENC(BTF_KIND_STRUCT, 0, vlen); in bpf_object__sanitize_btf()
[all …]
/tools/bpf/bpftool/
Dbtf.c148 __u16 vlen = BTF_INFO_VLEN(t->info); in dump_btf_type() local
153 jsonw_uint_field(w, "vlen", vlen); in dump_btf_type()
157 printf(" size=%u vlen=%u", t->size, vlen); in dump_btf_type()
159 for (i = 0; i < vlen; i++, m++) { in dump_btf_type()
194 __u16 vlen = BTF_INFO_VLEN(t->info); in dump_btf_type() local
199 jsonw_uint_field(w, "vlen", vlen); in dump_btf_type()
203 printf(" size=%u vlen=%u", t->size, vlen); in dump_btf_type()
205 for (i = 0; i < vlen; i++, v++) { in dump_btf_type()
239 __u16 vlen = BTF_INFO_VLEN(t->info); in dump_btf_type() local
244 jsonw_uint_field(w, "vlen", vlen); in dump_btf_type()
[all …]
Dbtf_dumper.c272 int i, vlen; in btf_dumper_struct() local
279 vlen = BTF_INFO_VLEN(t->info); in btf_dumper_struct()
283 for (i = 0; i < vlen; i++) { in btf_dumper_struct()
331 int ret = 0, i, vlen; in btf_dumper_datasec() local
337 vlen = BTF_INFO_VLEN(t->info); in btf_dumper_datasec()
343 for (i = 0; i < vlen; i++) { in btf_dumper_datasec()
514 int i, vlen; in btf_dump_func() local
521 vlen = BTF_INFO_VLEN(func_proto->info); in btf_dump_func()
522 for (i = 0; i < vlen; i++) { in btf_dump_func()
/tools/testing/selftests/bpf/
Dtest_btf.h7 #define BTF_INFO_ENC(kind, kind_flag, vlen) \ argument
8 ((!!(kind_flag) << 31) | ((kind) << 24) | ((vlen) & BTF_MAX_VLEN))
Dtest_btf.c6703 __u16 vlen = BTF_INFO_VLEN(t->info); in btf_type_size() local
6718 return base_size + vlen * sizeof(struct btf_enum); in btf_type_size()
6723 return base_size + vlen * sizeof(struct btf_member); in btf_type_size()
6725 return base_size + vlen * sizeof(struct btf_param); in btf_type_size()
6729 return base_size + vlen * sizeof(struct btf_var_secinfo); in btf_type_size()
/tools/bpf/bpftool/Documentation/
Dbpftool-btf.rst92 [2] STRUCT 'dummy_tracepoint_args' size=16 vlen=2
145 [2] UNION 'my_union' size=48 vlen=2
149 [4] STRUCT 'my_struct' size=48 vlen=6
165 [14] ENUM 'my_enum' size=4 vlen=2
171 [18] FUNC_PROTO '(anon)' ret_type_id=3 vlen=2
178 [23] DATASEC 'data_sec' size=0 vlen=3