Searched refs:fn_t (Results 1 – 3 of 3) sorted by relevance
/linux-6.12.1/tools/testing/selftests/bpf/prog_tests/ |
D | test_global_funcs.c | 93 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.12.1/tools/lib/bpf/ |
D | libbpf.c | 6799 struct btf_type *fn_t, *fn_proto_t, *t; in clone_func_btf_info() local 6803 fn_t = btf_type_by_id(btf, orig_fn_id); in clone_func_btf_info() 6804 fn_proto_t = btf_type_by_id(btf, fn_t->type); in clone_func_btf_info() 6815 fn_name_off = fn_t->name_off; /* we are about to invalidate fn_t */ in clone_func_btf_info() 6816 linkage = btf_func_linkage(fn_t); in clone_func_btf_info() 6817 orig_proto_id = fn_t->type; /* original FUNC_PROTO ID */ in clone_func_btf_info() 6851 fn_t = btf_type_by_id(btf, fn_id); in clone_func_btf_info() 6852 fn_t->name_off = fn_name_off; /* reuse original string */ in clone_func_btf_info() 6868 struct btf_type *fn_t, *fn_proto_t; in bpf_program_fixup_func_info() local 6919 fn_t = btf_type_by_id(btf, orig_fn_id); in bpf_program_fixup_func_info() [all …]
|
/linux-6.12.1/kernel/bpf/ |
D | btf.c | 7371 const struct btf_type *t, *ref_t, *fn_t; in btf_prepare_func_args() local 7391 fn_t = btf_type_by_id(btf, btf_id); in btf_prepare_func_args() 7392 if (!fn_t || !btf_type_is_func(fn_t)) { in btf_prepare_func_args() 7400 tname = btf_name_by_offset(btf, fn_t->name_off); in btf_prepare_func_args() 7409 t = btf_type_by_id(btf, fn_t->type); in btf_prepare_func_args() 7445 while ((id = btf_find_next_decl_tag(btf, fn_t, i, "arg:", id)) > 0) { in btf_prepare_func_args()
|