/kernel/linux/linux-5.10/lib/ |
D | test_bpf.c | 277 insn[1] = BPF_ALU32_IMM(BPF_MOV, R0, 0xcbababab); in bpf_fill_maxinsns9() 281 insn[i] = BPF_ALU32_IMM(BPF_MOV, R0, 0xfefefefe); in bpf_fill_maxinsns9() 308 insn[hlen] = BPF_ALU32_IMM(BPF_MOV, R0, 0xabababac); in bpf_fill_maxinsns10() 438 insn[0] = BPF_ALU32_IMM(BPF_MOV, R0, 1); in __bpf_fill_stxdw() 1141 BPF_ALU32_IMM(BPF_MOV, R0, -1), 1142 BPF_ALU32_IMM(BPF_MOV, R1, -1), 1143 BPF_ALU32_IMM(BPF_MOV, R2, 3), 1148 BPF_ALU32_IMM(BPF_MOV, R0, 1), 1158 BPF_ALU32_IMM(BPF_MOV, R0, -1), 1160 BPF_ALU32_IMM(BPF_MOV, R2, 3), [all …]
|
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/verifier/ |
D | jmp32.c | 231 BPF_ALU32_IMM(BPF_MOV, BPF_REG_0, 2), 258 BPF_ALU32_IMM(BPF_MOV, BPF_REG_0, 2), 281 BPF_ALU32_IMM(BPF_MOV, BPF_REG_0, 2), 301 BPF_ALU32_IMM(BPF_MOV, BPF_REG_0, 2), 328 BPF_ALU32_IMM(BPF_MOV, BPF_REG_0, 2), 351 BPF_ALU32_IMM(BPF_MOV, BPF_REG_0, 2), 371 BPF_ALU32_IMM(BPF_MOV, BPF_REG_0, 2), 398 BPF_ALU32_IMM(BPF_MOV, BPF_REG_0, 2), 421 BPF_ALU32_IMM(BPF_MOV, BPF_REG_0, 2), 441 BPF_ALU32_IMM(BPF_MOV, BPF_REG_0, 2), [all …]
|
D | subreg.c | 38 BPF_ALU32_IMM(BPF_ADD, BPF_REG_0, 0), 44 BPF_ALU32_IMM(BPF_ADD, BPF_REG_0, -2), 71 BPF_ALU32_IMM(BPF_SUB, BPF_REG_0, 0), 77 BPF_ALU32_IMM(BPF_SUB, BPF_REG_0, 1), 104 BPF_ALU32_IMM(BPF_MUL, BPF_REG_0, 1), 110 BPF_ALU32_IMM(BPF_MUL, BPF_REG_0, -1), 137 BPF_ALU32_IMM(BPF_DIV, BPF_REG_0, 1), 143 BPF_ALU32_IMM(BPF_DIV, BPF_REG_0, 2), 170 BPF_ALU32_IMM(BPF_OR, BPF_REG_0, 0), 176 BPF_ALU32_IMM(BPF_OR, BPF_REG_0, 1), [all …]
|
D | and.c | 33 BPF_ALU32_IMM(BPF_MOD, BPF_REG_1, 2), 34 BPF_ALU32_IMM(BPF_ADD, BPF_REG_1, 1), 36 BPF_ALU32_IMM(BPF_ADD, BPF_REG_9, 1), 37 BPF_ALU32_IMM(BPF_RSH, BPF_REG_9, 1), 40 BPF_ALU32_IMM(BPF_MUL, BPF_REG_3, 0x10000000),
|
D | bounds.c | 219 BPF_ALU32_IMM(BPF_SUB, BPF_REG_1, 0x7fffffff), 250 BPF_ALU32_IMM(BPF_ADD, BPF_REG_1, 0), 316 BPF_ALU32_IMM(BPF_ADD, BPF_REG_1, 2), 398 BPF_ALU32_IMM(BPF_RSH, BPF_REG_1, 31), 400 BPF_ALU32_IMM(BPF_SUB, BPF_REG_1, 2), 525 BPF_ALU32_IMM(BPF_ADD, BPF_REG_1, 1), 592 BPF_ALU32_IMM(BPF_XOR, BPF_REG_1, 1), 658 BPF_ALU32_IMM(BPF_XOR, BPF_REG_1, 3), 704 BPF_ALU32_IMM(BPF_XOR, BPF_REG_1, 3),
|
D | div_overflow.c | 21 BPF_ALU32_IMM(BPF_DIV, BPF_REG_0, -1), 73 BPF_ALU32_IMM(BPF_MOD, BPF_REG_0, -1),
|
D | jit.c | 7 BPF_ALU32_IMM(BPF_LSH, BPF_REG_1, 1), 11 BPF_ALU32_IMM(BPF_RSH, BPF_REG_1, 1),
|
D | basic_instr.c | 36 BPF_ALU32_IMM(BPF_ARSH, BPF_REG_0, 5), 46 BPF_ALU32_IMM(BPF_ARSH, BPF_REG_0, 7),
|
D | array_access.c | 76 BPF_ALU32_IMM(BPF_LSH, BPF_REG_1, 2), 157 BPF_ALU32_IMM(BPF_LSH, BPF_REG_1, 2), 182 BPF_ALU32_IMM(BPF_LSH, BPF_REG_1, 2),
|
D | value_illegal_alu.c | 27 BPF_ALU32_IMM(BPF_ADD, BPF_REG_0, 0),
|
D | search_pruning.c | 71 BPF_ALU32_IMM(BPF_LSH, BPF_REG_1, 2),
|
D | unpriv.c | 416 BPF_ALU32_IMM(BPF_AND, BPF_REG_7, 1),
|
/kernel/linux/linux-5.10/samples/bpf/ |
D | bpf_insn.h | 36 #define BPF_ALU32_IMM(OP, DST, IMM) \ macro
|
/kernel/linux/linux-5.10/tools/include/linux/ |
D | filter.h | 60 #define BPF_ALU32_IMM(OP, DST, IMM) \ macro
|
/kernel/linux/linux-5.10/kernel/bpf/ |
D | core.c | 1009 *to++ = BPF_ALU32_IMM(BPF_MOV, BPF_REG_AX, imm_rnd ^ from->imm); in bpf_jit_blind_insn() 1010 *to++ = BPF_ALU32_IMM(BPF_XOR, BPF_REG_AX, imm_rnd); in bpf_jit_blind_insn() 1063 *to++ = BPF_ALU32_IMM(BPF_MOV, BPF_REG_AX, imm_rnd ^ from->imm); in bpf_jit_blind_insn() 1064 *to++ = BPF_ALU32_IMM(BPF_XOR, BPF_REG_AX, imm_rnd); in bpf_jit_blind_insn() 1076 *to++ = BPF_ALU32_IMM(BPF_MOV, BPF_REG_AX, imm_rnd ^ aux[0].imm); in bpf_jit_blind_insn() 1077 *to++ = BPF_ALU32_IMM(BPF_XOR, BPF_REG_AX, imm_rnd); in bpf_jit_blind_insn()
|
D | arraymap.c | 233 *insn++ = BPF_ALU32_IMM(BPF_AND, ret, array->index_mask); in array_map_gen_lookup() 1274 *insn++ = BPF_ALU32_IMM(BPF_AND, ret, array->index_mask); in array_of_map_gen_lookup()
|
D | verifier.c | 11113 insn_buf[cnt++] = BPF_ALU32_IMM(BPF_RSH, in convert_ctx_accesses() 11116 insn_buf[cnt++] = BPF_ALU32_IMM(BPF_AND, insn->dst_reg, in convert_ctx_accesses() 11594 insn_buf[1] = BPF_ALU32_IMM(BPF_AND, BPF_REG_3, in fixup_bpf_calls()
|
/kernel/linux/linux-5.10/net/core/ |
D | filter.c | 304 *insn++ = BPF_ALU32_IMM(BPF_AND, dst_reg, PKT_TYPE_MAX); in convert_skb_access() 306 *insn++ = BPF_ALU32_IMM(BPF_RSH, dst_reg, 5); in convert_skb_access() 327 *insn++ = BPF_ALU32_IMM(BPF_RSH, dst_reg, PKT_VLAN_PRESENT_BIT); in convert_skb_access() 329 *insn++ = BPF_ALU32_IMM(BPF_AND, dst_reg, 1); in convert_skb_access() 787 *insn++ = BPF_ALU32_IMM(BPF_AND, BPF_REG_A, 0xf); in bpf_convert_filter() 789 *insn++ = BPF_ALU32_IMM(BPF_LSH, BPF_REG_A, 2); in bpf_convert_filter() 7769 *insn++ = BPF_ALU32_IMM(BPF_AND, BPF_REG_6, CLONED_MASK); in bpf_unclone_prologue() 7782 *insn++ = BPF_ALU32_IMM(BPF_MOV, BPF_REG_0, drop_verdict); in bpf_unclone_prologue() 8356 *insn++ = BPF_ALU32_IMM(BPF_AND, si->dst_reg, PKT_TYPE_MAX); in bpf_convert_ctx_access() 8358 *insn++ = BPF_ALU32_IMM(BPF_RSH, si->dst_reg, 5); in bpf_convert_ctx_access() [all …]
|
/kernel/linux/linux-5.10/include/linux/ |
D | filter.h | 119 #define BPF_ALU32_IMM(OP, DST, IMM) \ macro
|