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

/linux-master/tools/testing/selftests/bpf/prog_tests/
H A Dtest_global_funcs.c93 const struct btf_type *fn_t, *proto_t; local
99 fn_t = btf__type_by_id(btf, rec->type_id);
100 if (!ASSERT_OK_PTR(fn_t, "fn_type"))
102 if (!ASSERT_EQ(btf_kind(fn_t), BTF_KIND_FUNC, "fn_type_kind"))
104 proto_t = btf__type_by_id(btf, fn_t->type);
108 name = btf__name_by_offset(btf, fn_t->name_off);
/linux-master/tools/lib/bpf/
H A Dlibbpf.c6761 struct btf_type *fn_t, *fn_proto_t, *t; local
6765 fn_t = btf_type_by_id(btf, orig_fn_id);
6766 fn_proto_t = btf_type_by_id(btf, fn_t->type);
6777 fn_name_off = fn_t->name_off; /* we are about to invalidate fn_t */
6778 linkage = btf_func_linkage(fn_t);
6779 orig_proto_id = fn_t->type; /* original FUNC_PROTO ID */
6813 fn_t = btf_type_by_id(btf, fn_id);
6814 fn_t->name_off = fn_name_off; /* reuse original string */
6830 struct btf_type *fn_t, *fn_proto_ local
[all...]
/linux-master/kernel/bpf/
H A Dbtf.c7159 const struct btf_type *t, *ref_t, *fn_t; local
7179 fn_t = btf_type_by_id(btf, btf_id);
7180 if (!fn_t || !btf_type_is_func(fn_t)) {
7188 tname = btf_name_by_offset(btf, fn_t->name_off);
7197 t = btf_type_by_id(btf, fn_t->type);
7233 while ((id = btf_find_next_decl_tag(btf, fn_t, i, "arg:", id)) > 0) {

Completed in 337 milliseconds