Home
last modified time | relevance | path

Searched refs:BPF_REG_7 (Results 1 – 25 of 39) sorted by relevance

12

/openbmc/linux/tools/testing/selftests/bpf/
H A Dtest_sysctl.c84 BPF_LDX_MEM(BPF_W, BPF_REG_7, BPF_REG_1,
86 BPF_JMP_IMM(BPF_JNE, BPF_REG_7, 1, 2),
107 BPF_JMP_IMM(BPF_JNE, BPF_REG_7, 1, 2),
134 BPF_ALU64_IMM(BPF_AND, BPF_REG_7, 1),
167 BPF_JMP_IMM(BPF_JNE, BPF_REG_7, 3, 2),
230 BPF_MOV64_REG(BPF_REG_7, BPF_REG_10),
235 BPF_MOV64_REG(BPF_REG_2, BPF_REG_7),
276 BPF_MOV64_REG(BPF_REG_2, BPF_REG_7),
320 BPF_MOV64_REG(BPF_REG_2, BPF_REG_7),
374 BPF_MOV64_REG(BPF_REG_2, BPF_REG_7),
[all …]
H A Dtest_sock.c54 BPF_LDX_MEM(BPF_W, BPF_REG_7, BPF_REG_6,
67 BPF_LDX_MEM(BPF_W, BPF_REG_7, BPF_REG_6,
80 BPF_LDX_MEM(BPF_W, BPF_REG_7, BPF_REG_6,
93 BPF_LDX_MEM(BPF_W, BPF_REG_7, BPF_REG_6,
202 BPF_LDX_MEM(BPF_W, BPF_REG_7, BPF_REG_6,
204 BPF_JMP_IMM(BPF_JNE, BPF_REG_7,
206 BPF_LDX_MEM(BPF_W, BPF_REG_7, BPF_REG_6,
234 BPF_JMP_IMM(BPF_JNE, BPF_REG_7,
264 BPF_JMP_IMM(BPF_JNE, BPF_REG_7,
295 BPF_JMP_IMM(BPF_JNE, BPF_REG_7,
[all …]
H A Dtest_sock_addr.c767 BPF_LDX_MEM(BPF_W, BPF_REG_7, BPF_REG_6, in sendmsg4_rw_asm_prog_load()
769 BPF_JMP_IMM(BPF_JNE, BPF_REG_7, AF_INET, 8), in sendmsg4_rw_asm_prog_load()
772 BPF_LDX_MEM(BPF_W, BPF_REG_7, BPF_REG_6, in sendmsg4_rw_asm_prog_load()
777 BPF_MOV32_IMM(BPF_REG_7, src4_rw_ip.s_addr), 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()
830 BPF_LDX_MEM(BPF_W, BPF_REG_7, BPF_REG_6, in sendmsg6_rw_dst_asm_prog_load()
832 BPF_JMP_IMM(BPF_JNE, BPF_REG_7, AF_INET6, 18), in sendmsg6_rw_dst_asm_prog_load()
835 BPF_MOV32_IMM(BPF_REG_7, SRC[N]), \ in sendmsg6_rw_dst_asm_prog_load()
[all …]
H A Dtest_verifier.c502 BPF_MOV64_REG(BPF_REG_7, BPF_REG_0), \
503 BPF_ALU64_IMM(BPF_LSH, BPF_REG_7, 33), \
504 BPF_ALU64_IMM(BPF_RSH, BPF_REG_7, 33)
512 BPF_MOV64_REG(BPF_REG_7, BPF_REG_0), \
513 BPF_ALU64_IMM(BPF_OR, BPF_REG_7, 0x80000000), \
514 BPF_ALU64_IMM(BPF_LSH, BPF_REG_7, 32), \
515 BPF_ALU64_IMM(BPF_ARSH, BPF_REG_7, 32)
/openbmc/linux/tools/testing/selftests/bpf/verifier/
H A Djmp32.c5 BPF_LDX_MEM(BPF_DW, BPF_REG_7, BPF_REG_2, 0),
7 BPF_JMP32_IMM(BPF_JSET, BPF_REG_7, -2, 1),
11 BPF_JMP32_IMM(BPF_JSET, BPF_REG_7, 1, 1),
36 BPF_LDX_MEM(BPF_DW, BPF_REG_7, BPF_REG_2, 0),
68 BPF_LD_IMM64(BPF_REG_7, 0x8000000000000000),
84 BPF_JMP32_IMM(BPF_JSET, BPF_REG_7, 0x10, 1),
86 BPF_JMP32_IMM(BPF_JGE, BPF_REG_7, 0x10, 1),
99 BPF_JMP32_IMM(BPF_JEQ, BPF_REG_7, -1, 1),
164 BPF_JMP32_IMM(BPF_JNE, BPF_REG_7, -1, 1),
215 BPF_JMP_IMM(BPF_JNE, BPF_REG_7, 0x10, 1),
[all …]
H A Dld_abs.c65 BPF_MOV64_IMM(BPF_REG_7, 0),
67 BPF_MOV64_REG(BPF_REG_0, BPF_REG_7),
79 BPF_MOV64_REG(BPF_REG_7, BPF_REG_6),
81 BPF_MOV64_REG(BPF_REG_1, BPF_REG_7),
85 BPF_MOV64_REG(BPF_REG_6, BPF_REG_7),
130 BPF_LD_IND(BPF_W, BPF_REG_7, 14),
143 BPF_LD_IND(BPF_H, BPF_REG_7, 14),
209 BPF_ALU64_IMM(BPF_MOV, BPF_REG_7, 0),
255 BPF_MOV64_REG(BPF_REG_7, BPF_REG_6),
257 BPF_MOV64_REG(BPF_REG_1, BPF_REG_7),
[all …]
H A Djset.c5 BPF_LDX_MEM(BPF_DW, BPF_REG_7, BPF_REG_2, 0),
9 BPF_JMP_REG(BPF_JSET, BPF_REG_7, BPF_REG_8, 1),
14 BPF_JMP_REG(BPF_JSET, BPF_REG_7, BPF_REG_8, 1),
19 BPF_JMP_IMM(BPF_JSET, BPF_REG_7, -1, 1),
23 BPF_JMP_IMM(BPF_JSET, BPF_REG_7, 0x80000000, 1),
62 BPF_LDX_MEM(BPF_DW, BPF_REG_7, BPF_REG_2, 0),
64 BPF_JMP_IMM(BPF_JSET, BPF_REG_7, 0x80000000, 1),
H A Dcalls.c690 BPF_MOV64_REG(BPF_REG_7, BPF_REG_0),
694 BPF_MOV64_REG(BPF_REG_0, BPF_REG_7),
778 BPF_MOV64_REG(BPF_REG_7, BPF_REG_0),
782 BPF_MOV64_REG(BPF_REG_0, BPF_REG_7),
933 BPF_MOV64_REG(BPF_REG_7, BPF_REG_6),
936 BPF_MOV64_REG(BPF_REG_6, BPF_REG_7),
956 BPF_MOV64_REG(BPF_REG_7, BPF_REG_0),
960 BPF_MOV64_REG(BPF_REG_0, BPF_REG_7),
980 BPF_MOV64_REG(BPF_REG_7, BPF_REG_0),
984 BPF_MOV64_REG(BPF_REG_0, BPF_REG_7),
[all …]
H A Dbpf_loop_inline.c73 BPF_ALU64_REG(BPF_MOV, BPF_REG_7, BPF_REG_0),
76 BPF_JMP_IMM(BPF_JNE, BPF_REG_7, 0, 0),
219 BPF_STX_MEM(BPF_DW, BPF_REG_10, BPF_REG_7, -32),
224 BPF_STX_MEM(BPF_DW, BPF_REG_10, BPF_REG_7, -32),
233 BPF_STX_MEM(BPF_DW, BPF_REG_10, BPF_REG_7, -48),
H A Dmap_kptr.c329 BPF_MOV64_REG(BPF_REG_7, BPF_REG_0),
335 BPF_MOV64_REG(BPF_REG_1, BPF_REG_7),
360 BPF_MOV64_REG(BPF_REG_7, BPF_REG_0),
367 BPF_MOV64_REG(BPF_REG_1, BPF_REG_7),
H A Dprecise.c227 BPF_ALU64_IMM(BPF_MOV, BPF_REG_7, 0),
/openbmc/linux/tools/lib/bpf/
H A Dgen_loader.c152 emit(gen, BPF_MOV64_REG(BPF_REG_0, BPF_REG_7)); in bpf_gen__init()
274 emit(gen, BPF_MOV64_REG(BPF_REG_7, BPF_REG_0)); in emit_sys_bpf()
340 emit_debug(gen, BPF_REG_7, -1, fmt, args); in debug_ret()
553 emit(gen, BPF_MOV64_REG(BPF_REG_7, BPF_REG_0)); in emit_find_attach_target()
627 emit(gen, BPF_MOV64_REG(BPF_REG_7, BPF_REG_0)); in emit_bpf_find_by_name_kind()
647 emit(gen, BPF_MOV64_REG(BPF_REG_7, BPF_REG_4)); in emit_bpf_kallsyms_lookup_name()
650 emit(gen, BPF_MOV64_REG(BPF_REG_7, BPF_REG_0)); in emit_bpf_kallsyms_lookup_name()
695 emit(gen, BPF_JMP_IMM(BPF_JSGE, BPF_REG_7, 0, 3)); in emit_relo_kfunc_btf()
704 emit(gen, BPF_MOV64_REG(BPF_REG_9, BPF_REG_7)); in emit_relo_kfunc_btf()
722 emit(gen, BPF_LDX_MEM(BPF_W, BPF_REG_7, BPF_REG_8, in emit_relo_kfunc_btf()
[all …]
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/
H A Dsockopt.c294 BPF_LDX_MEM(BPF_DW, BPF_REG_7, BPF_REG_1,
298 BPF_JMP_REG(BPF_JGT, BPF_REG_6, BPF_REG_7, 1),
383 BPF_LDX_MEM(BPF_DW, BPF_REG_7, BPF_REG_1,
387 BPF_JMP_REG(BPF_JGT, BPF_REG_6, BPF_REG_7, 1),
693 BPF_LDX_MEM(BPF_DW, BPF_REG_7, BPF_REG_1,
697 BPF_JMP_REG(BPF_JGT, BPF_REG_6, BPF_REG_7, 1),
730 BPF_LDX_MEM(BPF_DW, BPF_REG_7, BPF_REG_1,
830 BPF_MOV64_REG(BPF_REG_7, BPF_REG_6),
831 BPF_ALU64_IMM(BPF_ADD, BPF_REG_7, 1),
876 BPF_MOV64_REG(BPF_REG_7, BPF_REG_6),
[all …]
H A Dalign.c488 BPF_MOV64_REG(BPF_REG_7, BPF_REG_6),
494 BPF_ALU64_IMM(BPF_LSH, BPF_REG_7, 2),
495 BPF_ALU64_REG(BPF_SUB, BPF_REG_6, BPF_REG_7),
542 BPF_MOV64_REG(BPF_REG_7, BPF_REG_6),
552 BPF_ALU64_IMM(BPF_LSH, BPF_REG_7, 2),
553 BPF_ALU64_IMM(BPF_ADD, BPF_REG_7, 76),
555 BPF_ALU64_REG(BPF_ADD, BPF_REG_5, BPF_REG_7),
/openbmc/linux/samples/bpf/
H A Dcookie_uid_helper_example.c94 BPF_MOV64_REG(BPF_REG_7, BPF_REG_10), in prog_load()
95 BPF_ALU64_IMM(BPF_ADD, BPF_REG_7, -8), in prog_load()
101 BPF_MOV64_REG(BPF_REG_2, BPF_REG_7), in prog_load()
136 BPF_MOV64_REG(BPF_REG_2, BPF_REG_7), in prog_load()
/openbmc/linux/tools/testing/selftests/bpf/progs/
H A Dverifier_ld_ind.c106 : __imm_insn(ld_ind, BPF_LD_IND(BPF_W, BPF_REG_7, -0x200000)) in ind_check_calling_conv_r7()
H A Dverifier_ref_tracking.c833 __imm_insn(ld_ind, BPF_LD_IND(BPF_W, BPF_REG_7, -0x200000)) in reference_tracking_allow_ld_ind()
857 __imm_insn(ld_ind, BPF_LD_IND(BPF_W, BPF_REG_7, -0x200000)) in ld_ind_while_holding_reference()
/openbmc/linux/tools/include/linux/
H A Dfilter.h24 #define BPF_REG_X BPF_REG_7
/openbmc/linux/arch/x86/net/
H A Dbpf_jit_comp.c179 [BPF_REG_7] = 5, /* R13 callee saved */
196 [BPF_REG_7] = offsetof(struct pt_regs, r13),
210 BIT(BPF_REG_7) | in is_ereg()
982 if (insn->dst_reg == BPF_REG_7 || insn->src_reg == BPF_REG_7) in detect_reg_usage()
/openbmc/linux/arch/arm64/net/
H A Dbpf_jit_comp.c56 [BPF_REG_7] = A64_R(20),
293 const u8 r7 = bpf2a64[BPF_REG_7]; in build_prologue()
660 const u8 r7 = bpf2a64[BPF_REG_7]; in build_epilogue()
/openbmc/linux/arch/s390/net/
H A Dbpf_jit_comp.c76 #define REG_8 BPF_REG_7 /* Register 8 */
93 [BPF_REG_7] = 8,
/openbmc/linux/arch/mips/net/
H A Dbpf_jit_comp64.c75 [BPF_REG_7] = MIPS_R_S1,
/openbmc/linux/arch/powerpc/net/
H A Dbpf_jit_comp64.c61 ctx->b2p[BPF_REG_7] = _R28; in bpf_jit_init_reg_mapping()
/openbmc/linux/include/linux/
H A Dfilter.h56 #define BPF_REG_X BPF_REG_7
/openbmc/linux/arch/parisc/net/
H A Dbpf_jit_comp64.c28 [BPF_REG_7] = HPPA_R(11),

12