Home
last modified time | relevance | path

Searched refs:btf_vlen (Results 1 – 23 of 23) sorted by relevance

/linux-6.6.21/tools/testing/selftests/bpf/prog_tests/
Dbtf_write.c111 ASSERT_EQ(btf_vlen(t), 2, "struct_vlen"); in gen_btf()
143 ASSERT_EQ(btf_vlen(t), 1, "union_vlen"); in gen_btf()
166 ASSERT_EQ(btf_vlen(t), 2, "enum_vlen"); in gen_btf()
203 ASSERT_EQ(btf_vlen(t), 0, "enum_fwd_kind"); in gen_btf()
225 ASSERT_EQ(btf_vlen(t), BTF_FUNC_GLOBAL, "func_vlen"); in gen_btf()
238 ASSERT_EQ(btf_vlen(t), 2, "func_proto_vlen"); in gen_btf()
272 ASSERT_EQ(btf_vlen(t), 1, "datasec_vlen"); in gen_btf()
322 ASSERT_EQ(btf_vlen(t), 2, "enum64_vlen"); in gen_btf()
344 ASSERT_EQ(btf_vlen(t), 1, "enum64_vlen"); in gen_btf()
Dlibbpf_str.c38 n = btf_vlen(t); in test_libbpf_bpf_attach_type_str()
83 n = btf_vlen(t); in test_libbpf_bpf_link_type_str()
128 n = btf_vlen(t); in test_libbpf_bpf_map_type_str()
178 n = btf_vlen(t); in test_libbpf_bpf_prog_type_str()
Dlibbpf_probes.c26 for (e = btf_enum(t), i = 0, n = btf_vlen(t); i < n; e++, i++) { in test_libbpf_probe_prog_types()
64 for (e = btf_enum(t), i = 0, n = btf_vlen(t); i < n; e++, i++) { in test_libbpf_probe_map_types()
Dbtf_split.c63 ASSERT_EQ(btf_vlen(t), 3, "split_struct_vlen"); in test_btf_split()
Dcore_reloc.c452 if (btf_is_struct(t) && btf_vlen(t) && in setup_type_id_case_local()
456 } else if (btf_is_union(t) && btf_vlen(t) && in setup_type_id_case_local()
460 } else if (btf_is_enum(t) && btf_vlen(t) && in setup_type_id_case_local()
Dctx_rewrite.c267 mnum = btf_vlen(type); in find_field_offset_aux()
/linux-6.6.21/tools/lib/bpf/
Drelo_core.c83 return acc->idx == btf_vlen(t) - 1; in is_flex_arr()
195 __u16 local_vlen = btf_vlen(local_type); in __bpf_core_types_are_compat()
196 __u16 targ_vlen = btf_vlen(targ_type); in __bpf_core_types_are_compat()
316 if (!btf_is_any_enum(t) || spec->raw_len > 1 || access_idx >= btf_vlen(t)) in bpf_core_parse_spec()
346 if (access_idx >= btf_vlen(t)) in bpf_core_parse_spec()
505 n = btf_vlen(targ_type); in bpf_core_match_member()
597 for (i = 0; i < btf_vlen(targ_type); i++) { in bpf_core_spec_match()
1443 __u16 local_vlen = btf_vlen(local_t); in bpf_core_enums_match()
1444 __u16 targ_vlen = btf_vlen(targ_t); in bpf_core_enums_match()
1484 __u16 local_vlen = btf_vlen(local_t); in bpf_core_composites_match()
[all …]
Dbtf_dump.c319 vlen = btf_vlen(t); in btf_dump_mark_referenced()
528 vlen = btf_vlen(t); in btf_dump_order_type()
594 vlen = btf_vlen(t); in btf_dump_order_type()
797 __u16 vlen = btf_vlen(t); in btf_dump_emit_type()
819 __u16 n = btf_vlen(t); in btf_dump_emit_type()
841 vlen = btf_vlen(t); in btf_is_struct_packed()
972 __u16 vlen = btf_vlen(t); in btf_dump_emit_struct_def()
1121 __u16 vlen = btf_vlen(t); in btf_dump_emit_enum_def()
1538 __u16 vlen = btf_vlen(t); in btf_dump_emit_type_chain()
1670 if (btf_is_fwd(t) || (btf_is_enum(t) && btf_vlen(t) == 0)) { in btf_dump_resolve_name()
[all …]
Dbtf.c291 __u16 vlen = btf_vlen(t); in btf_type_size()
344 __u16 vlen = btf_vlen(t); in btf_bswap_type_rest()
683 __u16 vlen = btf_vlen(t); in btf__align_of()
1548 t->info = btf_type_info(btf_kind(t), btf_vlen(t) + 1, btf_kflag(t)); in btf_type_inc_vlen()
2057 t->info = btf_type_info(btf_kind(t), btf_vlen(t) + 1, is_bitfield || btf_kflag(t)); in btf__add_field()
2167 t->info = btf_type_info(btf_kind(t), btf_vlen(t), true); in btf__add_enum_value()
3437 vlen = btf_vlen(t1); in btf_equal_enum_members()
3455 vlen = btf_vlen(t1); in btf_equal_enum64_members()
3483 return btf_is_any_enum(t) && btf_vlen(t) == 0; in btf_is_enum_fwd()
3508 __u32 vlen = btf_vlen(t); in btf_hash_struct()
[all …]
Dlinker.c1426 if (btf_vlen(t1) != btf_vlen(t2)) { in glob_sym_btf_matches()
1428 sym_name, btf_kind_str(t1), btf_vlen(t1), btf_vlen(t2)); in glob_sym_btf_matches()
1432 n = btf_vlen(t1); in glob_sym_btf_matches()
1457 if (btf_vlen(t1) != btf_vlen(t2)) { in glob_sym_btf_matches()
1459 sym_name, btf_kind_str(t1), btf_vlen(t1), btf_vlen(t2)); in glob_sym_btf_matches()
1463 n = btf_vlen(t1); in glob_sym_btf_matches()
1692 for (j = 0, m = btf_vlen(t); j < m; j++, vi++) { in find_glob_sym_btf()
1778 for (i = 0, n = btf_vlen(dst_t); i < n; i++, src_p++, dst_p++) { in complete_extern_btf_info()
2195 for (j = 0, m = btf_vlen(t); j < m; j++, vi++) { in linker_fixup_btf()
2353 n = btf_vlen(t); in linker_append_btf()
Dlibbpf.c897 for (i = 0, m = btf_members(t); i < btf_vlen(t); i++, m++) { in find_member_by_offset()
912 for (i = 0, m = btf_members(t); i < btf_vlen(t); i++, m++) { in find_member_by_name()
964 for (i = 0; i < btf_vlen(kern_vtype); i++, kern_data_member++) { in find_struct_ops_kern_types()
968 if (i == btf_vlen(kern_vtype)) { in find_struct_ops_kern_types()
1026 for (i = 0; i < btf_vlen(type); i++, member++) { in bpf_map__init_kern_struct_ops()
1166 for (i = 0; i < btf_vlen(datasec); i++, vsi++) { in init_struct_ops_maps()
1209 st_ops->progs = calloc(btf_vlen(type), sizeof(*st_ops->progs)); in init_struct_ops_maps()
1210 st_ops->kern_func_off = malloc(btf_vlen(type) * in init_struct_ops_maps()
1622 for (i = 0, n = btf_vlen(t); i < n; i++, vsi++) { in map_is_mmapable()
2207 vlen = btf_vlen(def_t); in parse_btf_map_def()
[all …]
Dbtf.h325 static inline __u16 btf_vlen(const struct btf_type *t) in btf_vlen() function
Dlibbpf_internal.h225 return (enum btf_func_linkage)(int)btf_vlen(t); in btf_func_linkage()
/linux-6.6.21/tools/bpf/bpftool/
Dgen.c132 int i, err, off = 0, pad_cnt = 0, vlen = btf_vlen(sec); in codegen_datasec_def()
328 vlen = btf_vlen(sec); in codegen_subskel_datasecs()
500 vlen = btf_vlen(sec); in codegen_asserts()
1400 len = btf_vlen(map_type); in do_subskeleton()
1517 len = btf_vlen(map_type); in do_subskeleton()
1786 for (i = 0; i < btf_vlen(btf_type); i++) { in btfgen_mark_type()
1889 __u16 vlen = btf_vlen(btf_type); in btfgen_mark_type_match()
1926 __u16 vlen = btf_vlen(btf_type); in btfgen_mark_type_match()
2188 vlen = btf_vlen(cloned_type); in btfgen_get_btf()
Dbtf_dumper.c172 for (i = 0; i < btf_vlen(t); i++) { in btf_dumper_enum()
198 for (i = 0; i < btf_vlen(t); i++) { in btf_dumper_enum64()
Dbtf.c78 switch (btf_vlen(t)) { in btf_func_linkage_str()
248 __u16 vlen = btf_vlen(t); in dump_btf_type()
Dprog.c332 vlen = btf_vlen(t_datasec); in show_prog_metadata()
/linux-6.6.21/tools/testing/selftests/bpf/
Dbtf_helpers.c69 switch (btf_vlen(t)) { in btf_func_linkage_str()
98 vlen = btf_vlen(t); in fprintf_btf_type_raw()
Dtest_progs.c960 for (j = 0, vlen = btf_vlen(t); j < vlen; j++, e++) { in get_bpf_max_tramp_links_from()
Dveristat.c918 if (!btf_is_func_proto(t) || btf_vlen(t) != 1) in fixup_obj()
/linux-6.6.21/tools/perf/tests/
Dsigtrap.c80 for (i = 0, m = btf_members(t); i < btf_vlen(t); i++, m++) { in attr_has_sigtrap()
/linux-6.6.21/tools/perf/util/
Dbpf_off_cpu.c120 if (t3 && btf_is_func_proto(t3) && btf_vlen(t3) == 5) { in check_sched_switch_args()
/linux-6.6.21/include/linux/
Dbtf.h389 static inline u16 btf_vlen(const struct btf_type *t) in btf_vlen() function