Home
last modified time | relevance | path

Searched refs:BPF_SUB (Results 1 – 25 of 42) sorted by relevance

12

/Linux-v6.6/lib/
Dtest_bpf.c237 insn[len - 2] = __BPF_STMT(BPF_ALU | BPF_SUB | BPF_X, 0); in bpf_fill_maxinsns7()
500 BPF_SUB, BPF_MUL, BPF_DIV, BPF_MOD, in __bpf_fill_max_jmp()
573 case BPF_SUB: in __bpf_alu_result()
1058 return __bpf_fill_alu64_imm(self, BPF_SUB); in bpf_fill_alu64_sub_imm()
1104 return __bpf_fill_alu32_imm(self, BPF_SUB); in bpf_fill_alu32_sub_imm()
1150 return __bpf_fill_alu64_reg(self, BPF_SUB); in bpf_fill_alu64_sub_reg()
1196 return __bpf_fill_alu32_reg(self, BPF_SUB); in bpf_fill_alu32_sub_reg()
1318 return __bpf_fill_alu_imm_regs(self, BPF_SUB, false); in bpf_fill_alu64_sub_imm_regs()
1379 return __bpf_fill_alu_imm_regs(self, BPF_SUB, true); in bpf_fill_alu32_sub_imm_regs()
1510 return __bpf_fill_alu_reg_pairs(self, BPF_SUB, false); in bpf_fill_alu64_sub_reg_pairs()
[all …]
/Linux-v6.6/tools/testing/selftests/bpf/verifier/
Datomic_or.c55 BPF_ALU64_IMM(BPF_SUB, BPF_REG_0, 1),
83 BPF_ALU64_IMM(BPF_SUB, BPF_REG_1, 1),
92 BPF_ALU64_IMM(BPF_SUB, BPF_REG_2, 1),
Datomic_cmpxchg.c102 BPF_ALU64_IMM(BPF_SUB, BPF_REG_0, 1),
111 BPF_ALU64_IMM(BPF_SUB, BPF_REG_1, 1),
Dbpf_st_mem.c49 BPF_ALU64_IMM(BPF_SUB, BPF_REG_0, 32),
Dld_abs.c136 BPF_ALU32_REG(BPF_SUB, BPF_REG_0, BPF_REG_7),
149 BPF_ALU32_REG(BPF_SUB, BPF_REG_0, BPF_REG_7),
Dprecise.c25 BPF_ALU64_REG(BPF_SUB, BPF_REG_9, BPF_REG_8), /* map_value_ptr -= map_value_ptr */
84 BPF_ALU64_REG(BPF_SUB, BPF_REG_9, BPF_REG_8), /* map_value_ptr -= map_value_ptr */
Datomic_xor.c55 BPF_ALU64_IMM(BPF_SUB, BPF_REG_0, 1),
Datomic_and.c55 BPF_ALU64_IMM(BPF_SUB, BPF_REG_0, 1),
Dbasic_instr.c7 BPF_ALU64_REG(BPF_SUB, BPF_REG_1, BPF_REG_2),
/Linux-v6.6/tools/include/uapi/linux/
Dbpf_common.h33 #define BPF_SUB 0x10 macro
/Linux-v6.6/include/uapi/linux/
Dbpf_common.h33 #define BPF_SUB 0x10 macro
/Linux-v6.6/tools/testing/selftests/bpf/prog_tests/
Dalign.c438 BPF_ALU64_REG(BPF_SUB, BPF_REG_5, BPF_REG_2),
495 BPF_ALU64_REG(BPF_SUB, BPF_REG_6, BPF_REG_7),
548 BPF_ALU64_REG(BPF_SUB, BPF_REG_5, BPF_REG_6),
/Linux-v6.6/arch/mips/net/
Dbpf_jit_comp32.c213 op = BPF_SUB; in emit_alu_i64()
216 case BPF_SUB: in emit_alu_i64()
235 case BPF_SUB: in emit_alu_i64()
284 case BPF_SUB: in emit_alu_r64()
744 case BPF_SUB: in emit_atomic_r32()
747 case BPF_SUB | BPF_FETCH: in emit_atomic_r32()
825 case BPF_SUB: in emit_atomic_r64()
828 case BPF_SUB | BPF_FETCH: in emit_atomic_r64()
1515 case BPF_ALU | BPF_SUB | BPF_K: in build_insn()
1545 case BPF_ALU | BPF_SUB | BPF_X: in build_insn()
[all …]
Dbpf_jit_comp64.c190 case BPF_SUB: in emit_alu_i64()
221 case BPF_SUB: in emit_alu_r64()
695 case BPF_ALU | BPF_SUB | BPF_K: in build_insn()
730 case BPF_ALU | BPF_SUB | BPF_X: in build_insn()
769 case BPF_ALU64 | BPF_SUB | BPF_K: in build_insn()
798 case BPF_ALU64 | BPF_SUB | BPF_X: in build_insn()
Dbpf_jit_comp.c225 case BPF_SUB: in valid_alu_i()
256 case BPF_SUB: in rewrite_alu_i()
334 case BPF_SUB: in emit_alu_i()
374 case BPF_SUB: in emit_alu_r()
/Linux-v6.6/tools/bpf/
Dbpf_exp.y358 bpf_set_curr_instr(BPF_ALU | BPF_SUB | BPF_K, 0, 0, $3); }
360 bpf_set_curr_instr(BPF_ALU | BPF_SUB | BPF_X, 0, 0, 0); }
362 bpf_set_curr_instr(BPF_ALU | BPF_SUB | BPF_X, 0, 0, 0); }
/Linux-v6.6/arch/riscv/net/
Dbpf_jit_comp32.c345 case BPF_SUB: in emit_alu_i32()
432 case BPF_SUB: in emit_alu_r64()
526 case BPF_SUB: in emit_alu_r32()
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()
1024 case BPF_ALU | BPF_SUB | BPF_X: in bpf_jit_emit_insn()
1050 case BPF_ALU | BPF_SUB | BPF_K: in bpf_jit_emit_insn()
/Linux-v6.6/arch/parisc/net/
Dbpf_jit_comp32.c529 case BPF_SUB: in emit_alu_i32()
587 case BPF_SUB: in emit_alu_r64()
653 case BPF_SUB: in emit_alu_r32()
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()
1193 case BPF_ALU | BPF_SUB | BPF_X: in bpf_jit_emit_insn()
1220 case BPF_ALU | BPF_SUB | BPF_K: in bpf_jit_emit_insn()
Dbpf_jit_comp64.c628 case BPF_ALU | BPF_SUB | BPF_X: in bpf_jit_emit_insn()
629 case BPF_ALU64 | BPF_SUB | BPF_X: in bpf_jit_emit_insn()
790 case BPF_ALU | BPF_SUB | BPF_K: in bpf_jit_emit_insn()
791 case BPF_ALU64 | BPF_SUB | BPF_K: in bpf_jit_emit_insn()
/Linux-v6.6/arch/powerpc/net/
Dbpf_jit_comp32.c359 case BPF_ALU | BPF_SUB | BPF_X: /* (u32) dst -= (u32) src */ in bpf_jit_build_body()
362 case BPF_ALU64 | BPF_SUB | BPF_X: /* dst -= src */ in bpf_jit_build_body()
366 case BPF_ALU | BPF_SUB | BPF_K: /* (u32) dst -= (u32) imm */ in bpf_jit_build_body()
379 case BPF_ALU64 | BPF_SUB | BPF_K: /* dst -= imm */ in bpf_jit_build_body()
394 if (imm >= 0 || (BPF_OP(code) == BPF_SUB && imm == 0x80000000)) in bpf_jit_build_body()
Dbpf_jit_comp64.c422 case BPF_ALU | BPF_SUB | BPF_X: /* (u32) dst -= (u32) src */ in bpf_jit_build_body()
423 case BPF_ALU64 | BPF_SUB | BPF_X: /* dst -= src */ in bpf_jit_build_body()
437 case BPF_ALU | BPF_SUB | BPF_K: /* (u32) dst -= (u32) imm */ in bpf_jit_build_body()
438 case BPF_ALU64 | BPF_SUB | BPF_K: /* dst -= imm */ in bpf_jit_build_body()
/Linux-v6.6/arch/loongarch/net/
Dbpf_jit.c501 case BPF_ALU | BPF_SUB | BPF_X: in build_insn()
502 case BPF_ALU64 | BPF_SUB | BPF_X: in build_insn()
508 case BPF_ALU | BPF_SUB | BPF_K: in build_insn()
509 case BPF_ALU64 | BPF_SUB | BPF_K: in build_insn()
/Linux-v6.6/arch/x86/net/
Dbpf_jit_comp32.c549 case BPF_SUB: in emit_ia32_alu_r()
630 case BPF_SUB: in emit_ia32_alu_i()
1720 case BPF_ALU | BPF_SUB | BPF_K: in do_jit()
1721 case BPF_ALU | BPF_SUB | 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()
Dbpf_jit_comp.c217 [BPF_SUB] = 0x29,
1069 case BPF_ALU | BPF_SUB | BPF_X: in do_jit()
1074 case BPF_ALU64 | BPF_SUB | BPF_X: in do_jit()
1105 case BPF_ALU | BPF_SUB | BPF_K: in do_jit()
1110 case BPF_ALU64 | BPF_SUB | BPF_K: in do_jit()
1126 case BPF_SUB: in do_jit()
/Linux-v6.6/arch/arm/net/
Dbpf_jit_32.c681 case BPF_SUB: in emit_alu_r()
1406 case BPF_ALU | BPF_SUB | BPF_K: in build_insn()
1407 case BPF_ALU | BPF_SUB | 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()

12