Searched refs:func_proto (Results 1 - 14 of 14) sorted by relevance

/linux-master/kernel/trace/
H A Dtrace_btf.h6 const struct btf_param *btf_get_func_param(const struct btf_type *func_proto,
H A Dtrace_btf.c41 * It can return -EINVAL if the @func_proto is not a function proto type.
43 const struct btf_param *btf_get_func_param(const struct btf_type *func_proto, s32 *nr) argument
45 if (!btf_type_is_func_proto(func_proto))
48 *nr = btf_type_vlen(func_proto);
50 return (const struct btf_param *)(func_proto + 1);
/linux-master/tools/testing/selftests/bpf/
H A Dtest_btf.h69 #define BTF_FUNC_ENC(name, func_proto) \
70 BTF_TYPE_ENC(name, BTF_INFO_ENC(BTF_KIND_FUNC, 0, 0), func_proto)
/linux-master/net/bpf/
H A Dbpf_dummy_struct_ops.c88 const struct btf_type *func_proto; local
107 func_proto = prog->aux->attach_func_proto;
108 args = dummy_ops_init_args(kattr, btf_type_vlen(func_proto));
/linux-master/kernel/bpf/
H A Dbpf_struct_ops.c203 const struct btf_type *func_proto,
220 nargs = btf_type_vlen(func_proto);
230 args = btf_params(func_proto);
258 offset = btf_ctx_arg_offset(btf, func_proto, arg_no);
266 pr_warn("arg#%u type in stub function %s__%s does not match with its original func_proto\n",
372 const struct btf_type *func_proto; local
389 func_proto = btf_type_resolve_func_ptr(btf,
392 if (!func_proto)
396 func_proto, mname,
405 func_proto,
200 prepare_arg_info(struct btf *btf, const char *st_ops_name, const char *member_name, const struct btf_type *func_proto, struct bpf_struct_ops_arg_info *arg_info) argument
[all...]
H A Dbpf_lsm.c199 const struct bpf_func_proto *func_proto; local
202 func_proto = cgroup_common_func_proto(func_id, prog);
203 if (func_proto)
204 return func_proto;
H A Dcgroup.c1616 const struct bpf_func_proto *func_proto; local
1618 func_proto = cgroup_common_func_proto(func_id, prog);
1619 if (func_proto)
1620 return func_proto;
1622 func_proto = cgroup_current_func_proto(func_id, prog);
1623 if (func_proto)
1624 return func_proto;
2167 const struct bpf_func_proto *func_proto; local
2169 func_proto = cgroup_common_func_proto(func_id, prog);
2170 if (func_proto)
2314 const struct bpf_func_proto *func_proto; local
[all...]
H A Dverifier.c296 const struct btf_type *func_proto; member in struct:bpf_kfunc_call_arg_meta
2723 const struct btf_type *func, *func_proto; local
2800 func_proto = btf_type_by_id(desc_btf, func->type);
2801 if (!func_proto || !btf_type_is_func_proto(func_proto)) {
2802 verbose(env, "kernel function btf_id %u does not have a valid func_proto\n",
2840 func_proto, func_name,
7775 arg = &btf_params(meta->func_proto)[0];
10688 * the BTF func_proto's return value size and argument.
11614 args = (const struct btf_param *)(meta->func_proto
12054 const struct btf_type *func, *func_proto; local
15905 const struct btf_type *type, *func_proto; local
16006 const struct btf_type *type, *func_proto, *ret_type; local
20640 const struct btf_type *t, *func_proto; local
[all...]
H A Dbtf.c1816 /* int, enum, void, struct, array, func or func_proto is a sink
1822 /* int, enum, void, ptr, func or func_proto is a sink
6127 static u32 get_ctx_arg_idx(struct btf *btf, const struct btf_type *func_proto, argument
6135 if (!func_proto)
6138 nr_args = btf_type_vlen(func_proto);
6139 args = (const struct btf_param *)(func_proto + 1);
6147 t = btf_type_skip_modifiers(btf, func_proto->type, NULL);
6171 int btf_ctx_arg_offset(const struct btf *btf, const struct btf_type *func_proto, argument
6179 args = btf_params(func_proto);
/linux-master/tools/bpf/bpftool/
H A Dbtf_dumper.c28 const struct btf_type *func_proto,
32 const struct btf_type *func_proto,
46 /* Get the ptr's func_proto */
47 func_sig_len = btf_dump_func(d->btf, prog_str, func_proto, NULL, 0,
711 const struct btf_type *func_proto,
716 BTF_PRINT_TYPE(func_proto->type);
721 vlen = BTF_INFO_VLEN(func_proto->info);
723 struct btf_param *arg = &((struct btf_param *)(func_proto + 1))[i];
31 dump_prog_id_as_func_ptr(const struct btf_dumper *d, const struct btf_type *func_proto, __u32 prog_id) argument
710 btf_dump_func(const struct btf *btf, char *func_sig, const struct btf_type *func_proto, const struct btf_type *func, int pos, int size) argument
/linux-master/include/linux/
H A Dbtf.h501 int btf_ctx_arg_offset(const struct btf *btf, const struct btf_type *func_proto,
H A Dbpf.h2580 const struct btf_type *func_proto,
/linux-master/net/core/
H A Dfilter.c7875 const struct bpf_func_proto *func_proto; local
7877 func_proto = cgroup_common_func_proto(func_id, prog);
7878 if (func_proto)
7879 return func_proto;
7881 func_proto = cgroup_current_func_proto(func_id, prog);
7882 if (func_proto)
7883 return func_proto;
7904 const struct bpf_func_proto *func_proto; local
7906 func_proto = cgroup_common_func_proto(func_id, prog);
7907 if (func_proto)
8019 const struct bpf_func_proto *func_proto; local
8278 const struct bpf_func_proto *func_proto; local
[all...]
/linux-master/tools/lib/bpf/
H A Dlibbpf.c1185 /* mtype->type must be a func_proto which was
1187 * so only check kern_mtype for func_proto here.
2312 case BTF_KIND_FUNC_PROTO: return "func_proto";
4258 const struct btf_type *func_proto; local
4262 func_proto = btf__type_by_id(obj->btf,
4264 param = btf_params(func_proto);
4268 for (j = 0; j < btf_vlen(func_proto); j++)
8160 pr_warn("extern (func ksym) '%s': func_proto [%d] incompatible with %s [%d]\n",

Completed in 374 milliseconds