Home
last modified time | relevance | path

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

12

/Linux-v6.6/arch/powerpc/net/
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()
476 case BPF_ALU64 | BPF_DIV | BPF_X: /* dst /= src */ in bpf_jit_build_body()
477 case BPF_ALU64 | BPF_MOD | BPF_X: /* dst %= src */ in bpf_jit_build_body()
487 case BPF_ALU64 | BPF_MOD | BPF_K: /* dst %= imm */ in bpf_jit_build_body()
488 case BPF_ALU64 | BPF_DIV | BPF_K: /* dst /= imm */ in bpf_jit_build_body()
[all …]
Dbpf_jit_comp32.c312 if (i && (BPF_CLASS(code) == BPF_ALU64 || BPF_CLASS(code) == BPF_ALU) && in bpf_jit_build_body()
313 (BPF_CLASS(prevcode) == BPF_ALU64 || BPF_CLASS(prevcode) == BPF_ALU) && in bpf_jit_build_body()
355 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()
[all …]
/Linux-v6.6/arch/mips/net/
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()
767 case BPF_ALU64 | BPF_ARSH | BPF_K: in build_insn()
768 case BPF_ALU64 | BPF_ADD | BPF_K: in build_insn()
[all …]
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 …]
/Linux-v6.6/arch/parisc/net/
Dbpf_jit_comp64.c422 if (code & (BPF_ALU | BPF_X) || code & (BPF_ALU64 | BPF_X) || in init_regs()
595 bool is64 = BPF_CLASS(insn->code) == BPF_ALU64 || in bpf_jit_emit_insn()
609 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()
[all …]
Dbpf_jit_comp32.c1119 bool is64 = BPF_CLASS(insn->code) == BPF_ALU64 || in bpf_jit_emit_insn()
1133 BPF_CLASS(code), code, (code & BPF_ALU64) ? 1:0, BPF_SIZE(code), in bpf_jit_emit_insn()
1138 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()
[all …]
/Linux-v6.6/arch/loongarch/net/
Dbpf_jit.c470 case BPF_ALU64 | BPF_MOV | BPF_X: in build_insn()
477 case BPF_ALU64 | BPF_MOV | BPF_K: in build_insn()
483 case BPF_ALU64 | BPF_ADD | BPF_X: in build_insn()
490 case BPF_ALU64 | BPF_ADD | BPF_K: in build_insn()
502 case BPF_ALU64 | BPF_SUB | BPF_X: in build_insn()
509 case BPF_ALU64 | BPF_SUB | BPF_K: in build_insn()
521 case BPF_ALU64 | BPF_MUL | BPF_X: in build_insn()
528 case BPF_ALU64 | BPF_MUL | BPF_K: in build_insn()
536 case BPF_ALU64 | BPF_DIV | BPF_X: in build_insn()
546 case BPF_ALU64 | BPF_DIV | BPF_K: in build_insn()
[all …]
/Linux-v6.6/arch/x86/net/
Dbpf_jit_comp.c1073 case BPF_ALU64 | BPF_ADD | BPF_X: in do_jit()
1074 case BPF_ALU64 | BPF_SUB | BPF_X: in do_jit()
1075 case BPF_ALU64 | BPF_AND | BPF_X: in do_jit()
1076 case BPF_ALU64 | BPF_OR | BPF_X: in do_jit()
1077 case BPF_ALU64 | BPF_XOR | BPF_X: in do_jit()
1079 BPF_CLASS(insn->code) == BPF_ALU64); in do_jit()
1084 case BPF_ALU64 | BPF_MOV | BPF_X: in do_jit()
1088 BPF_CLASS(insn->code) == BPF_ALU64, in do_jit()
1092 BPF_CLASS(insn->code) == BPF_ALU64, in do_jit()
1098 case BPF_ALU64 | BPF_NEG: in do_jit()
[all …]
Dbpf_jit_comp32.c1674 const bool is64 = BPF_CLASS(insn->code) == BPF_ALU64; in do_jit()
1691 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()
[all …]
/Linux-v6.6/arch/sparc/net/
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()
964 case BPF_ALU64 | BPF_MOD | BPF_X: { in build_insn()
977 case BPF_ALU64 | BPF_LSH | BPF_X: in build_insn()
[all …]
/Linux-v6.6/arch/riscv/net/
Dbpf_jit_comp64.c402 if (code & (BPF_ALU | BPF_X) || code & (BPF_ALU64 | BPF_X) || in init_regs()
1072 bool is64 = BPF_CLASS(insn->code) == BPF_ALU64 || in bpf_jit_emit_insn()
1085 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()
[all …]
Dbpf_jit_comp32.c957 bool is64 = BPF_CLASS(insn->code) == BPF_ALU64 || in bpf_jit_emit_insn()
970 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()
[all …]
/Linux-v6.6/arch/s390/net/
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()
932 case BPF_ALU64 | BPF_DIV | BPF_X: /* dst = dst / src */ in bpf_jit_insn()
933 case BPF_ALU64 | BPF_MOD | BPF_X: /* dst = dst % src */ in bpf_jit_insn()
[all …]
/Linux-v6.6/samples/bpf/
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, \
/Linux-v6.6/arch/arm64/net/
Dbpf_jit_comp.c774 const bool is64 = BPF_CLASS(code) == BPF_ALU64 || in build_insn()
788 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()
837 case BPF_ALU64 | BPF_MOD | BPF_X: in build_insn()
[all …]
/Linux-v6.6/tools/include/linux/
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), \
/Linux-v6.6/arch/arm/net/
Dbpf_jit_32.c1358 const bool is64 = BPF_CLASS(code) == BPF_ALU64; in build_insn()
1379 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()
[all …]
/Linux-v6.6/Documentation/bpf/standardization/
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
219 ``BPF_ALU`` uses 32-bit wide operands while ``BPF_ALU64`` uses 64-bit wide operands for
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'
289 ``BPF_ALU64 | BPF_MOVSX`` :term:`sign extends<Sign Extend>` 8-bit, 16-bit, and 32-bit
298 The byte swap instructions use instruction classes of ``BPF_ALU`` and ``BPF_ALU64``
[all …]
/Linux-v6.6/drivers/net/ethernet/netronome/nfp/bpf/
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 …]
/Linux-v6.6/tools/testing/selftests/bpf/
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()
/Linux-v6.6/kernel/bpf/
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()
Dcore.c1267 from->code == (BPF_ALU64 | BPF_MOV | BPF_K))) { in bpf_jit_blind_insn()
1287 case BPF_ALU64 | BPF_ADD | BPF_K: in bpf_jit_blind_insn()
1288 case BPF_ALU64 | BPF_SUB | BPF_K: in bpf_jit_blind_insn()
1289 case BPF_ALU64 | BPF_AND | BPF_K: in bpf_jit_blind_insn()
1290 case BPF_ALU64 | BPF_OR | BPF_K: in bpf_jit_blind_insn()
1291 case BPF_ALU64 | BPF_XOR | BPF_K: in bpf_jit_blind_insn()
1292 case BPF_ALU64 | BPF_MUL | BPF_K: in bpf_jit_blind_insn()
1293 case BPF_ALU64 | BPF_MOV | BPF_K: in bpf_jit_blind_insn()
1294 case BPF_ALU64 | BPF_DIV | BPF_K: in bpf_jit_blind_insn()
1295 case BPF_ALU64 | BPF_MOD | BPF_K: in bpf_jit_blind_insn()
/Linux-v6.6/tools/testing/selftests/net/
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()
/Linux-v6.6/tools/testing/selftests/bpf/verifier/
Dbasic_instr.c183 .code = BPF_ALU64 | BPF_END | BPF_TO_BE,
/Linux-v6.6/include/linux/
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