Home
last modified time | relevance | path

Searched refs:fn_t (Results 1 – 3 of 3) sorted by relevance

/linux-6.15/tools/testing/selftests/bpf/prog_tests/
H A Dtest_global_funcs.c93 const struct btf_type *fn_t, *proto_t; in subtest_ctx_arg_rewrite() local
99 fn_t = btf__type_by_id(btf, rec->type_id); in subtest_ctx_arg_rewrite()
100 if (!ASSERT_OK_PTR(fn_t, "fn_type")) in subtest_ctx_arg_rewrite()
102 if (!ASSERT_EQ(btf_kind(fn_t), BTF_KIND_FUNC, "fn_type_kind")) in subtest_ctx_arg_rewrite()
104 proto_t = btf__type_by_id(btf, fn_t->type); in subtest_ctx_arg_rewrite()
108 name = btf__name_by_offset(btf, fn_t->name_off); in subtest_ctx_arg_rewrite()
/linux-6.15/tools/lib/bpf/
H A Dlibbpf.c6862 struct btf_type *fn_t, *fn_proto_t, *t; in clone_func_btf_info() local
6866 fn_t = btf_type_by_id(btf, orig_fn_id); in clone_func_btf_info()
6867 fn_proto_t = btf_type_by_id(btf, fn_t->type); in clone_func_btf_info()
6879 linkage = btf_func_linkage(fn_t); in clone_func_btf_info()
6914 fn_t = btf_type_by_id(btf, fn_id); in clone_func_btf_info()
6931 struct btf_type *fn_t, *fn_proto_t; in bpf_program_fixup_func_info() local
6982 fn_t = btf_type_by_id(btf, orig_fn_id); in bpf_program_fixup_func_info()
6983 if (!btf_is_func(fn_t) || btf_func_linkage(fn_t) != BTF_FUNC_GLOBAL) in bpf_program_fixup_func_info()
6987 fn_proto_t = btf_type_by_id(btf, fn_t->type); in bpf_program_fixup_func_info()
7051 fn_t = btf_type_by_id(btf, func_rec->type_id); in bpf_program_fixup_func_info()
[all …]
/linux-6.15/kernel/bpf/
H A Dbtf.c7657 const struct btf_type *t, *ref_t, *fn_t; in btf_prepare_func_args() local
7677 fn_t = btf_type_by_id(btf, btf_id); in btf_prepare_func_args()
7678 if (!fn_t || !btf_type_is_func(fn_t)) { in btf_prepare_func_args()
7686 tname = btf_name_by_offset(btf, fn_t->name_off); in btf_prepare_func_args()
7695 t = btf_type_by_id(btf, fn_t->type); in btf_prepare_func_args()
7731 while ((id = btf_find_next_decl_tag(btf, fn_t, i, "arg:", id)) > 0) { in btf_prepare_func_args()