Lines Matching refs:insn
67 const struct bpf_insn *insn) in __cgroup_bpf_run_lsm_sock() argument
78 shim_prog = (const struct bpf_prog *)((void *)insn - offsetof(struct bpf_prog, insnsi)); in __cgroup_bpf_run_lsm_sock()
89 const struct bpf_insn *insn) in __cgroup_bpf_run_lsm_socket() argument
100 shim_prog = (const struct bpf_prog *)((void *)insn - offsetof(struct bpf_prog, insnsi)); in __cgroup_bpf_run_lsm_socket()
111 const struct bpf_insn *insn) in __cgroup_bpf_run_lsm_current() argument
118 shim_prog = (const struct bpf_prog *)((void *)insn - offsetof(struct bpf_prog, insnsi)); in __cgroup_bpf_run_lsm_current()
2212 struct bpf_insn *insn = insn_buf; in sysctl_convert_ctx_access() local
2217 *insn++ = BPF_LDX_MEM( in sysctl_convert_ctx_access()
2237 *insn++ = BPF_STX_MEM( in sysctl_convert_ctx_access()
2240 *insn++ = BPF_LDX_MEM( in sysctl_convert_ctx_access()
2244 *insn++ = BPF_STX_MEM( in sysctl_convert_ctx_access()
2248 *insn++ = BPF_LDX_MEM( in sysctl_convert_ctx_access()
2252 *insn++ = BPF_LDX_MEM( in sysctl_convert_ctx_access()
2257 *insn++ = BPF_LDX_MEM( in sysctl_convert_ctx_access()
2266 return insn - insn_buf; in sysctl_convert_ctx_access()
2408 struct bpf_insn *insn = insn_buf; in cg_sockopt_convert_ctx_access() local
2412 *insn++ = CG_SOCKOPT_ACCESS_FIELD(BPF_LDX_MEM, sk); in cg_sockopt_convert_ctx_access()
2416 *insn++ = CG_SOCKOPT_ACCESS_FIELD(BPF_STX_MEM, level); in cg_sockopt_convert_ctx_access()
2418 *insn++ = CG_SOCKOPT_ACCESS_FIELD(BPF_LDX_MEM, level); in cg_sockopt_convert_ctx_access()
2422 *insn++ = CG_SOCKOPT_ACCESS_FIELD(BPF_STX_MEM, optname); in cg_sockopt_convert_ctx_access()
2424 *insn++ = CG_SOCKOPT_ACCESS_FIELD(BPF_LDX_MEM, optname); in cg_sockopt_convert_ctx_access()
2428 *insn++ = CG_SOCKOPT_ACCESS_FIELD(BPF_STX_MEM, optlen); in cg_sockopt_convert_ctx_access()
2430 *insn++ = CG_SOCKOPT_ACCESS_FIELD(BPF_LDX_MEM, optlen); in cg_sockopt_convert_ctx_access()
2442 *insn++ = BPF_STX_MEM(BPF_DW, si->dst_reg, treg, in cg_sockopt_convert_ctx_access()
2444 *insn++ = BPF_LDX_MEM(BPF_FIELD_SIZEOF(struct bpf_sockopt_kern, current_task), in cg_sockopt_convert_ctx_access()
2447 *insn++ = BPF_LDX_MEM(BPF_FIELD_SIZEOF(struct task_struct, bpf_ctx), in cg_sockopt_convert_ctx_access()
2450 *insn++ = BPF_STX_MEM(BPF_FIELD_SIZEOF(struct bpf_cg_run_ctx, retval), in cg_sockopt_convert_ctx_access()
2453 *insn++ = BPF_LDX_MEM(BPF_DW, treg, si->dst_reg, in cg_sockopt_convert_ctx_access()
2456 *insn++ = BPF_LDX_MEM(BPF_FIELD_SIZEOF(struct bpf_sockopt_kern, current_task), in cg_sockopt_convert_ctx_access()
2459 *insn++ = BPF_LDX_MEM(BPF_FIELD_SIZEOF(struct task_struct, bpf_ctx), in cg_sockopt_convert_ctx_access()
2462 *insn++ = BPF_LDX_MEM(BPF_FIELD_SIZEOF(struct bpf_cg_run_ctx, retval), in cg_sockopt_convert_ctx_access()
2468 *insn++ = CG_SOCKOPT_ACCESS_FIELD(BPF_LDX_MEM, optval); in cg_sockopt_convert_ctx_access()
2471 *insn++ = CG_SOCKOPT_ACCESS_FIELD(BPF_LDX_MEM, optval_end); in cg_sockopt_convert_ctx_access()
2475 return insn - insn_buf; in cg_sockopt_convert_ctx_access()