Home
last modified time | relevance | path

Searched refs:BPF_REG_9 (Results 1 – 25 of 35) sorted by relevance

12

/Linux-v6.6/tools/testing/selftests/bpf/verifier/
Datomic_fetch.c6 BPF_LD_MAP_FD(BPF_REG_9, 0),
9 BPF_STX_MEM(BPF_DW, BPF_REG_2, BPF_REG_9, 0),
11 BPF_LDX_MEM(BPF_DW, BPF_REG_9, BPF_REG_2, 0),
16 BPF_STX_MEM(BPF_DW, BPF_REG_0, BPF_REG_9, 0),
30 BPF_LD_MAP_FD(BPF_REG_9, 0),
33 BPF_STX_MEM(BPF_DW, BPF_REG_2, BPF_REG_9, 0),
35 BPF_MOV64_REG(BPF_REG_9, BPF_REG_1),
40 BPF_STX_MEM(BPF_DW, BPF_REG_0, BPF_REG_9, 0),
54 BPF_LD_MAP_FD(BPF_REG_9, 0),
57 BPF_STX_MEM(BPF_DW, BPF_REG_2, BPF_REG_9, 0),
[all …]
Dprecise.c14 BPF_MOV64_REG(BPF_REG_9, BPF_REG_0),
25 BPF_ALU64_REG(BPF_SUB, BPF_REG_9, BPF_REG_8), /* map_value_ptr -= map_value_ptr */
26 BPF_MOV64_REG(BPF_REG_2, BPF_REG_9),
73 BPF_MOV64_REG(BPF_REG_9, BPF_REG_0),
84 BPF_ALU64_REG(BPF_SUB, BPF_REG_9, BPF_REG_8), /* map_value_ptr -= map_value_ptr */
85 BPF_MOV64_REG(BPF_REG_2, BPF_REG_9),
125 BPF_MOV64_IMM(BPF_REG_9, 0),
127 BPF_MOV64_IMM(BPF_REG_9, 1),
229 BPF_ALU64_IMM(BPF_MOV, BPF_REG_9, 0x80000000),
232 BPF_JMP_REG(BPF_JLE, BPF_REG_6, BPF_REG_9, 2),
[all …]
Djset.c81 BPF_LDX_MEM(BPF_B, BPF_REG_8, BPF_REG_9, 0),
95 BPF_LDX_MEM(BPF_B, BPF_REG_8, BPF_REG_9, 0),
110 BPF_LDX_MEM(BPF_B, BPF_REG_8, BPF_REG_9, 0),
124 BPF_LDX_MEM(BPF_B, BPF_REG_8, BPF_REG_9, 0),
139 BPF_LDX_MEM(BPF_B, BPF_REG_8, BPF_REG_9, 0),
157 BPF_LDX_MEM(BPF_B, BPF_REG_8, BPF_REG_9, 0),
162 BPF_LDX_MEM(BPF_B, BPF_REG_8, BPF_REG_9, 0),
Dcalls.c1546 BPF_MOV64_IMM(BPF_REG_9, 0),
1550 BPF_MOV64_IMM(BPF_REG_9, 1),
1556 BPF_MOV64_REG(BPF_REG_4, BPF_REG_9),
1618 BPF_MOV64_IMM(BPF_REG_9, 0),
1622 BPF_MOV64_IMM(BPF_REG_9, 1),
1628 BPF_MOV64_REG(BPF_REG_4, BPF_REG_9),
1687 BPF_MOV64_IMM(BPF_REG_9, 0), // 26
1691 BPF_MOV64_IMM(BPF_REG_9, 1),
1697 BPF_MOV64_REG(BPF_REG_4, BPF_REG_9),
1760 BPF_MOV64_IMM(BPF_REG_9, 0),
[all …]
Ddead_code.c5 BPF_LDX_MEM(BPF_B, BPF_REG_8, BPF_REG_9, 0),
Djmp32.c87 BPF_LDX_MEM(BPF_B, BPF_REG_8, BPF_REG_9, 0),
152 BPF_LDX_MEM(BPF_B, BPF_REG_8, BPF_REG_9, 0),
217 BPF_LDX_MEM(BPF_B, BPF_REG_8, BPF_REG_9, 0),
/Linux-v6.6/tools/testing/selftests/bpf/
Dtest_sysctl.c251 BPF_LDX_MEM(BPF_DW, BPF_REG_9, BPF_REG_7, 0),
252 BPF_JMP_REG(BPF_JNE, BPF_REG_8, BPF_REG_9, 2),
293 BPF_LDX_MEM(BPF_DW, BPF_REG_9, BPF_REG_7, 0),
294 BPF_JMP_REG(BPF_JNE, BPF_REG_8, BPF_REG_9, 2),
337 BPF_LDX_MEM(BPF_DW, BPF_REG_9, BPF_REG_7, 0),
338 BPF_JMP_REG(BPF_JNE, BPF_REG_8, BPF_REG_9, 10),
343 BPF_LDX_MEM(BPF_DW, BPF_REG_9, BPF_REG_7, 8),
344 BPF_JMP_REG(BPF_JNE, BPF_REG_8, BPF_REG_9, 6),
348 BPF_LDX_MEM(BPF_DW, BPF_REG_9, BPF_REG_7, 16),
349 BPF_JMP_REG(BPF_JNE, BPF_REG_8, BPF_REG_9, 2),
[all …]
Dtest_lru_map.c46 BPF_LD_MAP_VALUE(BPF_REG_9, 0, 0), in bpf_map_lookup_elem_with_ref_bit()
55 BPF_STX_MEM(BPF_DW, BPF_REG_9, BPF_REG_1, 0), in bpf_map_lookup_elem_with_ref_bit()
/Linux-v6.6/tools/lib/bpf/
Dgen_loader.c351 emit(gen, BPF_MOV64_REG(BPF_REG_9, BPF_REG_1)); in __emit_sys_close()
353 debug_regs(gen, BPF_REG_9, BPF_REG_0, "close(%%d) = %%d"); in __emit_sys_close()
649 emit(gen, BPF_LDX_MEM(BPF_DW, BPF_REG_9, BPF_REG_7, 0)); in emit_bpf_kallsyms_lookup_name()
704 emit(gen, BPF_MOV64_REG(BPF_REG_9, BPF_REG_7)); in emit_relo_kfunc_btf()
705 emit(gen, BPF_ALU64_IMM(BPF_RSH, BPF_REG_9, 32)); in emit_relo_kfunc_btf()
710 emit(gen, BPF_STX_MEM(BPF_W, BPF_REG_0, BPF_REG_9, 0)); in emit_relo_kfunc_btf()
712 emit(gen, BPF_JMP_IMM(BPF_JNE, BPF_REG_9, 0, 2)); in emit_relo_kfunc_btf()
724 emit(gen, BPF_LDX_MEM(BPF_H, BPF_REG_9, BPF_REG_8, in emit_relo_kfunc_btf()
726 debug_regs(gen, BPF_REG_7, BPF_REG_9, " func (%s:count=%d): imm: %%d, off: %%d", in emit_relo_kfunc_btf()
730 emit(gen, BPF_LDX_MEM(BPF_W, BPF_REG_9, BPF_REG_0, 0)); in emit_relo_kfunc_btf()
[all …]
/Linux-v6.6/samples/bpf/
Dcookie_uid_helper_example.c148 BPF_MOV64_REG(BPF_REG_9, BPF_REG_0), in prog_load()
150 BPF_ATOMIC_OP(BPF_DW, BPF_ADD, BPF_REG_9, BPF_REG_1, in prog_load()
154 BPF_ATOMIC_OP(BPF_DW, BPF_ADD, BPF_REG_9, BPF_REG_1, in prog_load()
/Linux-v6.6/tools/testing/selftests/bpf/prog_tests/
Dsockopt.c841 BPF_LDX_MEM(BPF_B, BPF_REG_9, BPF_REG_6, 0),
844 BPF_JMP_IMM(BPF_JGT, BPF_REG_9, 128, 2),
887 BPF_LDX_MEM(BPF_B, BPF_REG_9, BPF_REG_6, 0),
890 BPF_JMP_IMM(BPF_JGT, BPF_REG_9, 128, 2),
/Linux-v6.6/arch/x86/net/
Dbpf_jit_comp.c131 [BPF_REG_9] = 7, /* R15 callee saved */
148 [BPF_REG_9] = offsetof(struct pt_regs, r15),
162 BIT(BPF_REG_9) | in is_ereg()
936 if (insn->dst_reg == BPF_REG_9 || insn->src_reg == BPF_REG_9) in detect_reg_usage()
1545 if (dst_reg > BPF_REG_9) { in do_jit()
/Linux-v6.6/arch/arm64/net/
Dbpf_jit_comp.c58 [BPF_REG_9] = A64_R(22),
295 const u8 r9 = bpf2a64[BPF_REG_9]; in build_prologue()
662 const u8 r9 = bpf2a64[BPF_REG_9]; in build_epilogue()
/Linux-v6.6/drivers/net/ethernet/netronome/nfp/bpf/
Dverifier.c685 meta->insn.dst_reg <= BPF_REG_9) in nfp_assign_subprog_idx_and_regs()
/Linux-v6.6/kernel/bpf/
Dcgroup.c2232 int treg = BPF_REG_9; in sysctl_convert_ctx_access()
2446 int treg = BPF_REG_9; in cg_sockopt_convert_ctx_access()
/Linux-v6.6/arch/mips/net/
Dbpf_jit_comp64.c77 [BPF_REG_9] = MIPS_R_S3,
/Linux-v6.6/arch/powerpc/net/
Dbpf_jit_comp64.c63 ctx->b2p[BPF_REG_9] = _R30; in bpf_jit_init_reg_mapping()
Dbpf_jit_comp32.c60 ctx->b2p[BPF_REG_9] = _R30; in bpf_jit_init_reg_mapping()
/Linux-v6.6/include/linux/
Dfilter.h59 #define BPF_REG_H BPF_REG_9 /* hlen, callee-saved */
/Linux-v6.6/arch/loongarch/net/
Dbpf_jit.c28 [BPF_REG_9] = LOONGARCH_GPR_S3,
/Linux-v6.6/arch/parisc/net/
Dbpf_jit_comp64.c30 [BPF_REG_9] = HPPA_R(13),
/Linux-v6.6/tools/include/uapi/linux/
Dbpf.h64 BPF_REG_9, enumerator
/Linux-v6.6/include/uapi/linux/
Dbpf.h64 BPF_REG_9, enumerator
/Linux-v6.6/arch/sparc/net/
Dbpf_jit_comp_64.c223 [BPF_REG_9] = L3,
/Linux-v6.6/arch/s390/net/
Dbpf_jit_comp.c95 [BPF_REG_9] = 10,

12