/linux-6.1.9/net/bpf/ |
D | bpf_dummy_struct_ops.c | 81 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/ |
D | cgroup.c | 1604 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 …]
|
D | bpf_lsm.c | 198 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()
|
D | bpf_struct_ops.c | 160 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()
|
D | verifier.c | 2022 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 …]
|
D | btf.c | 5336 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/ |
D | test_btf.h | 69 #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/ |
D | btf_dumper.c | 28 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/ |
D | filter.c | 7627 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/ |
D | bpf.h | 2048 const struct btf_type *func_proto,
|
/linux-6.1.9/Documentation/bpf/ |
D | btf.rst | 526 int, ptr, array, struct, union, enum, func_proto and float types.
|
/linux-6.1.9/tools/lib/bpf/ |
D | libbpf.c | 3835 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()
|