/openbmc/linux/samples/seccomp/ |
H A D | bpf-helper.h | 187 BPF_STMT(BPF_LD+BPF_MEM, 1), \ 189 BPF_STMT(BPF_LD+BPF_MEM, 1) 194 BPF_STMT(BPF_LD+BPF_MEM, 0), \ 197 BPF_STMT(BPF_LD+BPF_MEM, 1), \ 199 BPF_STMT(BPF_LD+BPF_MEM, 1) 204 BPF_STMT(BPF_LD+BPF_MEM, 0), \ 209 BPF_STMT(BPF_LD+BPF_MEM, 1) 221 BPF_STMT(BPF_LD+BPF_MEM, 1) 233 BPF_STMT(BPF_LD+BPF_MEM, 1) 245 BPF_STMT(BPF_LD+BPF_MEM, 1) [all …]
|
/openbmc/linux/arch/mips/net/ |
H A D | bpf_jit_comp64.c | 824 case BPF_LDX | BPF_MEM | BPF_W: in build_insn() 825 case BPF_LDX | BPF_MEM | BPF_H: in build_insn() 826 case BPF_LDX | BPF_MEM | BPF_B: in build_insn() 827 case BPF_LDX | BPF_MEM | BPF_DW: in build_insn() 831 case BPF_ST | BPF_MEM | BPF_W: in build_insn() 832 case BPF_ST | BPF_MEM | BPF_H: in build_insn() 833 case BPF_ST | BPF_MEM | BPF_B: in build_insn() 834 case BPF_ST | BPF_MEM | BPF_DW: in build_insn() 839 case BPF_STX | BPF_MEM | BPF_W: in build_insn() 840 case BPF_STX | BPF_MEM | BPF_H: in build_insn() [all …]
|
H A D | bpf_jit_comp32.c | 1655 case BPF_LDX | BPF_MEM | BPF_W: in build_insn() 1656 case BPF_LDX | BPF_MEM | BPF_H: in build_insn() 1657 case BPF_LDX | BPF_MEM | BPF_B: in build_insn() 1658 case BPF_LDX | BPF_MEM | BPF_DW: in build_insn() 1662 case BPF_ST | BPF_MEM | BPF_W: in build_insn() 1663 case BPF_ST | BPF_MEM | BPF_H: in build_insn() 1664 case BPF_ST | BPF_MEM | BPF_B: in build_insn() 1665 case BPF_ST | BPF_MEM | BPF_DW: in build_insn() 1680 case BPF_STX | BPF_MEM | BPF_W: in build_insn() 1681 case BPF_STX | BPF_MEM | BPF_H: in build_insn() [all …]
|
/openbmc/linux/samples/bpf/ |
H A D | bpf_insn.h | 121 .code = BPF_LDX | BPF_SIZE(SIZE) | BPF_MEM, \ 131 .code = BPF_STX | BPF_SIZE(SIZE) | BPF_MEM, \ 167 .code = BPF_ST | BPF_SIZE(SIZE) | BPF_MEM, \
|
/openbmc/linux/arch/powerpc/net/ |
H A D | bpf_jit_comp64.c | 758 case BPF_STX | BPF_MEM | BPF_B: /* *(u8 *)(dst + off) = src */ in bpf_jit_build_body() 759 case BPF_ST | BPF_MEM | BPF_B: /* *(u8 *)(dst + off) = imm */ in bpf_jit_build_body() 766 case BPF_STX | BPF_MEM | BPF_H: /* (u16 *)(dst + off) = src */ in bpf_jit_build_body() 767 case BPF_ST | BPF_MEM | BPF_H: /* (u16 *)(dst + off) = imm */ in bpf_jit_build_body() 774 case BPF_STX | BPF_MEM | BPF_W: /* *(u32 *)(dst + off) = src */ in bpf_jit_build_body() 775 case BPF_ST | BPF_MEM | BPF_W: /* *(u32 *)(dst + off) = imm */ in bpf_jit_build_body() 782 case BPF_STX | BPF_MEM | BPF_DW: /* (u64 *)(dst + off) = src */ in bpf_jit_build_body() 895 case BPF_LDX | BPF_MEM | BPF_B: in bpf_jit_build_body() 898 case BPF_LDX | BPF_MEM | BPF_H: in bpf_jit_build_body() 901 case BPF_LDX | BPF_MEM | BPF_W: in bpf_jit_build_body() [all …]
|
H A D | bpf_jit_comp32.c | 810 case BPF_STX | BPF_MEM | BPF_B: /* *(u8 *)(dst + off) = src */ in bpf_jit_build_body() 813 case BPF_ST | BPF_MEM | BPF_B: /* *(u8 *)(dst + off) = imm */ in bpf_jit_build_body() 817 case BPF_STX | BPF_MEM | BPF_H: /* (u16 *)(dst + off) = src */ in bpf_jit_build_body() 820 case BPF_ST | BPF_MEM | BPF_H: /* (u16 *)(dst + off) = imm */ in bpf_jit_build_body() 824 case BPF_STX | BPF_MEM | BPF_W: /* *(u32 *)(dst + off) = src */ in bpf_jit_build_body() 827 case BPF_ST | BPF_MEM | BPF_W: /* *(u32 *)(dst + off) = imm */ in bpf_jit_build_body() 831 case BPF_STX | BPF_MEM | BPF_DW: /* (u64 *)(dst + off) = src */ in bpf_jit_build_body() 835 case BPF_ST | BPF_MEM | BPF_DW: /* *(u64 *)(dst + off) = imm */ in bpf_jit_build_body() 931 case BPF_LDX | BPF_MEM | BPF_B: /* dst = *(u8 *)(ul) (src + off) */ in bpf_jit_build_body() 933 case BPF_LDX | BPF_MEM | BPF_H: /* dst = *(u16 *)(ul) (src + off) */ in bpf_jit_build_body() [all …]
|
/openbmc/linux/arch/parisc/net/ |
H A D | bpf_jit_comp64.c | 1011 case BPF_LDX | BPF_MEM | BPF_B: in bpf_jit_emit_insn() 1012 case BPF_LDX | BPF_MEM | BPF_H: in bpf_jit_emit_insn() 1013 case BPF_LDX | BPF_MEM | BPF_W: in bpf_jit_emit_insn() 1014 case BPF_LDX | BPF_MEM | BPF_DW: in bpf_jit_emit_insn() 1068 case BPF_ST | BPF_MEM | BPF_B: in bpf_jit_emit_insn() 1069 case BPF_ST | BPF_MEM | BPF_H: in bpf_jit_emit_insn() 1070 case BPF_ST | BPF_MEM | BPF_W: in bpf_jit_emit_insn() 1071 case BPF_ST | BPF_MEM | BPF_DW: in bpf_jit_emit_insn() 1073 case BPF_STX | BPF_MEM | BPF_B: in bpf_jit_emit_insn() 1074 case BPF_STX | BPF_MEM | BPF_H: in bpf_jit_emit_insn() [all …]
|
H A D | bpf_jit_comp32.c | 1420 case BPF_LDX | BPF_MEM | BPF_B: in bpf_jit_emit_insn() 1421 case BPF_LDX | BPF_MEM | BPF_H: in bpf_jit_emit_insn() 1422 case BPF_LDX | BPF_MEM | BPF_W: in bpf_jit_emit_insn() 1423 case BPF_LDX | BPF_MEM | BPF_DW: in bpf_jit_emit_insn() 1433 case BPF_ST | BPF_MEM | BPF_B: in bpf_jit_emit_insn() 1434 case BPF_ST | BPF_MEM | BPF_H: in bpf_jit_emit_insn() 1435 case BPF_ST | BPF_MEM | BPF_W: in bpf_jit_emit_insn() 1436 case BPF_ST | BPF_MEM | BPF_DW: in bpf_jit_emit_insn() 1438 case BPF_STX | BPF_MEM | BPF_B: in bpf_jit_emit_insn() 1439 case BPF_STX | BPF_MEM | BPF_H: in bpf_jit_emit_insn() [all …]
|
/openbmc/linux/arch/loongarch/net/ |
H A D | bpf_jit.c | 875 case BPF_LDX | BPF_MEM | BPF_B: in build_insn() 876 case BPF_LDX | BPF_MEM | BPF_H: in build_insn() 877 case BPF_LDX | BPF_MEM | BPF_W: in build_insn() 878 case BPF_LDX | BPF_MEM | BPF_DW: in build_insn() 922 case BPF_ST | BPF_MEM | BPF_B: in build_insn() 923 case BPF_ST | BPF_MEM | BPF_H: in build_insn() 924 case BPF_ST | BPF_MEM | BPF_W: in build_insn() 925 case BPF_ST | BPF_MEM | BPF_DW: in build_insn() 971 case BPF_STX | BPF_MEM | BPF_B: in build_insn() 972 case BPF_STX | BPF_MEM | BPF_H: in build_insn() [all …]
|
/openbmc/linux/tools/testing/selftests/bpf/ |
H A D | disasm.c | 205 if (BPF_MODE(insn->code) == BPF_MEM) in print_bpf_insn() 250 if (BPF_MODE(insn->code) == BPF_MEM) { in print_bpf_insn() 262 if (BPF_MODE(insn->code) != BPF_MEM && BPF_MODE(insn->code) != BPF_MEMSX) { in print_bpf_insn() 268 BPF_MODE(insn->code) == BPF_MEM ? in print_bpf_insn()
|
/openbmc/linux/kernel/bpf/ |
H A D | disasm.c | 205 if (BPF_MODE(insn->code) == BPF_MEM) in print_bpf_insn() 250 if (BPF_MODE(insn->code) == BPF_MEM) { in print_bpf_insn() 262 if (BPF_MODE(insn->code) != BPF_MEM && BPF_MODE(insn->code) != BPF_MEMSX) { in print_bpf_insn() 268 BPF_MODE(insn->code) == BPF_MEM ? in print_bpf_insn()
|
/openbmc/linux/tools/include/linux/ |
H A D | filter.h | 156 .code = BPF_LDX | BPF_SIZE(SIZE) | BPF_MEM, \ 166 .code = BPF_STX | BPF_SIZE(SIZE) | BPF_MEM, \ 202 .code = BPF_ST | BPF_SIZE(SIZE) | BPF_MEM, \
|
/openbmc/linux/tools/include/uapi/linux/ |
H A D | bpf_common.h | 26 #define BPF_MEM 0x60 macro
|
/openbmc/linux/include/uapi/linux/ |
H A D | bpf_common.h | 26 #define BPF_MEM 0x60 macro
|
/openbmc/linux/drivers/net/ethernet/netronome/nfp/bpf/ |
H A D | main.h | 378 return (meta->insn.code & ~BPF_SIZE_MASK) == (BPF_LDX | BPF_MEM); in is_mbpf_load() 398 return (meta->insn.code & ~BPF_SIZE_MASK) == (BPF_STX | BPF_MEM); in is_mbpf_store() 423 return BPF_CLASS(code) == BPF_ST && BPF_MODE(code) == BPF_MEM; in is_mbpf_classic_store()
|
/openbmc/linux/arch/riscv/net/ |
H A D | bpf_jit_comp32.c | 897 case BPF_MEM: in emit_store_r64() 1244 case BPF_LDX | BPF_MEM | BPF_B: in bpf_jit_emit_insn() 1245 case BPF_LDX | BPF_MEM | BPF_H: in bpf_jit_emit_insn() 1246 case BPF_LDX | BPF_MEM | BPF_W: in bpf_jit_emit_insn() 1256 case BPF_ST | BPF_MEM | BPF_B: in bpf_jit_emit_insn() 1257 case BPF_ST | BPF_MEM | BPF_H: in bpf_jit_emit_insn() 1258 case BPF_ST | BPF_MEM | BPF_W: in bpf_jit_emit_insn() 1259 case BPF_ST | BPF_MEM | BPF_DW: in bpf_jit_emit_insn() 1261 case BPF_STX | BPF_MEM | BPF_B: in bpf_jit_emit_insn() 1262 case BPF_STX | BPF_MEM | BPF_H: in bpf_jit_emit_insn() [all …]
|
H A D | bpf_jit_comp64.c | 1564 case BPF_LDX | BPF_MEM | BPF_B: in bpf_jit_emit_insn() 1565 case BPF_LDX | BPF_MEM | BPF_H: in bpf_jit_emit_insn() 1566 case BPF_LDX | BPF_MEM | BPF_W: in bpf_jit_emit_insn() 1567 case BPF_LDX | BPF_MEM | BPF_DW: in bpf_jit_emit_insn() 1676 case BPF_ST | BPF_MEM | BPF_B: in bpf_jit_emit_insn() 1688 case BPF_ST | BPF_MEM | BPF_H: in bpf_jit_emit_insn() 1699 case BPF_ST | BPF_MEM | BPF_W: in bpf_jit_emit_insn() 1710 case BPF_ST | BPF_MEM | BPF_DW: in bpf_jit_emit_insn() 1723 case BPF_STX | BPF_MEM | BPF_B: in bpf_jit_emit_insn() 1733 case BPF_STX | BPF_MEM | BPF_H: in bpf_jit_emit_insn() [all …]
|
/openbmc/linux/arch/sparc/net/ |
H A D | bpf_jit_comp_64.c | 1255 case BPF_LDX | BPF_MEM | BPF_W: in build_insn() 1256 case BPF_LDX | BPF_MEM | BPF_H: in build_insn() 1257 case BPF_LDX | BPF_MEM | BPF_B: in build_insn() 1258 case BPF_LDX | BPF_MEM | BPF_DW: { in build_insn() 1294 case BPF_ST | BPF_MEM | BPF_W: in build_insn() 1295 case BPF_ST | BPF_MEM | BPF_H: in build_insn() 1296 case BPF_ST | BPF_MEM | BPF_B: in build_insn() 1297 case BPF_ST | BPF_MEM | BPF_DW: { in build_insn() 1336 case BPF_STX | BPF_MEM | BPF_W: in build_insn() 1337 case BPF_STX | BPF_MEM | BPF_H: in build_insn() [all …]
|
/openbmc/linux/arch/arm64/net/ |
H A D | bpf_jit_comp.c | 1158 case BPF_LDX | BPF_MEM | BPF_W: in build_insn() 1159 case BPF_LDX | BPF_MEM | BPF_H: in build_insn() 1160 case BPF_LDX | BPF_MEM | BPF_B: in build_insn() 1161 case BPF_LDX | BPF_MEM | BPF_DW: in build_insn() 1254 case BPF_ST | BPF_MEM | BPF_W: in build_insn() 1255 case BPF_ST | BPF_MEM | BPF_H: in build_insn() 1256 case BPF_ST | BPF_MEM | BPF_B: in build_insn() 1257 case BPF_ST | BPF_MEM | BPF_DW: in build_insn() 1304 case BPF_STX | BPF_MEM | BPF_W: in build_insn() 1305 case BPF_STX | BPF_MEM | BPF_H: in build_insn() [all …]
|
/openbmc/linux/arch/s390/net/ |
H A D | bpf_jit_comp.c | 1252 case BPF_STX | BPF_MEM | BPF_B: /* *(u8 *)(dst + off) = src_reg */ in bpf_jit_insn() 1257 case BPF_STX | BPF_MEM | BPF_H: /* (u16 *)(dst + off) = src */ in bpf_jit_insn() 1262 case BPF_STX | BPF_MEM | BPF_W: /* *(u32 *)(dst + off) = src */ in bpf_jit_insn() 1267 case BPF_STX | BPF_MEM | BPF_DW: /* (u64 *)(dst + off) = src */ in bpf_jit_insn() 1272 case BPF_ST | BPF_MEM | BPF_B: /* *(u8 *)(dst + off) = imm */ in bpf_jit_insn() 1279 case BPF_ST | BPF_MEM | BPF_H: /* (u16 *)(dst + off) = imm */ in bpf_jit_insn() 1286 case BPF_ST | BPF_MEM | BPF_W: /* *(u32 *)(dst + off) = imm */ in bpf_jit_insn() 1293 case BPF_ST | BPF_MEM | BPF_DW: /* *(u64 *)(dst + off) = imm */ in bpf_jit_insn() 1373 case BPF_LDX | BPF_MEM | BPF_B: /* dst = *(u8 *)(ul) (src + off) */ in bpf_jit_insn() 1381 case BPF_LDX | BPF_MEM | BPF_H: /* dst = *(u16 *)(ul) (src + off) */ in bpf_jit_insn() [all …]
|
/openbmc/linux/arch/arm/net/ |
H A D | bpf_jit_32.c | 1602 case BPF_LDX | BPF_MEM | BPF_W: in build_insn() 1603 case BPF_LDX | BPF_MEM | BPF_H: in build_insn() 1604 case BPF_LDX | BPF_MEM | BPF_B: in build_insn() 1605 case BPF_LDX | BPF_MEM | BPF_DW: in build_insn() 1613 case BPF_ST | BPF_MEM | BPF_W: in build_insn() 1614 case BPF_ST | BPF_MEM | BPF_H: in build_insn() 1615 case BPF_ST | BPF_MEM | BPF_B: in build_insn() 1616 case BPF_ST | BPF_MEM | BPF_DW: in build_insn() 1635 case BPF_STX | BPF_MEM | BPF_W: in build_insn() 1636 case BPF_STX | BPF_MEM | BPF_H: in build_insn() [all …]
|
/openbmc/linux/arch/x86/net/ |
H A D | bpf_jit_comp32.c | 1912 case BPF_ST | BPF_MEM | BPF_H: in do_jit() 1913 case BPF_ST | BPF_MEM | BPF_B: in do_jit() 1914 case BPF_ST | BPF_MEM | BPF_W: in do_jit() 1915 case BPF_ST | BPF_MEM | BPF_DW: in do_jit() 1952 case BPF_STX | BPF_MEM | BPF_B: in do_jit() 1953 case BPF_STX | BPF_MEM | BPF_H: in do_jit() 1954 case BPF_STX | BPF_MEM | BPF_W: in do_jit() 1955 case BPF_STX | BPF_MEM | BPF_DW: in do_jit() 2013 case BPF_LDX | BPF_MEM | BPF_B: in do_jit() 2014 case BPF_LDX | BPF_MEM | BPF_H: in do_jit() [all …]
|
H A D | bpf_jit_comp.c | 1453 case BPF_ST | BPF_MEM | BPF_B: in do_jit() 1459 case BPF_ST | BPF_MEM | BPF_H: in do_jit() 1465 case BPF_ST | BPF_MEM | BPF_W: in do_jit() 1471 case BPF_ST | BPF_MEM | BPF_DW: in do_jit() 1483 case BPF_STX | BPF_MEM | BPF_B: in do_jit() 1484 case BPF_STX | BPF_MEM | BPF_H: in do_jit() 1485 case BPF_STX | BPF_MEM | BPF_W: in do_jit() 1486 case BPF_STX | BPF_MEM | BPF_DW: in do_jit() 1491 case BPF_LDX | BPF_MEM | BPF_B: in do_jit() 1493 case BPF_LDX | BPF_MEM | BPF_H: in do_jit() [all …]
|
/openbmc/linux/lib/ |
H A D | test_bpf.c | 3482 BPF_STMT(BPF_LDX | BPF_MEM, 1), 3483 BPF_STMT(BPF_LD | BPF_MEM, 2), 3666 BPF_STMT(BPF_LD | BPF_MEM, 1), 3674 BPF_STMT(BPF_LD | BPF_MEM, 5), 4692 BPF_STMT(BPF_LDX | BPF_MEM, 0), 4697 BPF_STMT(BPF_LDX | BPF_MEM, 1), 4702 BPF_STMT(BPF_LDX | BPF_MEM, 2), 4707 BPF_STMT(BPF_LDX | BPF_MEM, 3), 4712 BPF_STMT(BPF_LDX | BPF_MEM, 4), 4717 BPF_STMT(BPF_LDX | BPF_MEM, 5), [all …]
|
/openbmc/linux/tools/bpf/ |
H A D | bpf_dbg.c | 291 case BPF_LD | BPF_MEM: in bpf_disasm() 295 case BPF_LDX | BPF_MEM: in bpf_disasm() 724 case BPF_LD | BPF_MEM: in bpf_single_step() 727 case BPF_LDX | BPF_MEM: in bpf_single_step()
|