/Linux-v6.6/arch/powerpc/net/ |
D | bpf_jit_comp64.c | 419 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 …]
|
D | bpf_jit_comp32.c | 312 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/ |
D | bpf_jit_comp64.c | 740 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 …]
|
D | bpf_jit_comp32.c | 1553 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/ |
D | bpf_jit_comp64.c | 422 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 …]
|
D | bpf_jit_comp32.c | 1119 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/ |
D | bpf_jit.c | 470 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/ |
D | bpf_jit_comp.c | 1073 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 …]
|
D | bpf_jit_comp32.c | 1674 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/ |
D | bpf_jit_comp_64.c | 914 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/ |
D | bpf_jit_comp64.c | 402 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 …]
|
D | bpf_jit_comp32.c | 957 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/ |
D | bpf_jit_comp.c | 804 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/ |
D | bpf_insn.h | 12 .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/ |
D | bpf_jit_comp.c | 774 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/ |
D | filter.h | 36 .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/ |
D | bpf_jit_32.c | 1358 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/ |
D | instruction-set.rst | 185 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/ |
D | jit.c | 3422 [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/ |
D | disasm.c | 70 [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/ |
D | disasm.c | 70 [BPF_ALU64] = "alu64", 176 if (class == BPF_ALU || class == BPF_ALU64) { in print_bpf_insn() 178 if (class == BPF_ALU64) in print_bpf_insn()
|
D | core.c | 1267 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/ |
D | reuseport_bpf.c | 100 { 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/ |
D | basic_instr.c | 183 .code = BPF_ALU64 | BPF_END | BPF_TO_BE,
|
/Linux-v6.6/include/linux/ |
D | filter.h | 98 .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), \
|