Home
last modified time | relevance | path

Searched refs:ctx_arg_info (Results 1 – 17 of 17) sorted by relevance

/linux/kernel/bpf/
H A Dlink_iter.c93 .ctx_arg_info = {
102 bpf_link_reg_info.ctx_arg_info[0].btf_id = *btf_bpf_link_id; in bpf_link_iter_init()
H A Dprog_iter.c93 .ctx_arg_info = {
102 bpf_prog_reg_info.ctx_arg_info[0].btf_id = *btf_bpf_prog_id; in bpf_prog_iter_init()
H A Ddmabuf_iter.c128 .ctx_arg_info = {
140 bpf_dmabuf_reg_info.ctx_arg_info[0].btf_id = bpf_dmabuf_btf_id[0]; in DEFINE_BPF_ITER_FUNC()
H A Dbtf.c6947 const struct bpf_ctx_arg_aux *ctx_arg_info = &prog->aux->ctx_arg_info[i]; in btf_ctx_access() local
6950 type = base_type(ctx_arg_info->reg_type); in btf_ctx_access()
6951 flag = type_flag(ctx_arg_info->reg_type); in btf_ctx_access()
6952 if (ctx_arg_info->offset == off && type == PTR_TO_BUF && in btf_ctx_access()
6954 info->reg_type = ctx_arg_info->reg_type; in btf_ctx_access()
6972 const struct bpf_ctx_arg_aux *ctx_arg_info = &prog->aux->ctx_arg_info[i]; in btf_ctx_access() local
6974 if (ctx_arg_info->offset == off) { in btf_ctx_access()
6975 if (!ctx_arg_info->btf_id) { in btf_ctx_access()
6980 info->reg_type = ctx_arg_info->reg_type; in btf_ctx_access()
6981 info->btf = ctx_arg_info->btf ? : btf_vmlinux; in btf_ctx_access()
[all …]
H A Dbpf_iter.c365 return bpf_prog_ctx_arg_info_init(prog, tinfo->reg_info->ctx_arg_info, in bpf_iter_prog_supported()
H A Dverifier.c18800 aux->ctx_arg_info[i].ref_obj_id = aux->ctx_arg_info[i].refcounted ? in do_check_common()
18921 prog->aux->ctx_arg_info = kmemdup_array(info, cnt, sizeof(*info), GFP_KERNEL_ACCOUNT); in bpf_prog_ctx_arg_info_init()
18924 return prog->aux->ctx_arg_info ? 0 : -ENOMEM; in bpf_prog_ctx_arg_info_init()
H A Dsyscall.c2377 kfree(prog->aux->ctx_arg_info); in __bpf_prog_put_noref()
/linux/net/bpf/
H A Dbpf_dummy_struct_ops.c87 if (aux->ctx_arg_info[i].offset == offset) in find_ctx_arg_info()
88 return &aux->ctx_arg_info[i]; in find_ctx_arg_info()
/linux/kernel/
H A Dkallsyms.c865 .ctx_arg_info = {
876 ksym_iter_reg_info.ctx_arg_info[0].btf_id = *btf_ksym_iter_id; in BTF_ID_LIST_SINGLE()
/linux/net/core/
H A Dbpf_sk_storage.c907 .ctx_arg_info = {
918 bpf_sk_storage_map_reg_info.ctx_arg_info[0].btf_id = in bpf_sk_storage_map_iter_init()
H A Dsock_map.c1956 .ctx_arg_info = {
1966 sock_map_iter_reg.ctx_arg_info[1].btf_id = in bpf_sockmap_iter_init()
/linux/net/netlink/
H A Daf_netlink.c2900 .ctx_arg_info = {
2909 netlink_reg_info.ctx_arg_info[0].btf_id = *btf_netlink_sock_id; in bpf_iter_register()
/linux/include/linux/
H A Dbpf.h1678 struct bpf_ctx_arg_aux *ctx_arg_info; member
2860 struct bpf_ctx_arg_aux ctx_arg_info[BPF_ITER_CTX_ARG_MAX]; member
/linux/net/ipv4/
H A Dudp.c3852 .ctx_arg_info = {
3861 udp_reg_info.ctx_arg_info[0].btf_id = btf_sock_ids[BTF_SOCK_TYPE_UDP]; in bpf_iter_register()
H A Dtcp_ipv4.c3620 .ctx_arg_info = {
3630 tcp_reg_info.ctx_arg_info[0].btf_id = btf_sock_ids[BTF_SOCK_TYPE_SOCK_COMMON];
/linux/net/unix/
H A Daf_unix.c3928 .ctx_arg_info = {
3938 unix_reg_info.ctx_arg_info[0].btf_id = btf_sock_ids[BTF_SOCK_TYPE_UNIX]; in bpf_iter_register()
/linux/net/ipv6/
H A Droute.c6855 .ctx_arg_info = {
6864 ipv6_route_reg_info.ctx_arg_info[0].btf_id = *btf_fib6_info_id; in bpf_iter_register()