Home
last modified time | relevance | path

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

/openbmc/linux/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()
178 n = btf_vlen(t); in test_libbpf_bpf_prog_type_str()
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()
64 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.c453 if (btf_is_struct(t) && btf_vlen(t) && in setup_type_id_case_local()
457 } else if (btf_is_union(t) && btf_vlen(t) && in setup_type_id_case_local()
461 } else if (btf_is_enum(t) && btf_vlen(t) && in setup_type_id_case_local()
H A Dctx_rewrite.c267 mnum = btf_vlen(type); in find_field_offset_aux()
/openbmc/linux/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()
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()
1485 __u16 targ_vlen = btf_vlen(targ_t); in bpf_core_composites_match()
1660 __u16 local_vlen = btf_vlen(local_t); in __bpf_core_types_match()
[all …]
H A 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()
2090 __u16 n = btf_vlen(t); in btf_dump_struct_data()
[all …]
H A 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()
3437 vlen = btf_vlen(t1); in btf_equal_enum_members()
3455 vlen = btf_vlen(t1); in btf_equal_enum64_members()
3508 __u32 vlen = btf_vlen(t); in btf_hash_struct()
3535 vlen = btf_vlen(t1); in btf_shallow_equal_struct()
3605 __u16 vlen = btf_vlen(t); in btf_hash_fnproto()
3633 vlen = btf_vlen(t1); in btf_equal_fnproto()
3660 vlen = btf_vlen(t1); in btf_compat_fnproto()
[all …]
H A 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()
2360 n = btf_vlen(t); in linker_append_btf()
H A Dlibbpf.c969 if (i == btf_vlen(kern_vtype)) { in find_struct_ops_kern_types()
2208 vlen = btf_vlen(def_t); in parse_btf_map_def()
2654 vlen = btf_vlen(sec); in bpf_object__init_user_btf_maps()
2750 vlen = btf_vlen(t); in bpf_object__sanitize_btf()
2762 vlen = btf_vlen(t); in bpf_object__sanitize_btf()
2798 vlen = btf_vlen(t); in bpf_object__sanitize_btf()
3758 if (i == btf_vlen(sec)) in add_dummy_ksym_var()
3916 n = btf_vlen(sec); in bpf_object__collect_externs()
3972 n = btf_vlen(sec); in bpf_object__collect_externs()
6699 if (btf_vlen(def) == 0) in bpf_object__collect_map_relos()
[all …]
H A Dbtf.h325 static inline __u16 btf_vlen(const struct btf_type *t) in btf_vlen() function
H A Dlibbpf_internal.h239 return (enum btf_func_linkage)(int)btf_vlen(t); in btf_func_linkage()
/openbmc/linux/tools/bpf/bpftool/
H A 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()
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()
H A Dbtf.c78 switch (btf_vlen(t)) { in btf_func_linkage_str()
248 __u16 vlen = btf_vlen(t); in dump_btf_type()
H A Dprog.c332 vlen = btf_vlen(t_datasec); in show_prog_metadata()
/openbmc/linux/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 Dtest_progs.c974 for (j = 0, vlen = btf_vlen(t); j < vlen; j++, e++) { in get_bpf_max_tramp_links_from()
H A Dveristat.c918 if (!btf_is_func_proto(t) || btf_vlen(t) != 1) in fixup_obj()
/openbmc/linux/tools/perf/tests/
H A Dsigtrap.c80 for (i = 0, m = btf_members(t); i < btf_vlen(t); i++, m++) { in attr_has_sigtrap()
/openbmc/linux/tools/perf/util/
H A Dbpf_off_cpu.c120 if (t3 && btf_is_func_proto(t3) && btf_vlen(t3) == 5) { in check_sched_switch_args()
/openbmc/linux/include/linux/
H A Dbtf.h389 static inline u16 btf_vlen(const struct btf_type *t) in btf_vlen() function