Searched refs:fn_t (Results 1 – 3 of 3) sorted by relevance
| /linux/tools/testing/selftests/bpf/prog_tests/ |
| H A D | test_global_funcs.c | 94 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 D | libbpf.c | 7223 struct btf_type *fn_t, *fn_proto_t, *t; in clone_func_btf_info() 7227 fn_t = btf_type_by_id(btf, orig_fn_id); 7228 fn_proto_t = btf_type_by_id(btf, fn_t->type); 7239 fn_name_off = fn_t->name_off; /* we are about to invalidate fn_t */ in bpf_program_fixup_func_info() 7240 linkage = btf_func_linkage(fn_t); in bpf_program_fixup_func_info() 7241 orig_proto_id = fn_t->type; /* original FUNC_PROTO ID */ in bpf_program_fixup_func_info() 7275 fn_t = btf_type_by_id(btf, fn_id); in bpf_program_fixup_func_info() 7276 fn_t->name_off = fn_name_off; /* reuse original string */ in bpf_program_fixup_func_info() 7292 struct btf_type *fn_t, *fn_proto_ in bpf_program_fixup_func_info() 7168 struct btf_type *fn_t, *fn_proto_t, *t; clone_func_btf_info() local 7237 struct btf_type *fn_t, *fn_proto_t; bpf_program_fixup_func_info() local [all...] |
| /linux/kernel/bpf/ |
| H A D | btf.c | 7845 const struct btf_type *t, *ref_t, *fn_t; in btf_prepare_func_args() local 7865 fn_t = btf_type_by_id(btf, btf_id); in btf_prepare_func_args() 7866 if (!fn_t || !btf_type_is_func(fn_t)) { in btf_prepare_func_args() 7874 tname = btf_name_by_offset(btf, fn_t->name_off); in btf_prepare_func_args() 7883 t = btf_type_by_id(btf, fn_t->type); in btf_prepare_func_args() 7921 while ((id = btf_find_next_decl_tag(btf, fn_t, i, "arg:", id)) > 0) { in btf_prepare_func_args()
|