/openbmc/linux/tools/bpf/ |
H A D | bpf_exp.y | 223 bpf_set_curr_instr(BPF_JMP | BPF_JEQ | BPF_X, 0, 0, 0); } 227 bpf_set_curr_instr(BPF_JMP | BPF_JEQ | BPF_X, 0, 0, 0); } 233 bpf_set_curr_instr(BPF_JMP | BPF_JEQ | BPF_X, 0, 0, 0); } 236 bpf_set_curr_instr(BPF_JMP | BPF_JEQ | BPF_X, 0, 0, 0); } 245 bpf_set_curr_instr(BPF_JMP | BPF_JEQ | BPF_X, 0, 0, 0); } 248 bpf_set_curr_instr(BPF_JMP | BPF_JEQ | BPF_X, 0, 0, 0); } 257 bpf_set_curr_instr(BPF_JMP | BPF_JGE | BPF_X, 0, 0, 0); } 260 bpf_set_curr_instr(BPF_JMP | BPF_JGE | BPF_X, 0, 0, 0); } 269 bpf_set_curr_instr(BPF_JMP | BPF_JGT | BPF_X, 0, 0, 0); } 448 bpf_set_curr_instr(BPF_RET | BPF_X, 0, 0, 0); } [all …]
|
H A D | bpf_dbg.c | 231 case BPF_RET | BPF_X: in bpf_disasm() 304 case BPF_JMP_JGT | BPF_X: in bpf_disasm() 312 case BPF_JMP_JGE | BPF_X: in bpf_disasm() 320 case BPF_JMP_JEQ | BPF_X: in bpf_disasm() 340 case BPF_ALU_LSH | BPF_X: in bpf_disasm() 348 case BPF_ALU_RSH | BPF_X: in bpf_disasm() 356 case BPF_ALU_ADD | BPF_X: in bpf_disasm() 364 case BPF_ALU_SUB | BPF_X: in bpf_disasm() 372 case BPF_ALU_MUL | BPF_X: in bpf_disasm() 404 case BPF_ALU_OR | BPF_X: in bpf_disasm() [all …]
|
/openbmc/linux/arch/powerpc/net/ |
H A D | bpf_jit_comp64.c | 1027 case BPF_JMP | BPF_JGT | BPF_X: in bpf_jit_build_body() 1029 case BPF_JMP | BPF_JSGT | BPF_X: in bpf_jit_build_body() 1037 case BPF_JMP | BPF_JLT | BPF_X: in bpf_jit_build_body() 1039 case BPF_JMP | BPF_JSLT | BPF_X: in bpf_jit_build_body() 1047 case BPF_JMP | BPF_JGE | BPF_X: in bpf_jit_build_body() 1049 case BPF_JMP | BPF_JSGE | BPF_X: in bpf_jit_build_body() 1057 case BPF_JMP | BPF_JLE | BPF_X: in bpf_jit_build_body() 1059 case BPF_JMP | BPF_JSLE | BPF_X: in bpf_jit_build_body() 1067 case BPF_JMP | BPF_JEQ | BPF_X: in bpf_jit_build_body() 1073 case BPF_JMP | BPF_JNE | BPF_X: in bpf_jit_build_body() [all …]
|
H A D | bpf_jit_comp32.c | 1084 case BPF_JMP | BPF_JGT | BPF_X: in bpf_jit_build_body() 1086 case BPF_JMP | BPF_JSGT | BPF_X: in bpf_jit_build_body() 1094 case BPF_JMP | BPF_JLT | BPF_X: in bpf_jit_build_body() 1096 case BPF_JMP | BPF_JSLT | BPF_X: in bpf_jit_build_body() 1104 case BPF_JMP | BPF_JGE | BPF_X: in bpf_jit_build_body() 1106 case BPF_JMP | BPF_JSGE | BPF_X: in bpf_jit_build_body() 1114 case BPF_JMP | BPF_JLE | BPF_X: in bpf_jit_build_body() 1116 case BPF_JMP | BPF_JSLE | BPF_X: in bpf_jit_build_body() 1124 case BPF_JMP | BPF_JEQ | BPF_X: in bpf_jit_build_body() 1130 case BPF_JMP | BPF_JNE | BPF_X: in bpf_jit_build_body() [all …]
|
/openbmc/linux/arch/mips/net/ |
H A D | bpf_jit_comp64.c | 654 case BPF_ALU | BPF_MOV | BPF_X: in build_insn() 713 case BPF_ALU | BPF_AND | BPF_X: in build_insn() 714 case BPF_ALU | BPF_OR | BPF_X: in build_insn() 715 case BPF_ALU | BPF_XOR | BPF_X: in build_insn() 716 case BPF_ALU | BPF_LSH | BPF_X: in build_insn() 727 case BPF_ALU | BPF_RSH | BPF_X: in build_insn() 729 case BPF_ALU | BPF_ADD | BPF_X: in build_insn() 730 case BPF_ALU | BPF_SUB | BPF_X: in build_insn() 731 case BPF_ALU | BPF_MUL | BPF_X: in build_insn() 732 case BPF_ALU | BPF_DIV | BPF_X: in build_insn() [all …]
|
H A D | bpf_jit_comp32.c | 1483 case BPF_ALU | BPF_MOV | BPF_X: in build_insn() 1538 case BPF_ALU | BPF_AND | BPF_X: in build_insn() 1539 case BPF_ALU | BPF_OR | BPF_X: in build_insn() 1540 case BPF_ALU | BPF_XOR | BPF_X: in build_insn() 1541 case BPF_ALU | BPF_LSH | BPF_X: in build_insn() 1542 case BPF_ALU | BPF_RSH | BPF_X: in build_insn() 1544 case BPF_ALU | BPF_ADD | BPF_X: in build_insn() 1545 case BPF_ALU | BPF_SUB | BPF_X: in build_insn() 1546 case BPF_ALU | BPF_MUL | BPF_X: in build_insn() 1547 case BPF_ALU | BPF_DIV | BPF_X: in build_insn() [all …]
|
/openbmc/linux/arch/parisc/net/ |
H A D | bpf_jit_comp64.c | 422 if (code & (BPF_ALU | BPF_X) || code & (BPF_ALU64 | BPF_X) || in init_regs() 423 code & (BPF_JMP | BPF_X) || code & (BPF_JMP32 | BPF_X) || in init_regs() 608 case BPF_ALU | BPF_MOV | BPF_X: in bpf_jit_emit_insn() 622 case BPF_ALU | BPF_ADD | BPF_X: in bpf_jit_emit_insn() 628 case BPF_ALU | BPF_SUB | BPF_X: in bpf_jit_emit_insn() 634 case BPF_ALU | BPF_AND | BPF_X: in bpf_jit_emit_insn() 640 case BPF_ALU | BPF_OR | BPF_X: in bpf_jit_emit_insn() 646 case BPF_ALU | BPF_XOR | BPF_X: in bpf_jit_emit_insn() 657 case BPF_ALU | BPF_MUL | BPF_X: in bpf_jit_emit_insn() 668 case BPF_ALU | BPF_DIV | BPF_X: in bpf_jit_emit_insn() [all …]
|
H A D | bpf_jit_comp32.c | 1184 case BPF_ALU | BPF_MOV | BPF_X: in bpf_jit_emit_insn() 1192 case BPF_ALU | BPF_ADD | BPF_X: in bpf_jit_emit_insn() 1193 case BPF_ALU | BPF_SUB | BPF_X: in bpf_jit_emit_insn() 1194 case BPF_ALU | BPF_AND | BPF_X: in bpf_jit_emit_insn() 1195 case BPF_ALU | BPF_OR | BPF_X: in bpf_jit_emit_insn() 1196 case BPF_ALU | BPF_XOR | BPF_X: in bpf_jit_emit_insn() 1198 case BPF_ALU | BPF_MUL | BPF_X: in bpf_jit_emit_insn() 1201 case BPF_ALU | BPF_DIV | BPF_X: in bpf_jit_emit_insn() 1204 case BPF_ALU | BPF_MOD | BPF_X: in bpf_jit_emit_insn() 1207 case BPF_ALU | BPF_LSH | BPF_X: in bpf_jit_emit_insn() [all …]
|
/openbmc/linux/arch/loongarch/net/ |
H A D | bpf_jit.c | 468 case BPF_ALU | BPF_MOV | BPF_X: in build_insn() 481 case BPF_ALU | BPF_ADD | BPF_X: in build_insn() 500 case BPF_ALU | BPF_SUB | BPF_X: in build_insn() 519 case BPF_ALU | BPF_MUL | BPF_X: in build_insn() 534 case BPF_ALU | BPF_DIV | BPF_X: in build_insn() 553 case BPF_ALU | BPF_MOD | BPF_X: in build_insn() 580 case BPF_ALU | BPF_AND | BPF_X: in build_insn() 599 case BPF_ALU | BPF_OR | BPF_X: in build_insn() 618 case BPF_ALU | BPF_XOR | BPF_X: in build_insn() 637 case BPF_ALU | BPF_LSH | BPF_X: in build_insn() [all …]
|
/openbmc/linux/arch/arm/net/ |
H A D | bpf_jit_32.c | 1378 case BPF_ALU | BPF_MOV | BPF_X: in build_insn() 1382 case BPF_X: in build_insn() 1405 case BPF_ALU | BPF_ADD | BPF_X: in build_insn() 1407 case BPF_ALU | BPF_SUB | BPF_X: in build_insn() 1409 case BPF_ALU | BPF_OR | BPF_X: in build_insn() 1411 case BPF_ALU | BPF_AND | BPF_X: in build_insn() 1413 case BPF_ALU | BPF_XOR | BPF_X: in build_insn() 1415 case BPF_ALU | BPF_MUL | BPF_X: in build_insn() 1430 case BPF_X: in build_insn() 1453 case BPF_X: in build_insn() [all …]
|
/openbmc/linux/arch/riscv/net/ |
H A D | bpf_jit_comp64.c | 402 if (code & (BPF_ALU | BPF_X) || code & (BPF_ALU64 | BPF_X) || in init_regs() 403 code & (BPF_JMP | BPF_X) || code & (BPF_JMP32 | BPF_X) || in init_regs() 1084 case BPF_ALU | BPF_MOV | BPF_X: in bpf_jit_emit_insn() 1109 case BPF_ALU | BPF_ADD | BPF_X: in bpf_jit_emit_insn() 1115 case BPF_ALU | BPF_SUB | BPF_X: in bpf_jit_emit_insn() 1125 case BPF_ALU | BPF_AND | BPF_X: in bpf_jit_emit_insn() 1131 case BPF_ALU | BPF_OR | BPF_X: in bpf_jit_emit_insn() 1137 case BPF_ALU | BPF_XOR | BPF_X: in bpf_jit_emit_insn() 1143 case BPF_ALU | BPF_MUL | BPF_X: in bpf_jit_emit_insn() 1149 case BPF_ALU | BPF_DIV | BPF_X: in bpf_jit_emit_insn() [all …]
|
H A D | bpf_jit_comp32.c | 1015 case BPF_ALU | BPF_MOV | BPF_X: in bpf_jit_emit_insn() 1023 case BPF_ALU | BPF_ADD | BPF_X: in bpf_jit_emit_insn() 1024 case BPF_ALU | BPF_SUB | BPF_X: in bpf_jit_emit_insn() 1025 case BPF_ALU | BPF_AND | BPF_X: in bpf_jit_emit_insn() 1026 case BPF_ALU | BPF_OR | BPF_X: in bpf_jit_emit_insn() 1027 case BPF_ALU | BPF_XOR | BPF_X: in bpf_jit_emit_insn() 1029 case BPF_ALU | BPF_MUL | BPF_X: in bpf_jit_emit_insn() 1032 case BPF_ALU | BPF_DIV | BPF_X: in bpf_jit_emit_insn() 1035 case BPF_ALU | BPF_MOD | BPF_X: in bpf_jit_emit_insn() 1038 case BPF_ALU | BPF_LSH | BPF_X: in bpf_jit_emit_insn() [all …]
|
/openbmc/linux/arch/s390/net/ |
H A D | bpf_jit_comp.c | 798 case BPF_ALU | BPF_MOV | BPF_X: /* dst = (u32) src */ in bpf_jit_insn() 804 case BPF_ALU64 | BPF_MOV | BPF_X: /* dst = src */ in bpf_jit_insn() 840 case BPF_ALU64 | BPF_ADD | BPF_X: /* dst = dst + src */ in bpf_jit_insn() 1053 case BPF_ALU64 | BPF_OR | BPF_X: /* dst = dst | src */ in bpf_jit_insn() 1652 case BPF_JMP | BPF_JGT | BPF_X: /* (dst > src) */ in bpf_jit_insn() 1656 case BPF_JMP | BPF_JLT | BPF_X: /* (dst < src) */ in bpf_jit_insn() 1660 case BPF_JMP | BPF_JGE | BPF_X: /* (dst >= src) */ in bpf_jit_insn() 1664 case BPF_JMP | BPF_JLE | BPF_X: /* (dst <= src) */ in bpf_jit_insn() 1668 case BPF_JMP | BPF_JNE | BPF_X: /* (dst != src) */ in bpf_jit_insn() 1672 case BPF_JMP | BPF_JEQ | BPF_X: /* (dst == src) */ in bpf_jit_insn() [all …]
|
/openbmc/linux/arch/x86/net/ |
H A D | bpf_jit_comp32.c | 1690 case BPF_ALU | BPF_MOV | BPF_X: in do_jit() 1694 case BPF_X: in do_jit() 1719 case BPF_ALU | BPF_ADD | BPF_X: in do_jit() 1721 case BPF_ALU | BPF_SUB | BPF_X: in do_jit() 1723 case BPF_ALU | BPF_OR | BPF_X: in do_jit() 1725 case BPF_ALU | BPF_AND | BPF_X: in do_jit() 1739 case BPF_X: in do_jit() 1754 case BPF_X: in do_jit() 1774 case BPF_X: in do_jit() 1797 case BPF_X: in do_jit() [all …]
|
H A D | bpf_jit_comp.c | 1122 case BPF_ALU | BPF_ADD | BPF_X: in do_jit() 1123 case BPF_ALU | BPF_SUB | BPF_X: in do_jit() 1124 case BPF_ALU | BPF_AND | BPF_X: in do_jit() 1125 case BPF_ALU | BPF_OR | BPF_X: in do_jit() 1126 case BPF_ALU | BPF_XOR | BPF_X: in do_jit() 1139 case BPF_ALU | BPF_MOV | BPF_X: in do_jit() 1219 case BPF_ALU | BPF_MOD | BPF_X: in do_jit() 1220 case BPF_ALU | BPF_DIV | BPF_X: in do_jit() 1304 case BPF_ALU | BPF_MUL | BPF_X: in do_jit() 1330 case BPF_ALU | BPF_LSH | BPF_X: in do_jit() [all …]
|
/openbmc/linux/arch/arm64/net/ |
H A D | bpf_jit_comp.c | 787 case BPF_ALU | BPF_MOV | BPF_X: in build_insn() 805 case BPF_ALU | BPF_ADD | BPF_X: in build_insn() 809 case BPF_ALU | BPF_SUB | BPF_X: in build_insn() 813 case BPF_ALU | BPF_AND | BPF_X: in build_insn() 817 case BPF_ALU | BPF_OR | BPF_X: in build_insn() 821 case BPF_ALU | BPF_XOR | BPF_X: in build_insn() 825 case BPF_ALU | BPF_MUL | BPF_X: in build_insn() 829 case BPF_ALU | BPF_DIV | BPF_X: in build_insn() 836 case BPF_ALU | BPF_MOD | BPF_X: in build_insn() 844 case BPF_ALU | BPF_LSH | BPF_X: in build_insn() [all …]
|
/openbmc/linux/samples/bpf/ |
H A D | bpf_insn.h | 12 .code = BPF_ALU64 | BPF_OP(OP) | BPF_X, \ 20 .code = BPF_ALU | BPF_OP(OP) | BPF_X, \ 48 .code = BPF_ALU64 | BPF_MOV | BPF_X, \ 56 .code = BPF_ALU | BPF_MOV | BPF_X, \ 177 .code = BPF_JMP | BPF_OP(OP) | BPF_X, \ 187 .code = BPF_JMP32 | BPF_OP(OP) | BPF_X, \
|
/openbmc/linux/arch/sparc/net/ |
H A D | bpf_jit_comp_64.c | 909 case BPF_ALU | BPF_MOV | BPF_X: in build_insn() 918 case BPF_ALU | BPF_ADD | BPF_X: in build_insn() 922 case BPF_ALU | BPF_SUB | BPF_X: in build_insn() 926 case BPF_ALU | BPF_AND | BPF_X: in build_insn() 930 case BPF_ALU | BPF_OR | BPF_X: in build_insn() 934 case BPF_ALU | BPF_XOR | BPF_X: in build_insn() 938 case BPF_ALU | BPF_MUL | BPF_X: in build_insn() 944 case BPF_ALU | BPF_DIV | BPF_X: in build_insn() 974 case BPF_ALU | BPF_LSH | BPF_X: in build_insn() 980 case BPF_ALU | BPF_RSH | BPF_X: in build_insn() [all …]
|
H A D | bpf_jit_comp_32.c | 399 case BPF_ALU | BPF_ADD | BPF_X: /* A += X; */ in bpf_jit_compile() 405 case BPF_ALU | BPF_SUB | BPF_X: /* A -= X; */ in bpf_jit_compile() 411 case BPF_ALU | BPF_AND | BPF_X: /* A &= X */ in bpf_jit_compile() 417 case BPF_ALU | BPF_OR | BPF_X: /* A |= X */ in bpf_jit_compile() 424 case BPF_ALU | BPF_XOR | BPF_X: in bpf_jit_compile() 430 case BPF_ALU | BPF_LSH | BPF_X: /* A <<= X */ in bpf_jit_compile() 436 case BPF_ALU | BPF_RSH | BPF_X: /* A >>= X */ in bpf_jit_compile() 663 case BPF_JMP | BPF_JGT | BPF_X: in bpf_jit_compile() 664 case BPF_JMP | BPF_JGE | BPF_X: in bpf_jit_compile() 665 case BPF_JMP | BPF_JEQ | BPF_X: in bpf_jit_compile() [all …]
|
/openbmc/linux/tools/include/linux/ |
H A D | filter.h | 36 .code = BPF_ALU64 | BPF_OP(OP) | BPF_X, \ 44 .code = BPF_ALU | BPF_OP(OP) | BPF_X, \ 82 .code = BPF_ALU64 | BPF_MOV | BPF_X, \ 90 .code = BPF_ALU | BPF_MOV | BPF_X, \ 212 .code = BPF_JMP | BPF_OP(OP) | BPF_X, \ 222 .code = BPF_JMP32 | BPF_OP(OP) | BPF_X, \
|
/openbmc/linux/drivers/net/ethernet/netronome/nfp/bpf/ |
H A D | jit.c | 3445 [BPF_ALU | BPF_MOV | BPF_X] = mov_reg, 3447 [BPF_ALU | BPF_XOR | BPF_X] = xor_reg, 3449 [BPF_ALU | BPF_AND | BPF_X] = and_reg, 3451 [BPF_ALU | BPF_OR | BPF_X] = or_reg, 3453 [BPF_ALU | BPF_ADD | BPF_X] = add_reg, 3455 [BPF_ALU | BPF_SUB | BPF_X] = sub_reg, 3457 [BPF_ALU | BPF_MUL | BPF_X] = mul_reg, 3459 [BPF_ALU | BPF_DIV | BPF_X] = div_reg, 3462 [BPF_ALU | BPF_LSH | BPF_X] = shl_reg, 3464 [BPF_ALU | BPF_RSH | BPF_X] = shr_reg, [all …]
|
/openbmc/linux/kernel/ |
H A D | seccomp.c | 307 case BPF_ALU | BPF_ADD | BPF_X: in seccomp_check_filter() 309 case BPF_ALU | BPF_SUB | BPF_X: in seccomp_check_filter() 311 case BPF_ALU | BPF_MUL | BPF_X: in seccomp_check_filter() 313 case BPF_ALU | BPF_DIV | BPF_X: in seccomp_check_filter() 315 case BPF_ALU | BPF_AND | BPF_X: in seccomp_check_filter() 317 case BPF_ALU | BPF_OR | BPF_X: in seccomp_check_filter() 319 case BPF_ALU | BPF_XOR | BPF_X: in seccomp_check_filter() 321 case BPF_ALU | BPF_LSH | BPF_X: in seccomp_check_filter() 323 case BPF_ALU | BPF_RSH | BPF_X: in seccomp_check_filter() 335 case BPF_JMP | BPF_JEQ | BPF_X: in seccomp_check_filter() [all …]
|
/openbmc/linux/tools/include/uapi/linux/ |
H A D | bpf_common.h | 51 #define BPF_X 0x08 macro
|
/openbmc/linux/include/uapi/linux/ |
H A D | bpf_common.h | 51 #define BPF_X 0x08 macro
|
/openbmc/linux/tools/testing/selftests/bpf/verifier/ |
H A D | basic_call.c | 4 BPF_RAW_INSN(BPF_JMP | BPF_CALL | BPF_X, 0, 0, 0, 0),
|