Home
last modified time | relevance | path

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

12

/linux-6.15/tools/testing/selftests/bpf/prog_tests/
H A 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()
H A 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()
185 n = btf_vlen(t); in test_libbpf_bpf_prog_type_str()
H A Dtest_global_funcs.c111 if (!ASSERT_EQ(btf_vlen(proto_t), 1, "arg_cnt")) in subtest_ctx_arg_rewrite()
121 if (!ASSERT_EQ(btf_vlen(proto_t), 3, "arg_cnt")) in subtest_ctx_arg_rewrite()
H A Dlibbpf_probes.c26 for (e = btf_enum(t), i = 0, n = btf_vlen(t); i < n; e++, i++) { in test_libbpf_probe_prog_types()
66 for (e = btf_enum(t), i = 0, n = btf_vlen(t); i < n; e++, i++) { in test_libbpf_probe_map_types()
H A Dbtf_split.c63 ASSERT_EQ(btf_vlen(t), 3, "split_struct_vlen"); in test_btf_split()
H A Dcore_reloc.c454 if (btf_is_struct(t) && btf_vlen(t) && in setup_type_id_case_local()
458 } else if (btf_is_union(t) && btf_vlen(t) && in setup_type_id_case_local()
462 } else if (btf_is_enum(t) && btf_vlen(t) && in setup_type_id_case_local()
H A Dctx_rewrite.c270 mnum = btf_vlen(type); in find_field_offset_aux()
/linux-6.15/tools/lib/bpf/
H A 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()
346 if (access_idx >= btf_vlen(t)) in bpf_core_parse_spec()
505 n = btf_vlen(targ_type); in bpf_core_match_member()
1459 __u16 local_vlen = btf_vlen(local_t); in bpf_core_enums_match()
1460 __u16 targ_vlen = btf_vlen(targ_t); in bpf_core_enums_match()
1500 __u16 local_vlen = btf_vlen(local_t); in bpf_core_composites_match()
1501 __u16 targ_vlen = btf_vlen(targ_t); in bpf_core_composites_match()
1676 __u16 local_vlen = btf_vlen(local_t); in __bpf_core_types_match()
[all …]
H A Dbtf_dump.c320 vlen = btf_vlen(t); in btf_dump_mark_referenced()
529 vlen = btf_vlen(t); in btf_dump_order_type()
595 vlen = btf_vlen(t); in btf_dump_order_type()
798 __u16 vlen = btf_vlen(t); in btf_dump_emit_type()
820 __u16 n = btf_vlen(t); in btf_dump_emit_type()
842 vlen = btf_vlen(t); in btf_is_struct_packed()
973 __u16 vlen = btf_vlen(t); in btf_dump_emit_struct_def()
1122 __u16 vlen = btf_vlen(t); in btf_dump_emit_enum_def()
1542 __u16 vlen = btf_vlen(t); in btf_dump_emit_type_chain()
2099 __u16 n = btf_vlen(t); in btf_dump_struct_data()
[all …]
H A Dbtf.c521 n = btf_vlen(t); in btf_validate_type()
533 n = btf_vlen(t); in btf_validate_type()
544 n = btf_vlen(t); in btf_validate_type()
568 n = btf_vlen(t); in btf_validate_type()
580 n = btf_vlen(t); in btf_validate_type()
3905 vlen = btf_vlen(t1); in btf_equal_enum_members()
3923 vlen = btf_vlen(t1); in btf_equal_enum64_members()
4003 vlen = btf_vlen(t1); in btf_shallow_equal_struct()
4101 vlen = btf_vlen(t1); in btf_equal_fnproto()
4128 vlen = btf_vlen(t1); in btf_compat_fnproto()
[all …]
H A Dlinker.c1611 if (btf_vlen(t1) != btf_vlen(t2)) { in glob_sym_btf_matches()
1613 sym_name, btf_kind_str(t1), btf_vlen(t1), btf_vlen(t2)); in glob_sym_btf_matches()
1617 n = btf_vlen(t1); in glob_sym_btf_matches()
1642 if (btf_vlen(t1) != btf_vlen(t2)) { in glob_sym_btf_matches()
1644 sym_name, btf_kind_str(t1), btf_vlen(t1), btf_vlen(t2)); in glob_sym_btf_matches()
1648 n = btf_vlen(t1); in glob_sym_btf_matches()
1877 for (j = 0, m = btf_vlen(t); j < m; j++, vi++) { in find_glob_sym_btf()
1963 for (i = 0, n = btf_vlen(dst_t); i < n; i++, src_p++, dst_p++) { in complete_extern_btf_info()
2380 for (j = 0, m = btf_vlen(t); j < m; j++, vi++) { in linker_fixup_btf()
2545 n = btf_vlen(t); in linker_append_btf()
H A Dbtf_iter.c139 it->vlen = btf_vlen(t); in btf_field_iter_init()
H A Dlibbpf.c1114 vlen = btf_vlen(type); in bpf_object_adjust_struct_ops_autoload()
2496 if (btf_vlen(t) != 1) { in get_map_field_long()
2558 vlen = btf_vlen(def_t); in parse_btf_map_def()
3032 vlen = btf_vlen(sec); in bpf_object__init_user_btf_maps()
3162 vlen = btf_vlen(t); in bpf_object__sanitize_btf()
3182 vlen = btf_vlen(t); in bpf_object__sanitize_btf()
3218 vlen = btf_vlen(t); in bpf_object__sanitize_btf()
4202 if (i == btf_vlen(sec)) in add_dummy_ksym_var()
4360 n = btf_vlen(sec); in bpf_object__collect_externs()
4416 n = btf_vlen(sec); in bpf_object__collect_externs()
[all …]
H A Dbtf.h367 static inline __u16 btf_vlen(const struct btf_type *t) in btf_vlen() function
H A Dlibbpf_internal.h244 return (enum btf_func_linkage)(int)btf_vlen(t); in btf_func_linkage()
/linux-6.15/tools/perf/util/
H A Dbtf.c19 for (i = 0, m = btf_members(t); i < btf_vlen(t); i++, m++) { in __btf_type__find_member_by_name()
H A Dbpf_off_cpu.c123 if (t3 && btf_is_func_proto(t3) && btf_vlen(t3) == 5) { in check_sched_switch_args()
/linux-6.15/tools/bpf/bpftool/
H A Dgen.c155 int i, err, off = 0, pad_cnt = 0, vlen = btf_vlen(sec); in codegen_datasec_def()
358 vlen = btf_vlen(sec); in codegen_subskel_datasecs()
530 vlen = btf_vlen(sec); in codegen_asserts()
980 n = btf_vlen(map_type); in walk_st_ops_shadow_vars()
1692 len = btf_vlen(map_type); in do_subskeleton()
1814 len = btf_vlen(map_type); in do_subskeleton()
2089 for (i = 0; i < btf_vlen(btf_type); i++) { in btfgen_mark_type()
2192 __u16 vlen = btf_vlen(btf_type); in btfgen_mark_type_match()
2229 __u16 vlen = btf_vlen(btf_type); in btfgen_mark_type_match()
2482 vlen = btf_vlen(cloned_type); in btfgen_get_btf()
H A Dbtf.c95 switch (btf_vlen(t)) { in btf_func_linkage_str()
265 __u16 vlen = btf_vlen(t); in dump_btf_type()
638 if (!from_ref && !name_off && btf_vlen(t)) in btf_type_sort_name()
685 for (i = 0; i < btf_vlen(t); i++) { in btf_type_disambig_hash()
697 for (i = 0; i < btf_vlen(t); i++) { in btf_type_disambig_hash()
H A 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()
/linux-6.15/tools/testing/selftests/bpf/
H A Dbtf_helpers.c69 switch (btf_vlen(t)) { in btf_func_linkage_str()
98 vlen = btf_vlen(t); in fprintf_btf_type_raw()
H A Dveristat.c1157 for (i = 0; i < btf_vlen(t); i++) { in mask_unrelated_struct_ops_progs()
1215 if (!btf_is_func_proto(t) || btf_vlen(t) != 1) in fixup_obj()
1457 int i, n = btf_vlen(t); in enum_value_from_name()
1469 int i, n = btf_vlen(t); in enum_value_from_name()
1582 n = btf_vlen(t); in set_global_vars()
/linux-6.15/kernel/bpf/
H A Dinode.c662 for (i = 0, n = btf_vlen(enum_t); i < n; i++) { in find_btf_enum_const()
704 for (i = 0, n = btf_vlen(enum_t); i < n; i++) { in seq_print_delegate_opts()
H A Dbpf_struct_ops.c98 if (btf_vlen(vt) != 2) { in is_valid_value_type()
100 value_name, btf_vlen(vt)); in is_valid_value_type()
/linux-6.15/include/linux/
H A Dbtf.h419 static inline u16 btf_vlen(const struct btf_type *t) in btf_vlen() function

12