Home
last modified time | relevance | path

Searched refs:BPF_MEM (Results 1 – 25 of 38) sorted by relevance

12

/openbmc/linux/samples/seccomp/
H A Dbpf-helper.h187 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 Dbpf_jit_comp64.c824 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 Dbpf_jit_comp32.c1655 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 Dbpf_insn.h121 .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 Dbpf_jit_comp64.c758 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 Dbpf_jit_comp32.c810 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 Dbpf_jit_comp64.c1011 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 Dbpf_jit_comp32.c1420 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 Dbpf_jit.c875 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 Ddisasm.c205 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 Ddisasm.c205 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 Dfilter.h156 .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 Dbpf_common.h26 #define BPF_MEM 0x60 macro
/openbmc/linux/include/uapi/linux/
H A Dbpf_common.h26 #define BPF_MEM 0x60 macro
/openbmc/linux/drivers/net/ethernet/netronome/nfp/bpf/
H A Dmain.h378 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 Dbpf_jit_comp32.c897 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 Dbpf_jit_comp64.c1564 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 Dbpf_jit_comp_64.c1255 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 Dbpf_jit_comp.c1158 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 Dbpf_jit_comp.c1252 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 Dbpf_jit_32.c1602 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 Dbpf_jit_comp32.c1912 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 Dbpf_jit_comp.c1453 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 Dtest_bpf.c3482 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 Dbpf_dbg.c291 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()

12