Home
last modified time | relevance | path

Searched refs:BPF_ALU64 (Results 1 – 25 of 34) sorted by relevance

12

/openbmc/linux/arch/powerpc/net/
H A Dbpf_jit_comp64.c419 case BPF_ALU64 | BPF_ADD | BPF_X: /* dst += src */ in bpf_jit_build_body()
423 case BPF_ALU64 | BPF_SUB | BPF_X: /* dst -= src */ in bpf_jit_build_body()
427 case BPF_ALU64 | BPF_ADD | BPF_K: /* dst += imm */ in bpf_jit_build_body()
438 case BPF_ALU64 | BPF_SUB | BPF_K: /* dst -= imm */ in bpf_jit_build_body()
449 case BPF_ALU64 | BPF_MUL | BPF_X: /* dst *= src */ in bpf_jit_build_body()
456 case BPF_ALU64 | BPF_MUL | BPF_K: /* dst *= imm */ in bpf_jit_build_body()
510 case BPF_ALU64: in bpf_jit_build_body()
521 case BPF_ALU64 | BPF_NEG: /* dst = -dst */ in bpf_jit_build_body()
548 if (imm < 0 && BPF_CLASS(code) == BPF_ALU64) { in bpf_jit_build_body()
565 if (imm < 0 && BPF_CLASS(code) == BPF_ALU64) { in bpf_jit_build_body()
[all …]
H A Dbpf_jit_comp32.c355 case BPF_ALU64 | BPF_ADD | BPF_X: /* dst += src */ in bpf_jit_build_body()
362 case BPF_ALU64 | BPF_SUB | BPF_X: /* dst -= src */ in bpf_jit_build_body()
379 case BPF_ALU64 | BPF_SUB | BPF_K: /* dst -= imm */ in bpf_jit_build_body()
382 case BPF_ALU64 | BPF_ADD | BPF_K: /* dst += imm */ in bpf_jit_build_body()
399 case BPF_ALU64 | BPF_MUL | BPF_X: /* dst *= src */ in bpf_jit_build_body()
425 case BPF_ALU64 | BPF_MUL | BPF_K: /* dst *= imm */ in bpf_jit_build_body()
459 case BPF_ALU64 | BPF_DIV | BPF_X: /* dst /= src */ in bpf_jit_build_body()
461 case BPF_ALU64 | BPF_MOD | BPF_X: /* dst %= src */ in bpf_jit_build_body()
492 case BPF_ALU64 | BPF_MOD | BPF_K: /* dst %= imm */ in bpf_jit_build_body()
530 case BPF_ALU64 | BPF_NEG: /* dst = -dst */ in bpf_jit_build_body()
[all …]
/openbmc/linux/arch/mips/net/
H A Dbpf_jit_comp64.c740 case BPF_ALU64 | BPF_MOV | BPF_K: in build_insn()
744 case BPF_ALU64 | BPF_MOV | BPF_X: in build_insn()
748 case BPF_ALU64 | BPF_NEG: in build_insn()
762 case BPF_ALU64 | BPF_AND | BPF_K: in build_insn()
763 case BPF_ALU64 | BPF_OR | BPF_K: in build_insn()
764 case BPF_ALU64 | BPF_XOR | BPF_K: in build_insn()
765 case BPF_ALU64 | BPF_LSH | BPF_K: in build_insn()
766 case BPF_ALU64 | BPF_RSH | BPF_K: in build_insn()
768 case BPF_ALU64 | BPF_ADD | BPF_K: in build_insn()
769 case BPF_ALU64 | BPF_SUB | BPF_K: in build_insn()
[all …]
H A Dbpf_jit_comp32.c1553 case BPF_ALU64 | BPF_MOV | BPF_K: in build_insn()
1557 case BPF_ALU64 | BPF_MOV | BPF_X: in build_insn()
1562 case BPF_ALU64 | BPF_NEG: in build_insn()
1566 case BPF_ALU64 | BPF_AND | BPF_K: in build_insn()
1573 case BPF_ALU64 | BPF_OR | BPF_K: in build_insn()
1574 case BPF_ALU64 | BPF_XOR | BPF_K: in build_insn()
1575 case BPF_ALU64 | BPF_ADD | BPF_K: in build_insn()
1576 case BPF_ALU64 | BPF_SUB | BPF_K: in build_insn()
1583 case BPF_ALU64 | BPF_LSH | BPF_K: in build_insn()
1584 case BPF_ALU64 | BPF_RSH | BPF_K: in build_insn()
[all …]
/openbmc/linux/arch/parisc/net/
H A Dbpf_jit_comp64.c609 case BPF_ALU64 | BPF_MOV | BPF_X: in bpf_jit_emit_insn()
623 case BPF_ALU64 | BPF_ADD | BPF_X: in bpf_jit_emit_insn()
629 case BPF_ALU64 | BPF_SUB | BPF_X: in bpf_jit_emit_insn()
635 case BPF_ALU64 | BPF_AND | BPF_X: in bpf_jit_emit_insn()
641 case BPF_ALU64 | BPF_OR | BPF_X: in bpf_jit_emit_insn()
647 case BPF_ALU64 | BPF_XOR | BPF_X: in bpf_jit_emit_insn()
653 case BPF_ALU64 | BPF_MUL | BPF_K: in bpf_jit_emit_insn()
658 case BPF_ALU64 | BPF_MUL | BPF_X: in bpf_jit_emit_insn()
664 case BPF_ALU64 | BPF_DIV | BPF_K: in bpf_jit_emit_insn()
721 case BPF_ALU64 | BPF_NEG: in bpf_jit_emit_insn()
[all …]
H A Dbpf_jit_comp32.c1138 case BPF_ALU64 | BPF_MOV | BPF_X: in bpf_jit_emit_insn()
1140 case BPF_ALU64 | BPF_ADD | BPF_X: in bpf_jit_emit_insn()
1141 case BPF_ALU64 | BPF_ADD | BPF_K: in bpf_jit_emit_insn()
1143 case BPF_ALU64 | BPF_SUB | BPF_X: in bpf_jit_emit_insn()
1144 case BPF_ALU64 | BPF_SUB | BPF_K: in bpf_jit_emit_insn()
1146 case BPF_ALU64 | BPF_AND | BPF_X: in bpf_jit_emit_insn()
1147 case BPF_ALU64 | BPF_OR | BPF_X: in bpf_jit_emit_insn()
1148 case BPF_ALU64 | BPF_XOR | BPF_X: in bpf_jit_emit_insn()
1150 case BPF_ALU64 | BPF_MUL | BPF_X: in bpf_jit_emit_insn()
1170 case BPF_ALU64 | BPF_NEG: in bpf_jit_emit_insn()
[all …]
/openbmc/linux/arch/loongarch/net/
H A Dbpf_jit.c469 case BPF_ALU64 | BPF_MOV | BPF_X: in build_insn()
476 case BPF_ALU64 | BPF_MOV | BPF_K: in build_insn()
482 case BPF_ALU64 | BPF_ADD | BPF_X: in build_insn()
489 case BPF_ALU64 | BPF_ADD | BPF_K: in build_insn()
501 case BPF_ALU64 | BPF_SUB | BPF_X: in build_insn()
508 case BPF_ALU64 | BPF_SUB | BPF_K: in build_insn()
520 case BPF_ALU64 | BPF_MUL | BPF_X: in build_insn()
527 case BPF_ALU64 | BPF_MUL | BPF_K: in build_insn()
573 case BPF_ALU64 | BPF_NEG: in build_insn()
600 case BPF_ALU64 | BPF_OR | BPF_X: in build_insn()
[all …]
/openbmc/linux/arch/x86/net/
H A Dbpf_jit_comp.c1127 case BPF_ALU64 | BPF_ADD | BPF_X: in do_jit()
1128 case BPF_ALU64 | BPF_SUB | BPF_X: in do_jit()
1129 case BPF_ALU64 | BPF_AND | BPF_X: in do_jit()
1130 case BPF_ALU64 | BPF_OR | BPF_X: in do_jit()
1131 case BPF_ALU64 | BPF_XOR | BPF_X: in do_jit()
1138 case BPF_ALU64 | BPF_MOV | BPF_X: in do_jit()
1152 case BPF_ALU64 | BPF_NEG: in do_jit()
1163 case BPF_ALU64 | BPF_ADD | BPF_K: in do_jit()
1164 case BPF_ALU64 | BPF_SUB | BPF_K: in do_jit()
1165 case BPF_ALU64 | BPF_AND | BPF_K: in do_jit()
[all …]
H A Dbpf_jit_comp32.c1691 case BPF_ALU64 | BPF_MOV | BPF_K: in do_jit()
1692 case BPF_ALU64 | BPF_MOV | BPF_X: in do_jit()
1728 case BPF_ALU64 | BPF_ADD | BPF_K: in do_jit()
1729 case BPF_ALU64 | BPF_ADD | BPF_X: in do_jit()
1730 case BPF_ALU64 | BPF_SUB | BPF_K: in do_jit()
1731 case BPF_ALU64 | BPF_SUB | BPF_X: in do_jit()
1732 case BPF_ALU64 | BPF_OR | BPF_K: in do_jit()
1733 case BPF_ALU64 | BPF_OR | BPF_X: in do_jit()
1734 case BPF_ALU64 | BPF_AND | BPF_K: in do_jit()
1735 case BPF_ALU64 | BPF_AND | BPF_X: in do_jit()
[all …]
/openbmc/linux/arch/sparc/net/
H A Dbpf_jit_comp_64.c914 case BPF_ALU64 | BPF_MOV | BPF_X: in build_insn()
919 case BPF_ALU64 | BPF_ADD | BPF_X: in build_insn()
923 case BPF_ALU64 | BPF_SUB | BPF_X: in build_insn()
927 case BPF_ALU64 | BPF_AND | BPF_X: in build_insn()
931 case BPF_ALU64 | BPF_OR | BPF_X: in build_insn()
935 case BPF_ALU64 | BPF_XOR | BPF_X: in build_insn()
941 case BPF_ALU64 | BPF_MUL | BPF_X: in build_insn()
950 case BPF_ALU64 | BPF_DIV | BPF_X: in build_insn()
977 case BPF_ALU64 | BPF_LSH | BPF_X: in build_insn()
997 case BPF_ALU64 | BPF_NEG: in build_insn()
[all …]
/openbmc/linux/samples/bpf/
H A Dbpf_insn.h12 .code = BPF_ALU64 | BPF_OP(OP) | BPF_X, \
30 .code = BPF_ALU64 | BPF_OP(OP) | BPF_K, \
48 .code = BPF_ALU64 | BPF_MOV | BPF_X, \
66 .code = BPF_ALU64 | BPF_MOV | BPF_K, \
/openbmc/linux/arch/riscv/net/
H A Dbpf_jit_comp64.c1085 case BPF_ALU64 | BPF_MOV | BPF_X: in bpf_jit_emit_insn()
1110 case BPF_ALU64 | BPF_ADD | BPF_X: in bpf_jit_emit_insn()
1116 case BPF_ALU64 | BPF_SUB | BPF_X: in bpf_jit_emit_insn()
1126 case BPF_ALU64 | BPF_AND | BPF_X: in bpf_jit_emit_insn()
1132 case BPF_ALU64 | BPF_OR | BPF_X: in bpf_jit_emit_insn()
1138 case BPF_ALU64 | BPF_XOR | BPF_X: in bpf_jit_emit_insn()
1144 case BPF_ALU64 | BPF_MUL | BPF_X: in bpf_jit_emit_insn()
1150 case BPF_ALU64 | BPF_DIV | BPF_X: in bpf_jit_emit_insn()
1159 case BPF_ALU64 | BPF_MOD | BPF_X: in bpf_jit_emit_insn()
1188 case BPF_ALU64 | BPF_NEG: in bpf_jit_emit_insn()
[all …]
H A Dbpf_jit_comp32.c970 case BPF_ALU64 | BPF_MOV | BPF_X: in bpf_jit_emit_insn()
972 case BPF_ALU64 | BPF_ADD | BPF_X: in bpf_jit_emit_insn()
973 case BPF_ALU64 | BPF_ADD | BPF_K: in bpf_jit_emit_insn()
975 case BPF_ALU64 | BPF_SUB | BPF_X: in bpf_jit_emit_insn()
976 case BPF_ALU64 | BPF_SUB | BPF_K: in bpf_jit_emit_insn()
978 case BPF_ALU64 | BPF_AND | BPF_X: in bpf_jit_emit_insn()
979 case BPF_ALU64 | BPF_OR | BPF_X: in bpf_jit_emit_insn()
980 case BPF_ALU64 | BPF_XOR | BPF_X: in bpf_jit_emit_insn()
982 case BPF_ALU64 | BPF_MUL | BPF_X: in bpf_jit_emit_insn()
995 case BPF_ALU64 | BPF_NEG: in bpf_jit_emit_insn()
[all …]
/openbmc/linux/tools/include/linux/
H A Dfilter.h36 .code = BPF_ALU64 | BPF_OP(OP) | BPF_X, \
54 .code = BPF_ALU64 | BPF_OP(OP) | BPF_K, \
82 .code = BPF_ALU64 | BPF_MOV | BPF_X, \
100 .code = BPF_ALU64 | BPF_MOV | BPF_K, \
118 .code = BPF_ALU64 | BPF_MOV | BPF_SRC(TYPE), \
/openbmc/linux/arch/s390/net/
H A Dbpf_jit_comp.c804 case BPF_ALU64 | BPF_MOV | BPF_X: /* dst = src */ in bpf_jit_insn()
814 case BPF_ALU64 | BPF_MOV | BPF_K: /* dst = imm */ in bpf_jit_insn()
840 case BPF_ALU64 | BPF_ADD | BPF_X: /* dst = dst + src */ in bpf_jit_insn()
851 case BPF_ALU64 | BPF_ADD | BPF_K: /* dst = dst + imm */ in bpf_jit_insn()
865 case BPF_ALU64 | BPF_SUB | BPF_X: /* dst = dst - src */ in bpf_jit_insn()
876 case BPF_ALU64 | BPF_SUB | BPF_K: /* dst = dst - imm */ in bpf_jit_insn()
895 case BPF_ALU64 | BPF_MUL | BPF_X: /* dst = dst * src */ in bpf_jit_insn()
906 case BPF_ALU64 | BPF_MUL | BPF_K: /* dst = dst * imm */ in bpf_jit_insn()
1053 case BPF_ALU64 | BPF_OR | BPF_X: /* dst = dst | src */ in bpf_jit_insn()
1062 case BPF_ALU64 | BPF_OR | BPF_K: /* dst = dst | imm */ in bpf_jit_insn()
[all …]
/openbmc/linux/arch/arm64/net/
H A Dbpf_jit_comp.c788 case BPF_ALU64 | BPF_MOV | BPF_X: in build_insn()
806 case BPF_ALU64 | BPF_ADD | BPF_X: in build_insn()
810 case BPF_ALU64 | BPF_SUB | BPF_X: in build_insn()
814 case BPF_ALU64 | BPF_AND | BPF_X: in build_insn()
818 case BPF_ALU64 | BPF_OR | BPF_X: in build_insn()
822 case BPF_ALU64 | BPF_XOR | BPF_X: in build_insn()
826 case BPF_ALU64 | BPF_MUL | BPF_X: in build_insn()
830 case BPF_ALU64 | BPF_DIV | BPF_X: in build_insn()
858 case BPF_ALU64 | BPF_NEG: in build_insn()
941 case BPF_ALU64 | BPF_OR | BPF_K: in build_insn()
[all …]
/openbmc/linux/arch/arm/net/
H A Dbpf_jit_32.c1379 case BPF_ALU64 | BPF_MOV | BPF_K: in build_insn()
1380 case BPF_ALU64 | BPF_MOV | BPF_X: in build_insn()
1419 case BPF_ALU64 | BPF_ADD | BPF_K: in build_insn()
1420 case BPF_ALU64 | BPF_ADD | BPF_X: in build_insn()
1421 case BPF_ALU64 | BPF_SUB | BPF_K: in build_insn()
1422 case BPF_ALU64 | BPF_SUB | BPF_X: in build_insn()
1423 case BPF_ALU64 | BPF_OR | BPF_K: in build_insn()
1424 case BPF_ALU64 | BPF_OR | BPF_X: in build_insn()
1425 case BPF_ALU64 | BPF_AND | BPF_K: in build_insn()
1426 case BPF_ALU64 | BPF_AND | BPF_X: in build_insn()
[all …]
/openbmc/linux/Documentation/bpf/standardization/
H A Dinstruction-set.rst185 BPF_ALU64 0x07 64-bit arithmetic operations `Arithmetic and jump instructions`_
191 For arithmetic and jump instructions (``BPF_ALU``, ``BPF_ALU64``, ``BPF_JMP`` and
249 If execution would result in modulo by zero, for ``BPF_ALU64`` the value of
259 ``BPF_ADD | BPF_X | BPF_ALU64`` means::
267 ``BPF_XOR | BPF_K | BPF_ALU64`` means::
277 'imm' is interpreted as a 32-bit unsigned value. For ``BPF_ALU64``,
282 'imm' is interpreted as a 32-bit signed value. For ``BPF_ALU64``, 'imm'
298 The byte swap instructions use instruction classes of ``BPF_ALU`` and ``BPF_ALU64``
306 ``BPF_ALU64``, the 1-bit source operand field in the opcode is reserved
314 BPF_ALU64 Reserved 0x00 do byte swap unconditionally
[all …]
/openbmc/linux/drivers/net/ethernet/netronome/nfp/bpf/
H A Djit.c3422 [BPF_ALU64 | BPF_MOV | BPF_X] = mov_reg64,
3423 [BPF_ALU64 | BPF_MOV | BPF_K] = mov_imm64,
3424 [BPF_ALU64 | BPF_XOR | BPF_X] = xor_reg64,
3425 [BPF_ALU64 | BPF_XOR | BPF_K] = xor_imm64,
3426 [BPF_ALU64 | BPF_AND | BPF_X] = and_reg64,
3427 [BPF_ALU64 | BPF_AND | BPF_K] = and_imm64,
3428 [BPF_ALU64 | BPF_OR | BPF_X] = or_reg64,
3429 [BPF_ALU64 | BPF_OR | BPF_K] = or_imm64,
3430 [BPF_ALU64 | BPF_ADD | BPF_X] = add_reg64,
3431 [BPF_ALU64 | BPF_ADD | BPF_K] = add_imm64,
[all …]
/openbmc/linux/tools/testing/selftests/bpf/
H A Ddisasm.c70 [BPF_ALU64] = "alu64",
176 if (class == BPF_ALU || class == BPF_ALU64) { in print_bpf_insn()
178 if (class == BPF_ALU64) in print_bpf_insn()
/openbmc/linux/kernel/bpf/
H A Ddisasm.c70 [BPF_ALU64] = "alu64",
176 if (class == BPF_ALU || class == BPF_ALU64) { in print_bpf_insn()
178 if (class == BPF_ALU64) in print_bpf_insn()
H A Dcore.c1280 from->code == (BPF_ALU64 | BPF_MOV | BPF_K))) { in bpf_jit_blind_insn()
1300 case BPF_ALU64 | BPF_ADD | BPF_K: in bpf_jit_blind_insn()
1301 case BPF_ALU64 | BPF_SUB | BPF_K: in bpf_jit_blind_insn()
1302 case BPF_ALU64 | BPF_AND | BPF_K: in bpf_jit_blind_insn()
1303 case BPF_ALU64 | BPF_OR | BPF_K: in bpf_jit_blind_insn()
1304 case BPF_ALU64 | BPF_XOR | BPF_K: in bpf_jit_blind_insn()
1305 case BPF_ALU64 | BPF_MUL | BPF_K: in bpf_jit_blind_insn()
1306 case BPF_ALU64 | BPF_MOV | BPF_K: in bpf_jit_blind_insn()
1307 case BPF_ALU64 | BPF_DIV | BPF_K: in bpf_jit_blind_insn()
1308 case BPF_ALU64 | BPF_MOD | BPF_K: in bpf_jit_blind_insn()
/openbmc/linux/tools/testing/selftests/net/
H A Dreuseport_bpf.c100 { BPF_ALU64 | BPF_MOV | BPF_X, BPF_REG_6, BPF_REG_1, 0, 0 }, in attach_ebpf()
104 { BPF_ALU64 | BPF_MOD | BPF_K, BPF_REG_0, 0, 0, mod }, in attach_ebpf()
343 { BPF_ALU64 | BPF_MOV | BPF_K, BPF_REG_0, 0, 0, 10 }, in test_filter_no_reuseport()
/openbmc/linux/tools/testing/selftests/bpf/verifier/
H A Dbasic_instr.c183 .code = BPF_ALU64 | BPF_END | BPF_TO_BE,
/openbmc/linux/include/linux/
H A Dfilter.h98 .code = BPF_ALU64 | BPF_OP(OP) | BPF_X, \
122 .code = BPF_ALU64 | BPF_OP(OP) | BPF_K, \
150 .code = BPF_ALU64 | BPF_MOV | BPF_X, \
168 .code = BPF_ALU64 | BPF_MOV | BPF_K, \
222 .code = BPF_ALU64 | BPF_MOV | BPF_SRC(TYPE), \

12