Searched refs:fn_t (Results 1 – 3 of 3) sorted by relevance
| /linux/tools/testing/selftests/bpf/prog_tests/ |
| A 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/tools/lib/bpf/ |
| A 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() 6816 linkage = btf_func_linkage(fn_t); in clone_func_btf_info() 6851 fn_t = btf_type_by_id(btf, fn_id); 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() 6920 if (!btf_is_func(fn_t) || btf_func_linkage(fn_t) != BTF_FUNC_GLOBAL) in bpf_program_fixup_func_info() 6924 fn_proto_t = btf_type_by_id(btf, fn_t->type); in bpf_program_fixup_func_info() 6988 fn_t = btf_type_by_id(btf, func_rec->type_id); in bpf_program_fixup_func_info() [all …]
|
| /linux/kernel/bpf/ |
| A 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()
|
Completed in 242 milliseconds