Home
last modified time | relevance | path

Searched refs:BPF_JMP32 (Results 1 – 25 of 29) sorted by relevance

12

/Linux-v6.6/arch/powerpc/net/
Dbpf_jit_comp64.c1018 case BPF_JMP32 | BPF_JGT | BPF_K: in bpf_jit_build_body()
1019 case BPF_JMP32 | BPF_JGT | BPF_X: in bpf_jit_build_body()
1020 case BPF_JMP32 | BPF_JSGT | BPF_K: in bpf_jit_build_body()
1021 case BPF_JMP32 | BPF_JSGT | BPF_X: in bpf_jit_build_body()
1028 case BPF_JMP32 | BPF_JLT | BPF_K: in bpf_jit_build_body()
1029 case BPF_JMP32 | BPF_JLT | BPF_X: in bpf_jit_build_body()
1030 case BPF_JMP32 | BPF_JSLT | BPF_K: in bpf_jit_build_body()
1031 case BPF_JMP32 | BPF_JSLT | BPF_X: in bpf_jit_build_body()
1038 case BPF_JMP32 | BPF_JGE | BPF_K: in bpf_jit_build_body()
1039 case BPF_JMP32 | BPF_JGE | BPF_X: in bpf_jit_build_body()
[all …]
Dbpf_jit_comp32.c1075 case BPF_JMP32 | BPF_JGT | BPF_K: in bpf_jit_build_body()
1076 case BPF_JMP32 | BPF_JGT | BPF_X: in bpf_jit_build_body()
1077 case BPF_JMP32 | BPF_JSGT | BPF_K: in bpf_jit_build_body()
1078 case BPF_JMP32 | BPF_JSGT | BPF_X: in bpf_jit_build_body()
1085 case BPF_JMP32 | BPF_JLT | BPF_K: in bpf_jit_build_body()
1086 case BPF_JMP32 | BPF_JLT | BPF_X: in bpf_jit_build_body()
1087 case BPF_JMP32 | BPF_JSLT | BPF_K: in bpf_jit_build_body()
1088 case BPF_JMP32 | BPF_JSLT | BPF_X: in bpf_jit_build_body()
1095 case BPF_JMP32 | BPF_JGE | BPF_K: in bpf_jit_build_body()
1096 case BPF_JMP32 | BPF_JGE | BPF_X: in bpf_jit_build_body()
[all …]
/Linux-v6.6/arch/mips/net/
Dbpf_jit_comp64.c909 case BPF_JMP32 | BPF_JEQ | BPF_X: in build_insn()
910 case BPF_JMP32 | BPF_JNE | BPF_X: in build_insn()
911 case BPF_JMP32 | BPF_JSET | BPF_X: in build_insn()
912 case BPF_JMP32 | BPF_JGT | BPF_X: in build_insn()
913 case BPF_JMP32 | BPF_JGE | BPF_X: in build_insn()
914 case BPF_JMP32 | BPF_JLT | BPF_X: in build_insn()
915 case BPF_JMP32 | BPF_JLE | BPF_X: in build_insn()
916 case BPF_JMP32 | BPF_JSGT | BPF_X: in build_insn()
917 case BPF_JMP32 | BPF_JSGE | BPF_X: in build_insn()
918 case BPF_JMP32 | BPF_JSLT | BPF_X: in build_insn()
[all …]
Dbpf_jit_comp32.c1753 case BPF_JMP32 | BPF_JEQ | BPF_X: in build_insn()
1754 case BPF_JMP32 | BPF_JNE | BPF_X: in build_insn()
1755 case BPF_JMP32 | BPF_JSET | BPF_X: in build_insn()
1756 case BPF_JMP32 | BPF_JGT | BPF_X: in build_insn()
1757 case BPF_JMP32 | BPF_JGE | BPF_X: in build_insn()
1758 case BPF_JMP32 | BPF_JLT | BPF_X: in build_insn()
1759 case BPF_JMP32 | BPF_JLE | BPF_X: in build_insn()
1760 case BPF_JMP32 | BPF_JSGT | BPF_X: in build_insn()
1761 case BPF_JMP32 | BPF_JSGE | BPF_X: in build_insn()
1762 case BPF_JMP32 | BPF_JSLT | BPF_X: in build_insn()
[all …]
/Linux-v6.6/arch/loongarch/net/
Dbpf_jit.c465 const bool is32 = BPF_CLASS(insn->code) == BPF_ALU || BPF_CLASS(insn->code) == BPF_JMP32; in build_insn()
743 case BPF_JMP32 | BPF_JEQ | BPF_X: in build_insn()
744 case BPF_JMP32 | BPF_JNE | BPF_X: in build_insn()
745 case BPF_JMP32 | BPF_JGT | BPF_X: in build_insn()
746 case BPF_JMP32 | BPF_JGE | BPF_X: in build_insn()
747 case BPF_JMP32 | BPF_JLT | BPF_X: in build_insn()
748 case BPF_JMP32 | BPF_JLE | BPF_X: in build_insn()
749 case BPF_JMP32 | BPF_JSGT | BPF_X: in build_insn()
750 case BPF_JMP32 | BPF_JSGE | BPF_X: in build_insn()
751 case BPF_JMP32 | BPF_JSLT | BPF_X: in build_insn()
[all …]
/Linux-v6.6/arch/parisc/net/
Dbpf_jit_comp64.c423 code & (BPF_JMP | BPF_X) || code & (BPF_JMP32 | BPF_X) || in init_regs()
866 case BPF_JMP32 | BPF_JEQ | BPF_X: in bpf_jit_emit_insn()
868 case BPF_JMP32 | BPF_JGT | BPF_X: in bpf_jit_emit_insn()
870 case BPF_JMP32 | BPF_JLT | BPF_X: in bpf_jit_emit_insn()
872 case BPF_JMP32 | BPF_JGE | BPF_X: in bpf_jit_emit_insn()
874 case BPF_JMP32 | BPF_JLE | BPF_X: in bpf_jit_emit_insn()
876 case BPF_JMP32 | BPF_JNE | BPF_X: in bpf_jit_emit_insn()
878 case BPF_JMP32 | BPF_JSGT | BPF_X: in bpf_jit_emit_insn()
880 case BPF_JMP32 | BPF_JSLT | BPF_X: in bpf_jit_emit_insn()
882 case BPF_JMP32 | BPF_JSGE | BPF_X: in bpf_jit_emit_insn()
[all …]
Dbpf_jit_comp32.c1326 case BPF_JMP32 | BPF_JEQ | BPF_X: in bpf_jit_emit_insn()
1327 case BPF_JMP32 | BPF_JEQ | BPF_K: in bpf_jit_emit_insn()
1331 case BPF_JMP32 | BPF_JNE | BPF_X: in bpf_jit_emit_insn()
1332 case BPF_JMP32 | BPF_JNE | BPF_K: in bpf_jit_emit_insn()
1336 case BPF_JMP32 | BPF_JLE | BPF_X: in bpf_jit_emit_insn()
1337 case BPF_JMP32 | BPF_JLE | BPF_K: in bpf_jit_emit_insn()
1341 case BPF_JMP32 | BPF_JLT | BPF_X: in bpf_jit_emit_insn()
1342 case BPF_JMP32 | BPF_JLT | BPF_K: in bpf_jit_emit_insn()
1346 case BPF_JMP32 | BPF_JGE | BPF_X: in bpf_jit_emit_insn()
1347 case BPF_JMP32 | BPF_JGE | BPF_K: in bpf_jit_emit_insn()
[all …]
/Linux-v6.6/arch/s390/net/
Dbpf_jit_comp.c1577 case BPF_JMP32 | BPF_JSGT | BPF_K: /* ((s32) dst > (s32) imm) */ in bpf_jit_insn()
1581 case BPF_JMP32 | BPF_JSLT | BPF_K: /* ((s32) dst < (s32) imm) */ in bpf_jit_insn()
1585 case BPF_JMP32 | BPF_JSGE | BPF_K: /* ((s32) dst >= (s32) imm) */ in bpf_jit_insn()
1589 case BPF_JMP32 | BPF_JSLE | BPF_K: /* ((s32) dst <= (s32) imm) */ in bpf_jit_insn()
1593 case BPF_JMP32 | BPF_JGT | BPF_K: /* ((u32) dst_reg > (u32) imm) */ in bpf_jit_insn()
1597 case BPF_JMP32 | BPF_JLT | BPF_K: /* ((u32) dst_reg < (u32) imm) */ in bpf_jit_insn()
1601 case BPF_JMP32 | BPF_JGE | BPF_K: /* ((u32) dst_reg >= (u32) imm) */ in bpf_jit_insn()
1605 case BPF_JMP32 | BPF_JLE | BPF_K: /* ((u32) dst_reg <= (u32) imm) */ in bpf_jit_insn()
1609 case BPF_JMP32 | BPF_JNE | BPF_K: /* ((u32) dst_reg != (u32) imm) */ in bpf_jit_insn()
1613 case BPF_JMP32 | BPF_JEQ | BPF_K: /* ((u32) dst_reg == (u32) imm) */ in bpf_jit_insn()
[all …]
/Linux-v6.6/tools/testing/selftests/bpf/
Ddisasm.c69 [BPF_JMP32] = "jmp32",
304 } else if (class == BPF_JMP32 || class == BPF_JMP) { in print_bpf_insn()
325 } else if (insn->code == (BPF_JMP32 | BPF_JA)) { in print_bpf_insn()
333 insn->code, class == BPF_JMP32 ? 'w' : 'r', in print_bpf_insn()
336 class == BPF_JMP32 ? 'w' : 'r', in print_bpf_insn()
341 insn->code, class == BPF_JMP32 ? 'w' : 'r', in print_bpf_insn()
/Linux-v6.6/kernel/bpf/
Ddisasm.c69 [BPF_JMP32] = "jmp32",
304 } else if (class == BPF_JMP32 || class == BPF_JMP) { in print_bpf_insn()
325 } else if (insn->code == (BPF_JMP32 | BPF_JA)) { in print_bpf_insn()
333 insn->code, class == BPF_JMP32 ? 'w' : 'r', in print_bpf_insn()
336 class == BPF_JMP32 ? 'w' : 'r', in print_bpf_insn()
341 insn->code, class == BPF_JMP32 ? 'w' : 'r', in print_bpf_insn()
Dcore.c378 if (insn->code == (BPF_JMP32 | BPF_JA)) in bpf_adj_delta_to_off()
390 if (insn->code == (BPF_JMP32 | BPF_JA)) in bpf_adj_delta_to_off()
425 BPF_CLASS(code) != BPF_JMP32) || in bpf_adj_branches()
1321 case BPF_JMP32 | BPF_JEQ | BPF_K: in bpf_jit_blind_insn()
1322 case BPF_JMP32 | BPF_JNE | BPF_K: in bpf_jit_blind_insn()
1323 case BPF_JMP32 | BPF_JGT | BPF_K: in bpf_jit_blind_insn()
1324 case BPF_JMP32 | BPF_JLT | BPF_K: in bpf_jit_blind_insn()
1325 case BPF_JMP32 | BPF_JGE | BPF_K: in bpf_jit_blind_insn()
1326 case BPF_JMP32 | BPF_JLE | BPF_K: in bpf_jit_blind_insn()
1327 case BPF_JMP32 | BPF_JSGT | BPF_K: in bpf_jit_blind_insn()
[all …]
/Linux-v6.6/arch/riscv/net/
Dbpf_jit_comp64.c403 code & (BPF_JMP | BPF_X) || code & (BPF_JMP32 | BPF_X) || in init_regs()
1386 case BPF_JMP32 | BPF_JA: in bpf_jit_emit_insn()
1398 case BPF_JMP32 | BPF_JEQ | BPF_X: in bpf_jit_emit_insn()
1400 case BPF_JMP32 | BPF_JGT | BPF_X: in bpf_jit_emit_insn()
1402 case BPF_JMP32 | BPF_JLT | BPF_X: in bpf_jit_emit_insn()
1404 case BPF_JMP32 | BPF_JGE | BPF_X: in bpf_jit_emit_insn()
1406 case BPF_JMP32 | BPF_JLE | BPF_X: in bpf_jit_emit_insn()
1408 case BPF_JMP32 | BPF_JNE | BPF_X: in bpf_jit_emit_insn()
1410 case BPF_JMP32 | BPF_JSGT | BPF_X: in bpf_jit_emit_insn()
1412 case BPF_JMP32 | BPF_JSLT | BPF_X: in bpf_jit_emit_insn()
[all …]
Dbpf_jit_comp32.c1157 case BPF_JMP32 | BPF_JEQ | BPF_X: in bpf_jit_emit_insn()
1158 case BPF_JMP32 | BPF_JEQ | BPF_K: in bpf_jit_emit_insn()
1162 case BPF_JMP32 | BPF_JNE | BPF_X: in bpf_jit_emit_insn()
1163 case BPF_JMP32 | BPF_JNE | BPF_K: in bpf_jit_emit_insn()
1167 case BPF_JMP32 | BPF_JLE | BPF_X: in bpf_jit_emit_insn()
1168 case BPF_JMP32 | BPF_JLE | BPF_K: in bpf_jit_emit_insn()
1172 case BPF_JMP32 | BPF_JLT | BPF_X: in bpf_jit_emit_insn()
1173 case BPF_JMP32 | BPF_JLT | BPF_K: in bpf_jit_emit_insn()
1177 case BPF_JMP32 | BPF_JGE | BPF_X: in bpf_jit_emit_insn()
1178 case BPF_JMP32 | BPF_JGE | BPF_K: in bpf_jit_emit_insn()
[all …]
/Linux-v6.6/arch/arm64/net/
Dbpf_jit_comp.c997 case BPF_JMP32 | BPF_JA: in build_insn()
1016 case BPF_JMP32 | BPF_JEQ | BPF_X: in build_insn()
1017 case BPF_JMP32 | BPF_JGT | BPF_X: in build_insn()
1018 case BPF_JMP32 | BPF_JLT | BPF_X: in build_insn()
1019 case BPF_JMP32 | BPF_JGE | BPF_X: in build_insn()
1020 case BPF_JMP32 | BPF_JLE | BPF_X: in build_insn()
1021 case BPF_JMP32 | BPF_JNE | BPF_X: in build_insn()
1022 case BPF_JMP32 | BPF_JSGT | BPF_X: in build_insn()
1023 case BPF_JMP32 | BPF_JSLT | BPF_X: in build_insn()
1024 case BPF_JMP32 | BPF_JSGE | BPF_X: in build_insn()
[all …]
/Linux-v6.6/arch/arm/net/
Dbpf_jit_32.c1664 case BPF_JMP32 | BPF_JEQ | BPF_X: in build_insn()
1665 case BPF_JMP32 | BPF_JGT | BPF_X: in build_insn()
1666 case BPF_JMP32 | BPF_JGE | BPF_X: in build_insn()
1667 case BPF_JMP32 | BPF_JNE | BPF_X: in build_insn()
1668 case BPF_JMP32 | BPF_JSGT | BPF_X: in build_insn()
1669 case BPF_JMP32 | BPF_JSGE | BPF_X: in build_insn()
1670 case BPF_JMP32 | BPF_JSET | BPF_X: in build_insn()
1671 case BPF_JMP32 | BPF_JLE | BPF_X: in build_insn()
1672 case BPF_JMP32 | BPF_JLT | BPF_X: in build_insn()
1673 case BPF_JMP32 | BPF_JSLT | BPF_X: in build_insn()
[all …]
/Linux-v6.6/arch/x86/net/
Dbpf_jit_comp32.c2151 case BPF_JMP32 | BPF_JEQ | BPF_X: in do_jit()
2152 case BPF_JMP32 | BPF_JNE | BPF_X: in do_jit()
2153 case BPF_JMP32 | BPF_JGT | BPF_X: in do_jit()
2154 case BPF_JMP32 | BPF_JLT | BPF_X: in do_jit()
2155 case BPF_JMP32 | BPF_JGE | BPF_X: in do_jit()
2156 case BPF_JMP32 | BPF_JLE | BPF_X: in do_jit()
2157 case BPF_JMP32 | BPF_JSGT | BPF_X: in do_jit()
2158 case BPF_JMP32 | BPF_JSLE | BPF_X: in do_jit()
2159 case BPF_JMP32 | BPF_JSLT | BPF_X: in do_jit()
2160 case BPF_JMP32 | BPF_JSGE | BPF_X: { in do_jit()
[all …]
Dbpf_jit_comp.c1668 case BPF_JMP32 | BPF_JEQ | BPF_X: in do_jit()
1669 case BPF_JMP32 | BPF_JNE | BPF_X: in do_jit()
1670 case BPF_JMP32 | BPF_JGT | BPF_X: in do_jit()
1671 case BPF_JMP32 | BPF_JLT | BPF_X: in do_jit()
1672 case BPF_JMP32 | BPF_JGE | BPF_X: in do_jit()
1673 case BPF_JMP32 | BPF_JLE | BPF_X: in do_jit()
1674 case BPF_JMP32 | BPF_JSGT | BPF_X: in do_jit()
1675 case BPF_JMP32 | BPF_JSLT | BPF_X: in do_jit()
1676 case BPF_JMP32 | BPF_JSGE | BPF_X: in do_jit()
1677 case BPF_JMP32 | BPF_JSLE | BPF_X: in do_jit()
[all …]
/Linux-v6.6/samples/bpf/
Dbpf_insn.h187 .code = BPF_JMP32 | BPF_OP(OP) | BPF_X, \
207 .code = BPF_JMP32 | BPF_OP(OP) | BPF_K, \
/Linux-v6.6/tools/include/linux/
Dfilter.h222 .code = BPF_JMP32 | BPF_OP(OP) | BPF_X, \
242 .code = BPF_JMP32 | BPF_OP(OP) | BPF_K, \
/Linux-v6.6/drivers/net/ethernet/netronome/nfp/bpf/
Djit.c3513 [BPF_JMP32 | BPF_JEQ | BPF_K] = jeq32_imm,
3514 [BPF_JMP32 | BPF_JGT | BPF_K] = cmp_imm,
3515 [BPF_JMP32 | BPF_JGE | BPF_K] = cmp_imm,
3516 [BPF_JMP32 | BPF_JLT | BPF_K] = cmp_imm,
3517 [BPF_JMP32 | BPF_JLE | BPF_K] = cmp_imm,
3518 [BPF_JMP32 | BPF_JSGT | BPF_K] =cmp_imm,
3519 [BPF_JMP32 | BPF_JSGE | BPF_K] =cmp_imm,
3520 [BPF_JMP32 | BPF_JSLT | BPF_K] =cmp_imm,
3521 [BPF_JMP32 | BPF_JSLE | BPF_K] =cmp_imm,
3522 [BPF_JMP32 | BPF_JSET | BPF_K] =jset_imm,
[all …]
Dmain.h383 return mbpf_class(meta) == BPF_JMP32; in is_mbpf_jmp32()
/Linux-v6.6/Documentation/bpf/standardization/
Dinstruction-set.rst184 BPF_JMP32 0x06 32-bit jump operations `Arithmetic and jump instructions`_
192 ``BPF_JMP32``), the 8-bit 'opcode' field is divided into three parts:
343 ``BPF_JMP32`` uses 32-bit wide operands while ``BPF_JMP`` uses 64-bit wide operands for
351 BPF_JA 0x0 0x0 PC += imm BPF_JMP32 class
374 ``BPF_JSGE | BPF_X | BPF_JMP32`` (0x7e) means::
380 ``BPF_JA | BPF_K | BPF_JMP32`` (0x06) means::
388 field, whereas the ``BPF_JMP32`` class permits a 32-bit jump offset
/Linux-v6.6/Documentation/bpf/
Dclassic_vs_extended.rst266 BPF_RET 0x06 BPF_JMP32 0x06
306 If BPF_CLASS(code) == BPF_JMP or BPF_JMP32 [ in eBPF ], BPF_OP(code) is one of::
341 BPF_JMP32 to mean exactly the same operations as BPF_JMP, but with 32-bit wide
/Linux-v6.6/tools/bpf/bpftool/
Dcfg.c162 return BPF_CLASS(code) == BPF_JMP || BPF_CLASS(code) == BPF_JMP32; in is_jmp_insn()
/Linux-v6.6/include/linux/
Dfilter.h337 .code = BPF_JMP32 | BPF_OP(OP) | BPF_X, \
347 .code = BPF_JMP32 | BPF_OP(OP) | BPF_K, \

12