Home
last modified time | relevance | path

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

12

/Linux-v6.6/tools/testing/selftests/bpf/
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),
105 BPF_LDX_MEM(BPF_W, BPF_REG_7, BPF_REG_1,
107 BPF_JMP_IMM(BPF_JNE, BPF_REG_7, 1, 2),
128 BPF_LDX_MEM(BPF_H, BPF_REG_7, BPF_REG_1,
131 BPF_LDX_MEM(BPF_H, BPF_REG_7, BPF_REG_1,
134 BPF_ALU64_IMM(BPF_AND, BPF_REG_7, 1),
137 BPF_ALU64_REG(BPF_SUB, BPF_REG_0, BPF_REG_7),
165 BPF_LDX_MEM(BPF_W, BPF_REG_7, BPF_REG_1,
167 BPF_JMP_IMM(BPF_JNE, BPF_REG_7, 3, 2),
[all …]
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,
208 BPF_JMP_IMM(BPF_JNE, BPF_REG_7, 0x2001, 2),
232 BPF_LDX_MEM(BPF_W, BPF_REG_7, BPF_REG_6,
234 BPF_JMP_IMM(BPF_JNE, BPF_REG_7,
[all …]
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()
774 BPF_JMP_IMM(BPF_JNE, BPF_REG_7, SOCK_DGRAM, 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()
782 BPF_MOV32_IMM(BPF_REG_7, dst4_rw_addr.sin_addr.s_addr), in sendmsg4_rw_asm_prog_load()
783 BPF_STX_MEM(BPF_W, BPF_REG_6, BPF_REG_7, in sendmsg4_rw_asm_prog_load()
787 BPF_MOV32_IMM(BPF_REG_7, dst4_rw_addr.sin_port), in sendmsg4_rw_asm_prog_load()
788 BPF_STX_MEM(BPF_W, BPF_REG_6, BPF_REG_7, in sendmsg4_rw_asm_prog_load()
[all …]
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)
/Linux-v6.6/tools/testing/selftests/bpf/verifier/
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),
38 BPF_JMP32_REG(BPF_JSET, BPF_REG_7, BPF_REG_8, 1),
43 BPF_JMP32_REG(BPF_JSET, BPF_REG_7, BPF_REG_8, 1),
68 BPF_LD_IMM64(BPF_REG_7, 0x8000000000000000),
70 BPF_JMP_REG(BPF_JSET, BPF_REG_7, BPF_REG_8, 1),
72 BPF_JMP32_REG(BPF_JSET, BPF_REG_7, BPF_REG_8, 1),
84 BPF_JMP32_IMM(BPF_JSET, BPF_REG_7, 0x10, 1),
[all …]
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),
129 BPF_LDX_MEM(BPF_W, BPF_REG_7, BPF_REG_10, -64),
130 BPF_LD_IND(BPF_W, BPF_REG_7, 14),
134 BPF_LDX_MEM(BPF_W, BPF_REG_7, BPF_REG_10, -56),
136 BPF_ALU32_REG(BPF_SUB, BPF_REG_0, BPF_REG_7),
142 BPF_LDX_MEM(BPF_W, BPF_REG_7, BPF_REG_10, -56),
[all …]
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),
Dcalls.c635 BPF_LDX_MEM(BPF_W, BPF_REG_7, BPF_REG_1,
639 BPF_JMP_REG(BPF_JGT, BPF_REG_8, BPF_REG_7, 2),
690 BPF_MOV64_REG(BPF_REG_7, BPF_REG_0),
693 BPF_ALU64_REG(BPF_ADD, 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),
781 BPF_ALU64_REG(BPF_ADD, 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),
[all …]
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),
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),
Dprecise.c227 BPF_ALU64_IMM(BPF_MOV, BPF_REG_7, 0),
/Linux-v6.6/tools/lib/bpf/
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()
290 emit(gen, BPF_JMP_IMM(BPF_JSLT, BPF_REG_7, 0, off)); in emit_check_err()
340 emit_debug(gen, BPF_REG_7, -1, fmt, args); in debug_ret()
445 emit(gen, BPF_STX_MEM(BPF_W, BPF_REG_10, BPF_REG_7, stack_off(btf_fd))); in bpf_gen__load_btf()
510 emit(gen, BPF_STX_MEM(BPF_W, BPF_REG_10, BPF_REG_7, in bpf_gen__map_create()
520 emit(gen, BPF_STX_MEM(BPF_W, BPF_REG_1, BPF_REG_7, 0)); in bpf_gen__map_create()
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()
[all …]
/Linux-v6.6/tools/testing/selftests/bpf/prog_tests/
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,
734 BPF_JMP_REG(BPF_JGT, BPF_REG_6, BPF_REG_7, 1),
830 BPF_MOV64_REG(BPF_REG_7, BPF_REG_6),
831 BPF_ALU64_IMM(BPF_ADD, BPF_REG_7, 1),
[all …]
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),
/Linux-v6.6/samples/bpf/
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()
/Linux-v6.6/tools/testing/selftests/bpf/progs/
Dverifier_ld_ind.c106 : __imm_insn(ld_ind, BPF_LD_IND(BPF_W, BPF_REG_7, -0x200000)) in ind_check_calling_conv_r7()
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()
/Linux-v6.6/tools/include/linux/
Dfilter.h24 #define BPF_REG_X BPF_REG_7
/Linux-v6.6/arch/x86/net/
Dbpf_jit_comp.c129 [BPF_REG_7] = 5, /* R13 callee saved */
146 [BPF_REG_7] = offsetof(struct pt_regs, r13),
160 BIT(BPF_REG_7) | in is_ereg()
932 if (insn->dst_reg == BPF_REG_7 || insn->src_reg == BPF_REG_7) in detect_reg_usage()
/Linux-v6.6/arch/arm64/net/
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()
/Linux-v6.6/arch/s390/net/
Dbpf_jit_comp.c76 #define REG_8 BPF_REG_7 /* Register 8 */
93 [BPF_REG_7] = 8,
/Linux-v6.6/arch/mips/net/
Dbpf_jit_comp64.c75 [BPF_REG_7] = MIPS_R_S1,
/Linux-v6.6/arch/powerpc/net/
Dbpf_jit_comp64.c61 ctx->b2p[BPF_REG_7] = _R28; in bpf_jit_init_reg_mapping()
/Linux-v6.6/include/linux/
Dfilter.h56 #define BPF_REG_X BPF_REG_7
/Linux-v6.6/arch/loongarch/net/
Dbpf_jit.c26 [BPF_REG_7] = LOONGARCH_GPR_S1,

12