Home
last modified time | relevance | path

Searched refs:BPF_REG_3 (Results 1 – 25 of 44) sorted by relevance

12

/linux/tools/testing/selftests/bpf/prog_tests/
H A Dalign.c33 BPF_MOV64_IMM(BPF_REG_3, 2),
34 BPF_MOV64_IMM(BPF_REG_3, 4),
35 BPF_MOV64_IMM(BPF_REG_3, 8),
36 BPF_MOV64_IMM(BPF_REG_3, 16),
37 BPF_MOV64_IMM(BPF_REG_3, 32),
55 BPF_MOV64_IMM(BPF_REG_3, 1),
56 BPF_ALU64_IMM(BPF_LSH, BPF_REG_3, 1),
57 BPF_ALU64_IMM(BPF_LSH, BPF_REG_3, 1),
58 BPF_ALU64_IMM(BPF_LSH, BPF_REG_3, 1),
59 BPF_ALU64_IMM(BPF_LSH, BPF_REG_3, 1),
[all …]
H A Dflow_dissector_load_bytes.c13 BPF_ALU64_REG(BPF_MOV, BPF_REG_3, BPF_REG_10), in serial_test_flow_dissector_load_bytes()
14 BPF_ALU64_IMM(BPF_ADD, BPF_REG_3, -1), in serial_test_flow_dissector_load_bytes()
H A Dcgroup_attach_multi.c59 BPF_LDX_MEM(BPF_W, BPF_REG_3, BPF_REG_0, 0), in prog_load_cnt()
60 BPF_ALU64_IMM(BPF_ADD, BPF_REG_3, 0x1), in prog_load_cnt()
61 BPF_STX_MEM(BPF_W, BPF_REG_0, BPF_REG_3, 0), in prog_load_cnt()
/linux/tools/testing/selftests/bpf/verifier/
H A Djit.c84 BPF_LD_IMM64(BPF_REG_3, 0xfefefeULL),
85 BPF_ALU64_REG(BPF_MUL, BPF_REG_3, BPF_REG_1),
86 BPF_JMP_REG(BPF_JEQ, BPF_REG_3, BPF_REG_2, 2),
89 BPF_LD_IMM64(BPF_REG_3, 0xfefefeULL),
90 BPF_ALU64_IMM(BPF_MUL, BPF_REG_3, 0xefefef),
91 BPF_JMP_REG(BPF_JEQ, BPF_REG_3, BPF_REG_2, 2),
100 BPF_LD_IMM64(BPF_REG_3, 0xfefefeULL),
101 BPF_ALU32_REG(BPF_MUL, BPF_REG_3, BPF_REG_1),
102 BPF_JMP_REG(BPF_JEQ, BPF_REG_3, BPF_REG_2, 2),
105 BPF_LD_IMM64(BPF_REG_3, 0xfefefeULL),
[all …]
H A Dprecise.c33 BPF_MOV64_IMM(BPF_REG_3, 0),
92 BPF_MOV64_IMM(BPF_REG_3, 0),
145 BPF_MOV64_REG(BPF_REG_3, BPF_REG_10),
146 BPF_JMP_IMM(BPF_JNE, BPF_REG_3, 123, 0),
148 BPF_ST_MEM(BPF_DW, BPF_REG_3, -8, 0),
175 BPF_MOV64_REG(BPF_REG_3, BPF_REG_10),
176 BPF_JMP_IMM(BPF_JNE, BPF_REG_3, 123, 0),
177 BPF_STX_MEM(BPF_DW, BPF_REG_3, BPF_REG_0, -8),
211 BPF_MOV64_IMM(BPF_REG_3, 0),
256 BPF_LDX_MEM(BPF_DW, BPF_REG_3, BPF_REG_0, 0),
[all …]
H A Djump.c144 BPF_MOV64_REG(BPF_REG_3, BPF_REG_2),
146 BPF_STX_MEM(BPF_DW, BPF_REG_2, BPF_REG_3, -8),
152 BPF_STX_MEM(BPF_DW, BPF_REG_2, BPF_REG_3, -8),
158 BPF_STX_MEM(BPF_DW, BPF_REG_2, BPF_REG_3, -8),
164 BPF_STX_MEM(BPF_DW, BPF_REG_2, BPF_REG_3, -8),
170 BPF_STX_MEM(BPF_DW, BPF_REG_2, BPF_REG_3, -8),
380 BPF_MOV64_IMM(BPF_REG_3, 0),
381 BPF_ALU64_IMM(BPF_NEG, BPF_REG_3, 0),
382 BPF_ALU64_IMM(BPF_NEG, BPF_REG_3, 0),
383 BPF_ALU64_IMM(BPF_OR, BPF_REG_3, 32767),
[all …]
H A Dbasic_instr.c154 BPF_LD_IMM64(BPF_REG_3, 0),
155 BPF_ALU64_REG(BPF_RSH, BPF_REG_1, BPF_REG_3),
169 BPF_LD_IMM64(BPF_REG_3, 0),
170 BPF_ALU64_REG(BPF_ARSH, BPF_REG_1, BPF_REG_3),
210 BPF_MOV64_IMM(BPF_REG_3, 0),
211 BPF_MOV64_REG(BPF_REG_2, BPF_REG_3),
H A Dbpf_loop_inline.c48 BPF_ALU64_IMM(BPF_MOV, BPF_REG_3, 0),
81 BPF_ALU64_IMM(BPF_MOV, BPF_REG_3, 0),
117 BPF_ALU64_IMM(BPF_MOV, BPF_REG_3, 0),
156 BPF_ALU64_IMM(BPF_MOV, BPF_REG_3, 0),
191 BPF_ALU64_IMM(BPF_MOV, BPF_REG_3, 0),
198 BPF_ALU64_IMM(BPF_MOV, BPF_REG_3, 0),
210 BPF_ALU64_IMM(BPF_MOV, BPF_REG_3, 0),
H A Dcalls.c332 BPF_MOV32_IMM(BPF_REG_3, 1),
333 BPF_ALU32_REG(BPF_DIV, BPF_REG_3, BPF_REG_2),
955 BPF_MOV64_IMM(BPF_REG_3, 2),
1570 BPF_MOV64_REG(BPF_REG_3, BPF_REG_7),
1586 BPF_LDX_MEM(BPF_DW, BPF_REG_0, BPF_REG_3, 0),
1642 BPF_MOV64_REG(BPF_REG_3, BPF_REG_7),
1658 BPF_LDX_MEM(BPF_DW, BPF_REG_0, BPF_REG_3, 0),
1711 BPF_MOV64_REG(BPF_REG_3, BPF_REG_7),
1727 BPF_LDX_MEM(BPF_DW, BPF_REG_0, BPF_REG_3, 0),
1782 BPF_MOV64_REG(BPF_REG_3, BPF_REG_7),
[all …]
H A Datomic_fetch.c124 __ATOMIC_FETCH_OP_TEST(BPF_REG_2, BPF_REG_3, 1, BPF_ADD | BPF_FETCH, 2, 3),
130 __ATOMIC_FETCH_OP_TEST(BPF_REG_2, BPF_REG_3, 0x010, BPF_AND | BPF_FETCH, 0x011, 0x010),
136 __ATOMIC_FETCH_OP_TEST(BPF_REG_2, BPF_REG_3, 0x010, BPF_OR | BPF_FETCH, 0x011, 0x011),
142 __ATOMIC_FETCH_OP_TEST(BPF_REG_2, BPF_REG_3, 0x010, BPF_XOR | BPF_FETCH, 0x011, 0x001),
148 __ATOMIC_FETCH_OP_TEST(BPF_REG_2, BPF_REG_3, 0x010, BPF_XCHG, 0x011, 0x011),
H A Dctx_skb.c320 BPF_LDX_MEM(BPF_W, BPF_REG_3, BPF_REG_1,
324 BPF_JMP_REG(BPF_JGT, BPF_REG_0, BPF_REG_3, 1),
337 BPF_LDX_MEM(BPF_W, BPF_REG_3, BPF_REG_1,
341 BPF_JMP_REG(BPF_JGT, BPF_REG_0, BPF_REG_3, 1),
354 BPF_LDX_MEM(BPF_W, BPF_REG_3, BPF_REG_1,
358 BPF_JMP_REG(BPF_JGT, BPF_REG_0, BPF_REG_3, 4),
361 BPF_JMP_REG(BPF_JGT, BPF_REG_1, BPF_REG_3, 1),
1159 BPF_MOV64_REG(BPF_REG_3, BPF_REG_4), // 2. r3 = r4
1160 BPF_ALU64_IMM(BPF_ADD, BPF_REG_3, 42), // 3. r3 += 42
1162 BPF_JMP_REG(BPF_JGT, BPF_REG_3, BPF_REG_2, 2), // 5. if r3 > r2 goto 8
[all …]
H A Dld_abs.c29 BPF_MOV64_IMM(BPF_REG_3, 0),
31 BPF_MOV64_REG(BPF_REG_0, BPF_REG_3),
83 BPF_MOV64_IMM(BPF_REG_3, 2),
259 BPF_MOV64_IMM(BPF_REG_3, 2),
H A Dmap_kptr.c54 BPF_MOV64_REG(BPF_REG_3, BPF_REG_0),
63 BPF_ALU64_REG(BPF_ADD, BPF_REG_3, BPF_REG_2),
64 BPF_LDX_MEM(BPF_DW, BPF_REG_0, BPF_REG_3, 0),
85 BPF_MOV64_REG(BPF_REG_3, BPF_REG_0),
94 BPF_ALU64_REG(BPF_ADD, BPF_REG_3, BPF_REG_2),
95 BPF_MOV64_REG(BPF_REG_1, BPF_REG_3),
H A Datomic_fetch_add.c95 BPF_MOV64_IMM(BPF_REG_3, 1),
96 BPF_ATOMIC_OP(BPF_DW, BPF_ADD | BPF_FETCH, BPF_REG_2, BPF_REG_3, 0),
H A Devent_output.c33 BPF_MOV64_IMM(BPF_REG_3, 0), \
/linux/tools/testing/selftests/bpf/
H A Dtest_sysctl.c238 BPF_MOV64_IMM(BPF_REG_3, 8),
279 BPF_MOV64_IMM(BPF_REG_3, 7),
323 BPF_MOV64_IMM(BPF_REG_3, 17),
377 BPF_MOV64_IMM(BPF_REG_3, 16),
425 BPF_MOV64_IMM(BPF_REG_3, 7),
464 BPF_MOV64_IMM(BPF_REG_3, 8),
503 BPF_MOV64_IMM(BPF_REG_3, 7),
542 BPF_MOV64_IMM(BPF_REG_3, 6),
579 BPF_MOV64_IMM(BPF_REG_3, 8),
615 BPF_MOV64_IMM(BPF_REG_3, 8),
[all …]
H A Dtest_verifier.c204 insn[i++] = BPF_MOV64_IMM(BPF_REG_3, 2); in bpf_fill_ld_abs_vlan_push_pop()
443 insn[i++] = BPF_ALU64_IMM(BPF_MOV, BPF_REG_3, 0); in bpf_fill_big_prog_with_loop_1()
474 BPF_MOV64_IMM(BPF_REG_3, sizeof(struct bpf_sock_tuple)), \
487 BPF_LDX_MEM(BPF_W, BPF_REG_3, BPF_REG_1, \
491 BPF_JMP_REG(BPF_JLE, BPF_REG_4, BPF_REG_3, 1), \
589 BPF_MOV64_IMM(BPF_REG_3, idx), in create_prog_dummy_loop()
H A Dtest_lru_map.c48 BPF_LD_IMM64(BPF_REG_3, key), in bpf_map_lookup_elem_with_ref_bit()
51 BPF_STX_MEM(BPF_DW, BPF_REG_2, BPF_REG_3, 0), in bpf_map_lookup_elem_with_ref_bit()
/linux/tools/perf/util/
H A Dbpf-prologue.h
/linux/samples/bpf/
H A Dcookie_uid_helper_example.c137 BPF_MOV64_REG(BPF_REG_3, BPF_REG_10), in prog_load()
138 BPF_ALU64_IMM(BPF_ADD, BPF_REG_3, -32), in prog_load()
/linux/tools/testing/selftests/bpf/progs/
H A Dverifier_ld_ind.c56 : __imm_insn(ld_ind, BPF_LD_IND(BPF_W, BPF_REG_3, -0x200000)) in ind_check_calling_conv_r3()
/linux/arch/x86/net/
H A Dbpf_jit_comp.c182 [BPF_REG_3] = 2, /* RDX */
200 [BPF_REG_3] = offsetof(struct pt_regs, dx),
1689 if (dst_reg != BPF_REG_3) in do_jit()
1694 src_reg == BPF_REG_3) { in do_jit()
1731 dst_reg != BPF_REG_3) in do_jit()
1733 emit_mov_reg(&prog, is64, dst_reg, BPF_REG_3); in do_jit()
1739 if (dst_reg != BPF_REG_3) in do_jit()
3293 EMIT1(add_1mod(0x48, BPF_REG_3)); /* cmp rdx,func */ in emit_bpf_dispatcher()
3296 EMIT2_off32(0x81, add_1reg(0xF8, BPF_REG_3), in emit_bpf_dispatcher()
3314 EMIT1(add_1mod(0x48, BPF_REG_3)); /* cmp rdx,func */ in emit_bpf_dispatcher()
[all …]
/linux/arch/parisc/net/
H A Dbpf_jit_comp64.c24 [BPF_REG_3] = HPPA_R(7),
351 const s8 idx_reg = regmap[BPF_REG_3]; in emit_bpf_tail_call()
471 emit_hppa_copy(regmap[BPF_REG_3], HPPA_REG_ARG2, ctx); in emit_call()
1169 LOAD_PARAM(HPPA_REG_ARG2, BPF_REG_3); in bpf_jit_build_prologue()
/linux/tools/include/linux/
H A Dfilter.h16 #define BPF_REG_ARG3 BPF_REG_3
/linux/drivers/net/ethernet/netronome/nfp/bpf/
H A Dverifier.c86 const struct bpf_reg_state *reg3 = cur_regs(env) + BPF_REG_3; in nfp_bpf_map_update_value_ok()
176 const struct bpf_reg_state *reg3 = cur_regs(env) + BPF_REG_3; in nfp_bpf_check_helper_call()

12