/linux/lib/ |
A D | test_bpf.c | 3741 BPF_ALU32_IMM(BPF_MOV, R2, 3), 3746 BPF_ALU32_IMM(BPF_MOV, R0, 1), 3758 BPF_ALU32_IMM(BPF_MOV, R2, 3), 3763 BPF_ALU32_IMM(BPF_MOV, R0, 1), 3936 BPF_ALU32_IMM(BPF_MOV, R1, 1), 3937 BPF_ALU32_IMM(BPF_MOV, R2, 2), 3938 BPF_ALU32_IMM(BPF_MOV, R3, 3), 3939 BPF_ALU32_IMM(BPF_MOV, R4, 4), 3940 BPF_ALU32_IMM(BPF_MOV, R5, 5), 6373 BPF_ALU32_IMM(BPF_OR, R0, 2), [all …]
|
/linux/tools/testing/selftests/bpf/verifier/ |
A 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 …]
|
A 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 …]
|
A 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),
|
A D | jit.c | 7 BPF_ALU32_IMM(BPF_LSH, BPF_REG_1, 1), 11 BPF_ALU32_IMM(BPF_RSH, BPF_REG_1, 1), 82 BPF_ALU32_IMM(BPF_MUL, BPF_REG_3, 0xefefef), 88 BPF_ALU32_IMM(BPF_MUL, BPF_REG_0, 0x2b),
|
A 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),
|
A D | div_overflow.c | 21 BPF_ALU32_IMM(BPF_DIV, BPF_REG_0, -1), 73 BPF_ALU32_IMM(BPF_MOD, BPF_REG_0, -1),
|
A D | search_pruning.c | 71 BPF_ALU32_IMM(BPF_LSH, BPF_REG_1, 2), 183 BPF_ALU32_IMM(BPF_DIV, BPF_REG_3, 0), 198 BPF_ALU32_IMM(BPF_DIV, BPF_REG_3, 0),
|
A D | basic_instr.c | 36 BPF_ALU32_IMM(BPF_ARSH, BPF_REG_0, 5), 46 BPF_ALU32_IMM(BPF_ARSH, BPF_REG_0, 7),
|
A 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),
|
A D | value_illegal_alu.c | 27 BPF_ALU32_IMM(BPF_ADD, BPF_REG_0, 0),
|
A D | unpriv.c | 417 BPF_ALU32_IMM(BPF_AND, BPF_REG_7, 1),
|
/linux/samples/bpf/ |
A D | bpf_insn.h | 36 #define BPF_ALU32_IMM(OP, DST, IMM) \ macro
|
/linux/kernel/bpf/ |
A D | core.c | 1012 *to++ = BPF_ALU32_IMM(BPF_MOV, BPF_REG_AX, imm_rnd ^ from->imm); in bpf_jit_blind_insn() 1013 *to++ = BPF_ALU32_IMM(BPF_XOR, BPF_REG_AX, imm_rnd); in bpf_jit_blind_insn() 1066 *to++ = BPF_ALU32_IMM(BPF_MOV, BPF_REG_AX, imm_rnd ^ from->imm); in bpf_jit_blind_insn() 1067 *to++ = BPF_ALU32_IMM(BPF_XOR, BPF_REG_AX, imm_rnd); in bpf_jit_blind_insn() 1079 *to++ = BPF_ALU32_IMM(BPF_MOV, BPF_REG_AX, imm_rnd ^ aux[0].imm); in bpf_jit_blind_insn() 1080 *to++ = BPF_ALU32_IMM(BPF_XOR, BPF_REG_AX, imm_rnd); in bpf_jit_blind_insn()
|
A D | arraymap.c | 217 *insn++ = BPF_ALU32_IMM(BPF_AND, ret, array->index_mask); in array_map_gen_lookup() 1320 *insn++ = BPF_ALU32_IMM(BPF_AND, ret, array->index_mask); in array_of_map_gen_lookup()
|
A D | verifier.c | 12549 insn_buf[cnt++] = BPF_ALU32_IMM(BPF_RSH, in convert_ctx_accesses() 12552 insn_buf[cnt++] = BPF_ALU32_IMM(BPF_AND, insn->dst_reg, in convert_ctx_accesses() 13090 insn_buf[1] = BPF_ALU32_IMM(BPF_AND, BPF_REG_3, in do_misc_fixups()
|
/linux/tools/include/linux/ |
A D | filter.h | 60 #define BPF_ALU32_IMM(OP, DST, IMM) \ macro
|
/linux/net/core/ |
A D | filter.c | 305 *insn++ = BPF_ALU32_IMM(BPF_AND, dst_reg, PKT_TYPE_MAX); in convert_skb_access() 307 *insn++ = BPF_ALU32_IMM(BPF_RSH, dst_reg, 5); in convert_skb_access() 330 *insn++ = BPF_ALU32_IMM(BPF_AND, dst_reg, 1); in convert_skb_access() 788 *insn++ = BPF_ALU32_IMM(BPF_AND, BPF_REG_A, 0xf); in bpf_convert_filter() 790 *insn++ = BPF_ALU32_IMM(BPF_LSH, BPF_REG_A, 2); in bpf_convert_filter() 8033 *insn++ = BPF_ALU32_IMM(BPF_AND, BPF_REG_6, CLONED_MASK); in bpf_unclone_prologue() 8623 *insn++ = BPF_ALU32_IMM(BPF_RSH, si->dst_reg, 5); in bpf_convert_ctx_access() 8649 *insn++ = BPF_ALU32_IMM(BPF_AND, si->dst_reg, 1); in bpf_convert_ctx_access() 8835 *insn++ = BPF_ALU32_IMM(BPF_LSH, si->dst_reg, 16); in bpf_convert_ctx_access() 9585 *insn++ = BPF_ALU32_IMM(BPF_LSH, si->dst_reg, 16); in sock_ops_convert_ctx_access() [all …]
|
/linux/include/linux/ |
A D | filter.h | 118 #define BPF_ALU32_IMM(OP, DST, IMM) \ macro
|
/linux/tools/lib/bpf/ |
A D | gen_loader.c | 848 emit(gen, BPF_ALU32_IMM(BPF_AND, BPF_REG_9, reg_mask)); in emit_relo_ksym_btf()
|