| /OK3568_Linux_fs/kernel/kernel/bpf/ |
| H A D | disasm.c | 153 bpf_ldst_string[BPF_SIZE(insn->code) >> 3], in print_bpf_insn() 159 bpf_ldst_string[BPF_SIZE(insn->code) >> 3], in print_bpf_insn() 168 bpf_ldst_string[BPF_SIZE(insn->code) >> 3], in print_bpf_insn() 183 bpf_ldst_string[BPF_SIZE(insn->code) >> 3], in print_bpf_insn() 189 bpf_ldst_string[BPF_SIZE(insn->code) >> 3], in print_bpf_insn() 194 bpf_ldst_string[BPF_SIZE(insn->code) >> 3], in print_bpf_insn() 197 BPF_SIZE(insn->code) == BPF_DW) { in print_bpf_insn()
|
| H A D | cgroup.c | 1755 BPF_SIZE(si->code), si->dst_reg, si->src_reg, in sysctl_convert_ctx_access() 1793 read_size = bpf_size_to_bytes(BPF_SIZE(si->code)); in sysctl_convert_ctx_access() 1795 BPF_SIZE(si->code), si->dst_reg, si->dst_reg, in sysctl_convert_ctx_access()
|
| H A D | verifier.c | 1651 return BPF_SIZE(code) == BPF_DW; in is_reg64() 1659 return BPF_SIZE(code) == BPF_DW; in is_reg64() 1871 if (BPF_SIZE(insn->code) != BPF_DW) in backtrack_insn() 1895 if (BPF_SIZE(insn->code) != BPF_DW) in backtrack_insn() 3941 if ((BPF_SIZE(insn->code) != BPF_W && BPF_SIZE(insn->code) != BPF_DW) || in check_xadd() 3974 BPF_SIZE(insn->code), BPF_READ, -1, true); in check_xadd() 3980 BPF_SIZE(insn->code), BPF_WRITE, -1, true); in check_xadd() 8133 if (BPF_SIZE(insn->code) != BPF_DW) { in check_ld_imm() 8238 BPF_SIZE(insn->code) == BPF_DW || in check_ld_abs() 9880 insn->off, BPF_SIZE(insn->code), in do_check() [all …]
|
| H A D | syscall.c | 3362 insns[i].code = BPF_LDX | BPF_SIZE(code) | BPF_MEM; in bpf_insn_prepare_dump()
|
| /OK3568_Linux_fs/kernel/samples/bpf/ |
| H A D | bpf_insn.h | 111 .code = BPF_LD | BPF_SIZE(SIZE) | BPF_ABS, \ 121 .code = BPF_LDX | BPF_SIZE(SIZE) | BPF_MEM, \ 131 .code = BPF_STX | BPF_SIZE(SIZE) | BPF_MEM, \ 141 .code = BPF_STX | BPF_SIZE(SIZE) | BPF_XADD, \ 151 .code = BPF_ST | BPF_SIZE(SIZE) | BPF_MEM, \
|
| /OK3568_Linux_fs/kernel/tools/include/linux/ |
| H A D | filter.h | 136 .code = BPF_LD | BPF_SIZE(SIZE) | BPF_ABS, \ 146 .code = BPF_LD | BPF_SIZE(SIZE) | BPF_IND, \ 156 .code = BPF_LDX | BPF_SIZE(SIZE) | BPF_MEM, \ 166 .code = BPF_STX | BPF_SIZE(SIZE) | BPF_MEM, \ 176 .code = BPF_STX | BPF_SIZE(SIZE) | BPF_XADD, \ 186 .code = BPF_ST | BPF_SIZE(SIZE) | BPF_MEM, \
|
| /OK3568_Linux_fs/kernel/include/linux/ |
| H A D | filter.h | 231 .code = BPF_LD | BPF_SIZE(SIZE) | BPF_ABS, \ 241 .code = BPF_LD | BPF_SIZE(SIZE) | BPF_IND, \ 251 .code = BPF_LDX | BPF_SIZE(SIZE) | BPF_MEM, \ 261 .code = BPF_STX | BPF_SIZE(SIZE) | BPF_MEM, \ 271 .code = BPF_STX | BPF_SIZE(SIZE) | BPF_XADD, \ 281 .code = BPF_ST | BPF_SIZE(SIZE) | BPF_MEM, \ 446 const int __size = bpf_size_to_bytes(BPF_SIZE((insn)->code)); \
|
| /OK3568_Linux_fs/prebuilts/gcc/linux-x86/arm/gcc-arm-10.3-2021.07-x86_64-arm-none-linux-gnueabihf/arm-none-linux-gnueabihf/libc/usr/include/linux/ |
| H A D | bpf_common.h | 17 #define BPF_SIZE(code) ((code) & 0x18) macro
|
| /OK3568_Linux_fs/prebuilts/gcc/linux-x86/aarch64/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/aarch64-none-linux-gnu/libc/usr/include/linux/ |
| H A D | bpf_common.h | 17 #define BPF_SIZE(code) ((code) & 0x18) macro
|
| /OK3568_Linux_fs/kernel/tools/include/uapi/linux/ |
| H A D | bpf_common.h | 17 #define BPF_SIZE(code) ((code) & 0x18) macro
|
| /OK3568_Linux_fs/kernel/include/uapi/linux/ |
| H A D | bpf_common.h | 17 #define BPF_SIZE(code) ((code) & 0x18) macro
|
| /OK3568_Linux_fs/kernel/arch/x86/net/ |
| H A D | bpf_jit_comp32.c | 1743 switch (BPF_SIZE(code)) { in do_jit() 1758 EMIT(imm32, bpf_size_to_x86_bytes(BPF_SIZE(code))); in do_jit() 1760 if (BPF_SIZE(code) == BPF_DW) { in do_jit() 1791 switch (BPF_SIZE(code)) { in do_jit() 1808 if (BPF_SIZE(code) == BPF_DW) { in do_jit() 1844 switch (BPF_SIZE(code)) { in do_jit() 1868 switch (BPF_SIZE(code)) { in do_jit()
|
| H A D | bpf_jit_comp.c | 1165 EMIT(imm32, bpf_size_to_x86_bytes(BPF_SIZE(insn->code))); in do_jit() 1173 emit_stx(&prog, BPF_SIZE(insn->code), dst_reg, src_reg, insn->off); in do_jit() 1185 emit_ldx(&prog, BPF_SIZE(insn->code), dst_reg, src_reg, insn->off); in do_jit()
|
| /OK3568_Linux_fs/kernel/arch/arm64/net/ |
| H A D | bpf_jit_comp.c | 441 const bool isdw = BPF_SIZE(code) == BPF_DW; in build_insn() 813 switch (BPF_SIZE(code)) { in build_insn() 854 switch (BPF_SIZE(code)) { in build_insn() 876 switch (BPF_SIZE(code)) { in build_insn()
|
| /OK3568_Linux_fs/kernel/arch/mips/net/ |
| H A D | ebpf_jit.c | 1376 switch (BPF_SIZE(insn->code)) { in build_one_insn() 1409 switch (BPF_SIZE(insn->code)) { in build_one_insn() 1456 switch (BPF_SIZE(insn->code)) { in build_one_insn() 1486 switch (BPF_SIZE(insn->code)) { in build_one_insn() 1633 switch (BPF_SIZE(insn->code)) { in reg_val_propagate_range() 1666 switch (BPF_SIZE(insn->code)) { in reg_val_propagate_range()
|
| /OK3568_Linux_fs/kernel/net/core/ |
| H A D | filter.c | 469 int size = bpf_size_to_bytes(BPF_SIZE(fp->code)); in convert_bpf_ld_abs() 470 bool endian = BPF_SIZE(fp->code) == BPF_H || in convert_bpf_ld_abs() 471 BPF_SIZE(fp->code) == BPF_W; in convert_bpf_ld_abs() 490 *insn++ = BPF_LDX_MEM(BPF_SIZE(fp->code), BPF_REG_A, in convert_bpf_ld_abs() 495 *insn++ = BPF_LDX_MEM(BPF_SIZE(fp->code), BPF_REG_A, in convert_bpf_ld_abs() 514 switch (BPF_SIZE(fp->code)) { in convert_bpf_ld_abs() 7833 switch (BPF_SIZE(orig->code)) { in bpf_gen_ld_abs() 8430 *insn++ = BPF_STX_MEM(BPF_SIZE(si->code), si->dst_reg, in bpf_convert_ctx_access() 8433 *insn++ = BPF_LDX_MEM(BPF_SIZE(si->code), si->dst_reg, in bpf_convert_ctx_access() 8736 BPF_SIZE(si->code), si->dst_reg, si->src_reg, in bpf_sock_convert_ctx_access() [all …]
|
| /OK3568_Linux_fs/kernel/arch/arm/net/ |
| H A D | bpf_jit_32.c | 1622 emit_ldx_r(dst, rn, off, ctx, BPF_SIZE(code)); in build_insn() 1632 switch (BPF_SIZE(code)) { in build_insn() 1643 emit_str_r(dst_lo, tmp2, off, ctx, BPF_SIZE(code)); in build_insn() 1656 emit_str_r(dst_lo, rs, off, ctx, BPF_SIZE(code)); in build_insn()
|
| /OK3568_Linux_fs/kernel/drivers/net/ethernet/netronome/nfp/bpf/ |
| H A D | jit.c | 834 else if (BPF_SIZE(meta->insn.code) != BPF_DW) in nfp_cpp_memcpy() 839 switch (BPF_SIZE(meta->insn.code)) { in nfp_cpp_memcpy() 861 if (BPF_SIZE(meta->insn.code) != BPF_DW) in nfp_cpp_memcpy() 3976 if (!exp_mask[BPF_SIZE(insn.code)]) in nfp_bpf_opt_ld_mask() 3978 if (exp_mask[BPF_SIZE(insn.code)] != next.imm) in nfp_bpf_opt_ld_mask() 4007 if (BPF_SIZE(insn.code) != BPF_W) in nfp_bpf_opt_ld_shift() 4059 if (BPF_SIZE(ld->code) != BPF_SIZE(st->code)) in curr_pair_is_memcpy()
|
| /OK3568_Linux_fs/kernel/arch/sparc/net/ |
| H A D | bpf_jit_comp_64.c | 1263 switch (BPF_SIZE(code)) { in build_insn() 1308 switch (BPF_SIZE(code)) { in build_insn() 1346 switch (BPF_SIZE(code)) { in build_insn()
|
| /OK3568_Linux_fs/kernel/arch/riscv/net/ |
| H A D | bpf_jit_comp32.c | 1250 if (emit_load_r64(dst, src, off, ctx, BPF_SIZE(code))) in bpf_jit_emit_insn() 1273 if (emit_store_r64(dst, src, off, ctx, BPF_SIZE(code), in bpf_jit_emit_insn()
|
| H A D | bpf_jit_comp64.c | 1049 emit(BPF_SIZE(code) == BPF_W ? in bpf_jit_emit_insn()
|
| /OK3568_Linux_fs/kernel/tools/lib/bpf/ |
| H A D | libbpf.c | 5431 switch (BPF_SIZE(insn->code)) { in insn_bpf_size_to_bytes()
|