Home
last modified time | relevance | path

Searched refs:func_proto (Results 1 – 12 of 12) sorted by relevance

/linux-6.1.9/net/bpf/
Dbpf_dummy_struct_ops.c81 const struct btf_type *func_proto; in bpf_struct_ops_test_run() local
93 func_proto = prog->aux->attach_func_proto; in bpf_struct_ops_test_run()
94 args = dummy_ops_init_args(kattr, btf_type_vlen(func_proto)); in bpf_struct_ops_test_run()
/linux-6.1.9/kernel/bpf/
Dcgroup.c1604 const struct bpf_func_proto *func_proto; in cgroup_dev_func_proto() local
1606 func_proto = cgroup_common_func_proto(func_id, prog); in cgroup_dev_func_proto()
1607 if (func_proto) in cgroup_dev_func_proto()
1608 return func_proto; in cgroup_dev_func_proto()
1610 func_proto = cgroup_current_func_proto(func_id, prog); in cgroup_dev_func_proto()
1611 if (func_proto) in cgroup_dev_func_proto()
1612 return func_proto; in cgroup_dev_func_proto()
2134 const struct bpf_func_proto *func_proto; in sysctl_func_proto() local
2136 func_proto = cgroup_common_func_proto(func_id, prog); in sysctl_func_proto()
2137 if (func_proto) in sysctl_func_proto()
[all …]
Dbpf_lsm.c198 const struct bpf_func_proto *func_proto; in bpf_lsm_func_proto() local
201 func_proto = cgroup_common_func_proto(func_id, prog); in bpf_lsm_func_proto()
202 if (func_proto) in bpf_lsm_func_proto()
203 return func_proto; in bpf_lsm_func_proto()
Dbpf_struct_ops.c160 const struct btf_type *func_proto; in bpf_struct_ops_init() local
175 func_proto = btf_type_resolve_func_ptr(btf, in bpf_struct_ops_init()
178 if (func_proto && in bpf_struct_ops_init()
180 func_proto, mname, in bpf_struct_ops_init()
Dverifier.c2022 const struct btf_type *func, *func_proto; in add_kfunc_call() local
2099 func_proto = btf_type_by_id(desc_btf, func->type); in add_kfunc_call()
2100 if (!func_proto || !btf_type_is_func_proto(func_proto)) { in add_kfunc_call()
2127 func_proto, func_name, in add_kfunc_call()
7690 const struct btf_type *t, *func, *func_proto, *ptr_type; in check_kfunc_call() local
7712 func_proto = btf_type_by_id(desc_btf, func->type); in check_kfunc_call()
7749 t = btf_type_skip_modifiers(desc_btf, func_proto->type, NULL); in check_kfunc_call()
7806 nargs = btf_type_vlen(func_proto); in check_kfunc_call()
7807 args = (const struct btf_param *)(func_proto + 1); in check_kfunc_call()
11003 const struct btf_type *type, *func_proto, *ret_type; in check_btf_func() local
[all …]
Dbtf.c5336 static u32 get_ctx_arg_idx(struct btf *btf, const struct btf_type *func_proto, in get_ctx_arg_idx() argument
5344 if (!func_proto) in get_ctx_arg_idx()
5347 nr_args = btf_type_vlen(func_proto); in get_ctx_arg_idx()
5348 args = (const struct btf_param *)(func_proto + 1); in get_ctx_arg_idx()
5356 t = btf_type_skip_modifiers(btf, func_proto->type, NULL); in get_ctx_arg_idx()
/linux-6.1.9/tools/testing/selftests/bpf/
Dtest_btf.h69 #define BTF_FUNC_ENC(name, func_proto) \ argument
70 BTF_TYPE_ENC(name, BTF_INFO_ENC(BTF_KIND_FUNC, 0, 0), func_proto)
/linux-6.1.9/tools/bpf/bpftool/
Dbtf_dumper.c28 const struct btf_type *func_proto,
32 const struct btf_type *func_proto, in dump_prog_id_as_func_ptr() argument
47 func_sig_len = btf_dump_func(d->btf, prog_str, func_proto, NULL, 0, in dump_prog_id_as_func_ptr()
711 const struct btf_type *func_proto, in btf_dump_func() argument
716 BTF_PRINT_TYPE(func_proto->type); in btf_dump_func()
721 vlen = BTF_INFO_VLEN(func_proto->info); in btf_dump_func()
723 struct btf_param *arg = &((struct btf_param *)(func_proto + 1))[i]; in btf_dump_func()
/linux-6.1.9/net/core/
Dfilter.c7627 const struct bpf_func_proto *func_proto; in sock_filter_func_proto() local
7629 func_proto = cgroup_common_func_proto(func_id, prog); in sock_filter_func_proto()
7630 if (func_proto) in sock_filter_func_proto()
7631 return func_proto; in sock_filter_func_proto()
7633 func_proto = cgroup_current_func_proto(func_id, prog); in sock_filter_func_proto()
7634 if (func_proto) in sock_filter_func_proto()
7635 return func_proto; in sock_filter_func_proto()
7656 const struct bpf_func_proto *func_proto; in sock_addr_func_proto() local
7658 func_proto = cgroup_common_func_proto(func_id, prog); in sock_addr_func_proto()
7659 if (func_proto) in sock_addr_func_proto()
[all …]
/linux-6.1.9/include/linux/
Dbpf.h2048 const struct btf_type *func_proto,
/linux-6.1.9/Documentation/bpf/
Dbtf.rst526 int, ptr, array, struct, union, enum, func_proto and float types.
/linux-6.1.9/tools/lib/bpf/
Dlibbpf.c3835 const struct btf_type *func_proto; in bpf_object__collect_externs() local
3839 func_proto = btf__type_by_id(obj->btf, in bpf_object__collect_externs()
3841 param = btf_params(func_proto); in bpf_object__collect_externs()
3845 for (j = 0; j < btf_vlen(func_proto); j++) in bpf_object__collect_externs()