/tools/testing/selftests/bpf/prog_tests/ |
D | btf_write.c | 114 ASSERT_EQ(btf_vlen(t), 2, "struct_vlen"); in test_btf_write() 146 ASSERT_EQ(btf_vlen(t), 1, "union_vlen"); in test_btf_write() 169 ASSERT_EQ(btf_vlen(t), 2, "enum_vlen"); in test_btf_write() 206 ASSERT_EQ(btf_vlen(t), 0, "enum_fwd_kind"); in test_btf_write() 228 ASSERT_EQ(btf_vlen(t), BTF_FUNC_GLOBAL, "func_vlen"); in test_btf_write() 241 ASSERT_EQ(btf_vlen(t), 2, "func_proto_vlen"); in test_btf_write() 275 ASSERT_EQ(btf_vlen(t), 1, "datasec_vlen"); in test_btf_write()
|
D | btf_split.c | 64 ASSERT_EQ(btf_vlen(t), 3, "split_struct_vlen"); in test_btf_split()
|
D | core_reloc.c | 392 if (btf_is_struct(t) && btf_vlen(t) && in setup_type_id_case_local() 396 } else if (btf_is_union(t) && btf_vlen(t) && in setup_type_id_case_local() 400 } else if (btf_is_enum(t) && btf_vlen(t) && in setup_type_id_case_local()
|
/tools/testing/selftests/bpf/ |
D | btf_helpers.c | 66 switch (btf_vlen(t)) { in btf_func_linkage_str() 95 vlen = btf_vlen(t); in fprintf_btf_type_raw()
|
/tools/lib/bpf/ |
D | btf_dump.c | 314 vlen = btf_vlen(t); in btf_dump_mark_referenced() 520 vlen = btf_vlen(t); in btf_dump_order_type() 584 vlen = btf_vlen(t); in btf_dump_order_type() 784 __u16 vlen = btf_vlen(t); in btf_dump_emit_type() 806 __u16 n = btf_vlen(t); in btf_dump_emit_type() 828 vlen = btf_vlen(t); in btf_is_struct_packed() 959 __u16 vlen = btf_vlen(t); in btf_dump_emit_struct_def() 1053 __u16 vlen = btf_vlen(t); in btf_dump_emit_enum_def() 1437 __u16 vlen = btf_vlen(t); in btf_dump_emit_type_chain() 1570 if (btf_is_fwd(t) || (btf_is_enum(t) && btf_vlen(t) == 0)) { in btf_dump_resolve_name() [all …]
|
D | btf.c | 286 __u16 vlen = btf_vlen(t); in btf_type_size() 333 __u16 vlen = btf_vlen(t); in btf_bswap_type_rest() 642 __u16 vlen = btf_vlen(t); in btf__align_of() 1117 __u32 size = 0, off = 0, i, vars = btf_vlen(t); in btf_fixup_datasec() 1471 if (!btf_is_struct(container_type) || btf_vlen(container_type) < 2) { in btf__get_map_kv_tids() 1642 t->info = btf_type_info(btf_kind(t), btf_vlen(t) + 1, btf_kflag(t)); in btf_type_inc_vlen() 2016 t->info = btf_type_info(btf_kind(t), btf_vlen(t) + 1, is_bitfield || btf_kflag(t)); in btf__add_field() 3325 vlen = btf_vlen(t1); in btf_equal_enum() 3339 return btf_is_enum(t) && btf_vlen(t) == 0; in btf_is_enum_fwd() 3360 __u32 vlen = btf_vlen(t); in btf_hash_struct() [all …]
|
D | linker.c | 1418 if (btf_vlen(t1) != btf_vlen(t2)) { in glob_sym_btf_matches() 1420 sym_name, btf_kind_str(t1), btf_vlen(t1), btf_vlen(t2)); in glob_sym_btf_matches() 1424 n = btf_vlen(t1); in glob_sym_btf_matches() 1449 if (btf_vlen(t1) != btf_vlen(t2)) { in glob_sym_btf_matches() 1451 sym_name, btf_kind_str(t1), btf_vlen(t1), btf_vlen(t2)); in glob_sym_btf_matches() 1455 n = btf_vlen(t1); in glob_sym_btf_matches() 1684 for (j = 0, m = btf_vlen(t); j < m; j++, vi++) { in find_glob_sym_btf() 1770 for (i = 0, n = btf_vlen(dst_t); i < n; i++, src_p++, dst_p++) { in complete_extern_btf_info() 2194 for (j = 0, m = btf_vlen(t); j < m; j++, vi++) { in linker_fixup_btf() 2352 n = btf_vlen(t); in linker_append_btf()
|
D | relo_core.c | 55 return acc->idx == btf_vlen(t) - 1; in is_flex_arr() 207 if (!btf_is_enum(t) || spec->raw_len > 1 || access_idx >= btf_vlen(t)) in bpf_core_parse_spec() 235 if (access_idx >= btf_vlen(t)) in bpf_core_parse_spec() 395 n = btf_vlen(targ_type); in bpf_core_match_member() 482 for (i = 0, e = btf_enum(targ_type); i < btf_vlen(targ_type); i++, e++) { in bpf_core_spec_match()
|
D | libbpf.c | 763 for (i = 0, m = btf_members(t); i < btf_vlen(t); i++, m++) { in find_member_by_offset() 778 for (i = 0, m = btf_members(t); i < btf_vlen(t); i++, m++) { in find_member_by_name() 830 for (i = 0; i < btf_vlen(kern_vtype); i++, kern_data_member++) { in find_struct_ops_kern_types() 834 if (i == btf_vlen(kern_vtype)) { in find_struct_ops_kern_types() 892 for (i = 0; i < btf_vlen(type); i++, member++) { in bpf_map__init_kern_struct_ops() 1031 for (i = 0; i < btf_vlen(datasec); i++, vsi++) { in bpf_object__init_struct_ops_maps() 1073 st_ops->progs = calloc(btf_vlen(type), sizeof(*st_ops->progs)); in bpf_object__init_struct_ops_maps() 1074 st_ops->kern_func_off = malloc(btf_vlen(type) * in bpf_object__init_struct_ops_maps() 2062 vlen = btf_vlen(def_t); in parse_btf_map_def() 2441 vlen = btf_vlen(sec); in bpf_object__init_user_btf_maps() [all …]
|
D | libbpf_internal.h | 155 return (enum btf_func_linkage)(int)btf_vlen(t); in btf_func_linkage()
|
D | btf.h | 220 static inline __u16 btf_vlen(const struct btf_type *t) in btf_vlen() function
|
/tools/bpf/bpftool/ |
D | gen.c | 103 int i, err, off = 0, pad_cnt = 0, vlen = btf_vlen(sec); in codegen_datasec_def()
|
D | btf_dumper.c | 164 for (i = 0; i < btf_vlen(t); i++) { in btf_dumper_enum()
|
D | btf.c | 84 switch (btf_vlen(t)) { in btf_func_linkage_str()
|
D | prog.c | 274 vlen = btf_vlen(t_datasec); in show_prog_metadata()
|