Home
last modified time | relevance | path

Searched refs:BPF_REG_6 (Results 1 – 25 of 45) sorted by relevance

12

/openbmc/linux/tools/testing/selftests/bpf/prog_tests/
H A Dalign.c250 LOAD_UNKNOWN(BPF_REG_6),
251 BPF_ALU64_IMM(BPF_LSH, BPF_REG_6, 2),
368 LOAD_UNKNOWN(BPF_REG_6),
369 BPF_ALU64_IMM(BPF_LSH, BPF_REG_6, 2),
382 BPF_ALU64_IMM(BPF_LSH, BPF_REG_6, 2),
448 BPF_MOV64_REG(BPF_REG_6, BPF_REG_2),
451 BPF_MOV64_REG(BPF_REG_4, BPF_REG_6),
487 LOAD_UNKNOWN(BPF_REG_6),
488 BPF_MOV64_REG(BPF_REG_7, BPF_REG_6),
541 LOAD_UNKNOWN(BPF_REG_6),
[all …]
H A Dsockopt.c129 BPF_LDX_MEM(BPF_W, BPF_REG_6, BPF_REG_1,
133 BPF_JMP_IMM(BPF_JNE, BPF_REG_6, 123, 4),
237 BPF_JMP_IMM(BPF_JNE, BPF_REG_6, 64, 4),
289 BPF_MOV64_REG(BPF_REG_2, BPF_REG_6),
291 BPF_ALU64_IMM(BPF_ADD, BPF_REG_6, 1),
378 BPF_MOV64_REG(BPF_REG_2, BPF_REG_6),
380 BPF_ALU64_IMM(BPF_ADD, BPF_REG_6, 1),
688 BPF_MOV64_REG(BPF_REG_2, BPF_REG_6),
725 BPF_MOV64_REG(BPF_REG_2, BPF_REG_6),
830 BPF_MOV64_REG(BPF_REG_7, BPF_REG_6),
[all …]
H A Draw_tp_writable_test_run.c13 BPF_LDX_MEM(BPF_DW, BPF_REG_6, BPF_REG_1, 0), in serial_test_raw_tp_writable_test_run()
14 BPF_LDX_MEM(BPF_W, BPF_REG_0, BPF_REG_6, 0), in serial_test_raw_tp_writable_test_run()
16 BPF_STX_MEM(BPF_W, BPF_REG_6, BPF_REG_0, 0), in serial_test_raw_tp_writable_test_run()
H A Draw_tp_writable_reject_nbd_invalid.c14 BPF_LDX_MEM(BPF_DW, BPF_REG_6, BPF_REG_1, 0), in test_raw_tp_writable_reject_nbd_invalid()
16 BPF_LDX_MEM(BPF_B, BPF_REG_0, BPF_REG_6, in test_raw_tp_writable_reject_nbd_invalid()
/openbmc/linux/tools/testing/selftests/bpf/verifier/
H A Dmap_kptr.c6 BPF_LD_MAP_FD(BPF_REG_6, 0),
7 BPF_MOV64_REG(BPF_REG_1, BPF_REG_6),
26 BPF_LD_MAP_FD(BPF_REG_6, 0),
46 BPF_LD_MAP_FD(BPF_REG_6, 0),
77 BPF_LD_MAP_FD(BPF_REG_6, 0),
109 BPF_LD_MAP_FD(BPF_REG_6, 0),
131 BPF_LD_MAP_FD(BPF_REG_6, 0),
161 BPF_LD_MAP_FD(BPF_REG_6, 0),
185 BPF_LD_MAP_FD(BPF_REG_6, 0),
206 BPF_LD_MAP_FD(BPF_REG_6, 0),
[all …]
H A Dld_abs.c4 BPF_MOV64_REG(BPF_REG_6, BPF_REG_1),
16 BPF_MOV64_REG(BPF_REG_6, BPF_REG_1),
28 BPF_MOV64_REG(BPF_REG_6, BPF_REG_1),
40 BPF_MOV64_REG(BPF_REG_6, BPF_REG_1),
52 BPF_MOV64_REG(BPF_REG_6, BPF_REG_1),
64 BPF_MOV64_REG(BPF_REG_6, BPF_REG_1),
75 BPF_MOV64_REG(BPF_REG_6, BPF_REG_1),
79 BPF_MOV64_REG(BPF_REG_7, BPF_REG_6),
80 BPF_MOV64_IMM(BPF_REG_6, 0),
85 BPF_MOV64_REG(BPF_REG_6, BPF_REG_7),
[all …]
H A Dprecise.c5 BPF_LD_MAP_FD(BPF_REG_6, 0),
6 BPF_MOV64_REG(BPF_REG_1, BPF_REG_6),
16 BPF_MOV64_REG(BPF_REG_1, BPF_REG_6),
64 BPF_LD_MAP_FD(BPF_REG_6, 0),
65 BPF_MOV64_REG(BPF_REG_1, BPF_REG_6),
75 BPF_MOV64_REG(BPF_REG_1, BPF_REG_6),
202 BPF_LD_MAP_FD(BPF_REG_6, 0),
203 BPF_MOV64_REG(BPF_REG_1, BPF_REG_6),
233 BPF_ALU64_IMM(BPF_MOD, BPF_REG_6, 1),
236 BPF_ALU64_IMM(BPF_MOV, BPF_REG_6, 0),
[all …]
H A Dcalls.c234 BPF_MOV64_REG(BPF_REG_6, BPF_REG_0),
261 BPF_MOV64_REG(BPF_REG_6, BPF_REG_0),
264 BPF_MOV64_REG(BPF_REG_1, BPF_REG_6),
307 BPF_MOV64_REG(BPF_REG_6, BPF_REG_1),
309 BPF_MOV64_REG(BPF_REG_1, BPF_REG_6),
332 BPF_MOV64_REG(BPF_REG_6, BPF_REG_1),
334 BPF_MOV64_REG(BPF_REG_1, BPF_REG_6),
356 BPF_MOV64_REG(BPF_REG_6, BPF_REG_1),
358 BPF_MOV64_REG(BPF_REG_1, BPF_REG_6),
369 BPF_MOV64_REG(BPF_REG_6, BPF_REG_1),
[all …]
H A Djmp32.c806 BPF_MOV32_REG(BPF_REG_6, BPF_REG_0),
807 BPF_ALU64_IMM(BPF_LSH, BPF_REG_6, 32),
808 BPF_ALU64_IMM(BPF_RSH, BPF_REG_6, 32),
834 BPF_MOV32_REG(BPF_REG_6, BPF_REG_0),
835 BPF_ALU64_IMM(BPF_LSH, BPF_REG_6, 32),
836 BPF_ALU64_IMM(BPF_RSH, BPF_REG_6, 32),
862 BPF_MOV32_REG(BPF_REG_6, BPF_REG_0),
863 BPF_ALU64_IMM(BPF_LSH, BPF_REG_6, 32),
864 BPF_ALU64_IMM(BPF_RSH, BPF_REG_6, 32),
878 BPF_MOV64_IMM(BPF_REG_6, 563),
[all …]
H A Dbpf_loop_inline.c71 BPF_ALU64_REG(BPF_MOV, BPF_REG_6, BPF_REG_0),
74 BPF_JMP_IMM(BPF_JNE, BPF_REG_6, 0, 9),
218 BPF_STX_MEM(BPF_DW, BPF_REG_10, BPF_REG_6, -40),
223 BPF_STX_MEM(BPF_DW, BPF_REG_10, BPF_REG_6, -40),
232 BPF_STX_MEM(BPF_DW, BPF_REG_10, BPF_REG_6, -56),
H A Dbasic_call.c42 BPF_ALU64_REG(BPF_MOV, BPF_REG_6, BPF_REG_1),
44 BPF_ALU64_REG(BPF_MOV, BPF_REG_1, BPF_REG_6),
/openbmc/linux/tools/testing/selftests/bpf/
H A Dtest_sock.c53 BPF_MOV64_REG(BPF_REG_6, BPF_REG_1),
54 BPF_LDX_MEM(BPF_W, BPF_REG_7, BPF_REG_6,
66 BPF_MOV64_REG(BPF_REG_6, BPF_REG_1),
67 BPF_LDX_MEM(BPF_W, BPF_REG_7, BPF_REG_6,
79 BPF_MOV64_REG(BPF_REG_6, BPF_REG_1),
92 BPF_MOV64_REG(BPF_REG_6, BPF_REG_1),
199 BPF_MOV64_REG(BPF_REG_6, BPF_REG_1),
229 BPF_MOV64_REG(BPF_REG_6, BPF_REG_1),
259 BPF_MOV64_REG(BPF_REG_6, BPF_REG_1),
290 BPF_MOV64_REG(BPF_REG_6, BPF_REG_1),
[all …]
H A Dtest_sock_addr.c764 BPF_MOV64_REG(BPF_REG_6, BPF_REG_1), in sendmsg4_rw_asm_prog_load()
767 BPF_LDX_MEM(BPF_W, BPF_REG_7, BPF_REG_6, in sendmsg4_rw_asm_prog_load()
772 BPF_LDX_MEM(BPF_W, BPF_REG_7, BPF_REG_6, in sendmsg4_rw_asm_prog_load()
778 BPF_STX_MEM(BPF_W, BPF_REG_6, BPF_REG_7, in sendmsg4_rw_asm_prog_load()
783 BPF_STX_MEM(BPF_W, BPF_REG_6, BPF_REG_7, in sendmsg4_rw_asm_prog_load()
788 BPF_STX_MEM(BPF_W, BPF_REG_6, BPF_REG_7, in sendmsg4_rw_asm_prog_load()
827 BPF_MOV64_REG(BPF_REG_6, BPF_REG_1), in sendmsg6_rw_dst_asm_prog_load()
830 BPF_LDX_MEM(BPF_W, BPF_REG_7, BPF_REG_6, in sendmsg6_rw_dst_asm_prog_load()
836 BPF_STX_MEM(BPF_W, BPF_REG_6, BPF_REG_7, \ in sendmsg6_rw_dst_asm_prog_load()
850 BPF_STX_MEM(BPF_W, BPF_REG_6, BPF_REG_7, in sendmsg6_rw_dst_asm_prog_load()
H A Dtest_verifier.c197 insn[i++] = BPF_MOV64_REG(BPF_REG_6, BPF_REG_1); in bpf_fill_ld_abs_vlan_push_pop()
204 insn[i++] = BPF_MOV64_REG(BPF_REG_1, BPF_REG_6); in bpf_fill_ld_abs_vlan_push_pop()
217 insn[i++] = BPF_MOV64_REG(BPF_REG_1, BPF_REG_6); in bpf_fill_ld_abs_vlan_push_pop()
247 insn[i++] = BPF_MOV64_REG(BPF_REG_6, BPF_REG_1); in bpf_fill_jump_around_ld_abs()
290 insn[i++] = BPF_MOV64_REG(BPF_REG_6, BPF_REG_1); in bpf_fill_scale1()
297 insn[i++] = BPF_STX_MEM(BPF_DW, BPF_REG_1, BPF_REG_6, in bpf_fill_scale1()
321 insn[i++] = BPF_MOV64_REG(BPF_REG_6, BPF_REG_1); in bpf_fill_scale2()
329 insn[i++] = BPF_STX_MEM(BPF_DW, BPF_REG_1, BPF_REG_6, in bpf_fill_scale2()
/openbmc/linux/samples/bpf/
H A Dcookie_uid_helper_example.c85 BPF_MOV64_REG(BPF_REG_6, BPF_REG_1), in prog_load()
110 BPF_MOV64_REG(BPF_REG_1, BPF_REG_6), in prog_load()
126 BPF_LDX_MEM(BPF_W, BPF_REG_1, BPF_REG_6, in prog_load()
152 BPF_LDX_MEM(BPF_W, BPF_REG_1, BPF_REG_6, in prog_load()
156 BPF_LDX_MEM(BPF_W, BPF_REG_0, BPF_REG_6, in prog_load()
H A Dtest_cgrp2_sock.c34 BPF_MOV64_REG(BPF_REG_6, BPF_REG_1), in prog_load()
61 BPF_MOV64_REG(BPF_REG_1, BPF_REG_6), in prog_load()
68 BPF_MOV64_REG(BPF_REG_1, BPF_REG_6), in prog_load()
H A Dtest_cgrp2_attach.c46 BPF_MOV64_REG(BPF_REG_6, BPF_REG_1), /* save r6 so it's not clobbered by BPF_CALL */ in prog_load()
67 BPF_LDX_MEM(BPF_W, BPF_REG_1, BPF_REG_6, offsetof(struct __sk_buff, len)), /* r1 = skb->len */ in prog_load()
H A Dsock_example.c49 BPF_MOV64_REG(BPF_REG_6, BPF_REG_1), in test_sock()
/openbmc/linux/tools/lib/bpf/
H A Dgen_loader.c121 emit(gen, BPF_MOV64_REG(BPF_REG_6, BPF_REG_1)); in bpf_gen__init()
235 emit(gen, BPF_STX_MEM(insn_bytes_to_bpf_size(size), BPF_REG_6, BPF_REG_0, ctx_off)); in move_blob2ctx()
241 emit(gen, BPF_LDX_MEM(insn_bytes_to_bpf_size(size), BPF_REG_0, BPF_REG_6, ctx_off)); in move_ctx2blob()
263 emit(gen, BPF_STX_MEM(insn_bytes_to_bpf_size(size), BPF_REG_6, BPF_REG_0, ctx_off)); in move_stack2ctx()
1055 emit(gen, BPF_LDX_MEM(BPF_DW, BPF_REG_3, BPF_REG_6, in bpf_gen__map_update_elem()
1063 emit(gen, BPF_LDX_MEM(BPF_W, BPF_REG_0, BPF_REG_6, in bpf_gen__map_update_elem()
/openbmc/linux/arch/x86/net/
H A Dbpf_jit_comp.c178 [BPF_REG_6] = 3, /* RBX callee saved */
195 [BPF_REG_6] = offsetof(struct pt_regs, bx),
980 if (insn->dst_reg == BPF_REG_6 || insn->src_reg == BPF_REG_6) in detect_reg_usage()
2205 emit_mov_reg(&prog, true, BPF_REG_6, BPF_REG_0); in invoke_bpf_prog()
2247 emit_mov_reg(&prog, true, BPF_REG_2, BPF_REG_6); in invoke_bpf_prog()
2516 emit_stx(&prog, BPF_DW, BPF_REG_FP, BPF_REG_6, -rbx_off); in arch_prepare_bpf_trampoline()
2574 emit_ldx(&prog, BPF_DW, BPF_REG_6, BPF_REG_FP, 8); in arch_prepare_bpf_trampoline()
2636 emit_ldx(&prog, BPF_DW, BPF_REG_6, BPF_REG_FP, -rbx_off); in arch_prepare_bpf_trampoline()
/openbmc/linux/tools/include/linux/
H A Dfilter.h19 #define BPF_REG_CTX BPF_REG_6
/openbmc/linux/arch/powerpc/net/
H A Dbpf_jit_comp64.c60 ctx->b2p[BPF_REG_6] = _R27; in bpf_jit_init_reg_mapping()
166 for (i = BPF_REG_6; i <= BPF_REG_10; i++) in bpf_jit_build_prologue()
181 for (i = BPF_REG_6; i <= BPF_REG_10; i++) in bpf_jit_emit_common_epilogue()
/openbmc/linux/tools/testing/selftests/net/
H A Dreuseport_bpf.c100 { BPF_ALU64 | BPF_MOV | BPF_X, BPF_REG_6, BPF_REG_1, 0, 0 }, in attach_ebpf()
/openbmc/linux/arch/arm64/net/
H A Dbpf_jit_comp.c55 [BPF_REG_6] = A64_R(19),
292 const u8 r6 = bpf2a64[BPF_REG_6]; in build_prologue()
659 const u8 r6 = bpf2a64[BPF_REG_6]; in build_epilogue()
/openbmc/linux/drivers/net/ethernet/netronome/nfp/bpf/
H A Dverifier.c684 if (meta->insn.dst_reg >= BPF_REG_6 && in nfp_assign_subprog_idx_and_regs()

12