Home
last modified time | relevance | path

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

/linux/tools/testing/selftests/bpf/prog_tests/
H A Dtest_global_funcs.c94 const struct btf_type *fn_t, *proto_t; in subtest_ctx_arg_rewrite()
100 fn_t = btf__type_by_id(btf, rec->type_id); in subtest_ctx_arg_rewrite()
101 if (!ASSERT_OK_PTR(fn_t, "fn_type")) in subtest_ctx_arg_rewrite()
103 if (!ASSERT_EQ(btf_kind(fn_t), BTF_KIND_FUNC, "fn_type_kind")) in subtest_ctx_arg_rewrite()
105 proto_t = btf__type_by_id(btf, fn_t->type); in subtest_ctx_arg_rewrite()
109 name = btf__name_by_offset(btf, fn_t->name_off); in subtest_ctx_arg_rewrite()
93 const struct btf_type *fn_t, *proto_t; subtest_ctx_arg_rewrite() local
/linux/tools/lib/bpf/
H A Dlibbpf.c7279 struct btf_type *fn_t, *fn_proto_t, *t; in clone_func_btf_info() local
7283 fn_t = btf_type_by_id(btf, orig_fn_id); in clone_func_btf_info()
7284 fn_proto_t = btf_type_by_id(btf, fn_t->type); in clone_func_btf_info()
7295 fn_name_off = fn_t->name_off; /* we are about to invalidate fn_t */ in clone_func_btf_info()
7296 linkage = btf_func_linkage(fn_t); in clone_func_btf_info()
7297 orig_proto_id = fn_t->type; /* original FUNC_PROTO ID */ in clone_func_btf_info()
7331 fn_t = btf_type_by_id(btf, fn_id); in clone_func_btf_info()
7332 fn_t->name_off = fn_name_off; /* reuse original string */ in clone_func_btf_info()
7348 struct btf_type *fn_t, *fn_proto_t; in bpf_program_fixup_func_info() local
7399 fn_t = btf_type_by_id(btf, orig_fn_id); in bpf_program_fixup_func_info()
[all …]
/linux/kernel/bpf/
H A Dbtf.c7924 const struct btf_type *fn_t, in btf_scan_decl_tags() argument
7945 while ((id = btf_find_next_decl_tag(btf, fn_t, arg_idx, tag_key, id)) > 0) { in btf_scan_decl_tags()
8063 const struct btf_type *t, *ref_t, *fn_t; in btf_prepare_func_args() local
8084 fn_t = btf_type_by_id(btf, btf_id); in btf_prepare_func_args()
8085 if (!fn_t || !btf_type_is_func(fn_t)) { in btf_prepare_func_args()
8093 tname = btf_name_by_offset(btf, fn_t->name_off); in btf_prepare_func_args()
8102 t = btf_type_by_id(btf, fn_t->type); in btf_prepare_func_args()
8146 err = btf_scan_decl_tags(env, btf, fn_t, i, is_global, &tags); in btf_prepare_func_args()