Home
last modified time | relevance | path

Searched refs:BPF_REG_FP (Results 1 – 19 of 19) sorted by relevance

/kernel/linux/linux-5.10/tools/testing/selftests/bpf/verifier/
Dprecise.c7 BPF_MOV64_REG(BPF_REG_2, BPF_REG_FP),
9 BPF_ST_MEM(BPF_DW, BPF_REG_FP, -8, 0),
17 BPF_MOV64_REG(BPF_REG_2, BPF_REG_FP),
31 BPF_MOV64_REG(BPF_REG_1, BPF_REG_FP),
67 BPF_MOV64_REG(BPF_REG_2, BPF_REG_FP),
69 BPF_ST_MEM(BPF_DW, BPF_REG_FP, -8, 0),
77 BPF_MOV64_REG(BPF_REG_2, BPF_REG_FP),
91 BPF_MOV64_REG(BPF_REG_1, BPF_REG_FP),
Dvalue_ptr_arith.c85 BPF_MOV64_REG(BPF_REG_ARG2, BPF_REG_FP),
87 BPF_ST_MEM(BPF_DW, BPF_REG_FP, -16, 0),
132 BPF_MOV64_REG(BPF_REG_ARG2, BPF_REG_FP),
134 BPF_ST_MEM(BPF_DW, BPF_REG_FP, -16, 0),
179 BPF_MOV64_REG(BPF_REG_ARG2, BPF_REG_FP),
181 BPF_ST_MEM(BPF_DW, BPF_REG_FP, -16, 0),
206 BPF_MOV64_REG(BPF_REG_2, BPF_REG_FP),
208 BPF_ST_MEM(BPF_DW, BPF_REG_FP, -16, 0),
212 BPF_MOV64_REG(BPF_REG_2, BPF_REG_FP),
Dbounds.c56 BPF_MOV64_REG(BPF_REG_ARG2, BPF_REG_FP),
60 BPF_MOV64_REG(BPF_REG_9, BPF_REG_FP),
63 BPF_MOV64_REG(BPF_REG_ARG2, BPF_REG_FP),
/kernel/linux/linux-5.10/tools/perf/util/
Dbpf-prologue.c266 ins(BPF_MOV64_REG(BPF_REG_7, BPF_REG_FP), pos); in gen_prologue_slowpath()
276 ins(BPF_STX_MEM(BPF_DW, BPF_REG_FP, BPF_REG_ARG3, in gen_prologue_slowpath()
303 BPF_REG_FP, stack_offset), pos); in gen_prologue_slowpath()
314 BPF_REG_FP, -BPF_REG_SIZE * (i + 1)), pos); in gen_prologue_slowpath()
/kernel/linux/linux-5.10/arch/powerpc/net/
Dbpf_jit64.h57 [BPF_REG_FP] = 31,
Dbpf_jit_comp64.c51 return ctx->seen & SEEN_FUNC || bpf_is_seen_register(ctx, BPF_REG_FP); in bpf_has_stack_frame()
132 if (bpf_is_seen_register(ctx, BPF_REG_FP)) in bpf_jit_build_prologue()
133 EMIT(PPC_RAW_ADDI(b2p[BPF_REG_FP], 1, in bpf_jit_build_prologue()
/kernel/linux/linux-5.10/arch/x86/net/
Dbpf_jit_comp.c125 [BPF_REG_FP] = 5, /* RBP readonly */
170 BIT(BPF_REG_FP)); in is_ereg_8l()
1521 BPF_REG_FP, in save_regs()
1539 BPF_REG_FP, in restore_regs()
1579 emit_stx(&prog, BPF_DW, BPF_REG_FP, BPF_REG_0, -8); in invoke_bpf_prog()
1672 emit_stx(&prog, BPF_DW, BPF_REG_FP, BPF_REG_0, -8); in invoke_bpf_mod_ret()
1851 emit_stx(&prog, BPF_DW, BPF_REG_FP, BPF_REG_0, -8); in arch_prepare_bpf_trampoline()
1896 emit_ldx(&prog, BPF_DW, BPF_REG_0, BPF_REG_FP, -8); in arch_prepare_bpf_trampoline()
Dbpf_jit_comp32.c158 [BPF_REG_FP] = {STACK_OFFSET(80), STACK_OFFSET(84)},
1205 const u8 fplo = bpf2ia32[BPF_REG_FP][0]; in emit_prologue()
1206 const u8 fphi = bpf2ia32[BPF_REG_FP][1]; in emit_prologue()
/kernel/linux/linux-5.10/arch/sparc/net/
Dbpf_jit_comp_64.c226 [BPF_REG_FP] = L6,
824 const u8 vfp = bpf2sparc[BPF_REG_FP]; in build_prologue()
904 if (insn->src_reg == BPF_REG_FP) in build_insn()
1302 if (insn->dst_reg == BPF_REG_FP) in build_insn()
1343 if (insn->dst_reg == BPF_REG_FP) in build_insn()
1378 if (insn->dst_reg == BPF_REG_FP) in build_insn()
1401 if (insn->dst_reg == BPF_REG_FP) in build_insn()
/kernel/linux/linux-5.10/tools/include/linux/
Dfilter.h20 #define BPF_REG_FP BPF_REG_10 macro
/kernel/linux/linux-5.10/arch/arm64/net/
Dbpf_jit_comp.c44 [BPF_REG_FP] = A64_R(25),
198 const u8 fp = bpf2a64[BPF_REG_FP]; in build_prologue()
338 const u8 fp = bpf2a64[BPF_REG_FP]; in build_epilogue()
/kernel/linux/linux-5.10/kernel/bpf/
Dverifier.c1367 for (regno = 0; regno < BPF_REG_FP; regno++) in mark_reg_unknown()
1387 for (regno = 0; regno < BPF_REG_FP; regno++) in mark_reg_not_init()
1422 regs[BPF_REG_FP].type = PTR_TO_STACK; in init_reg_state()
1423 mark_reg_known_zero(env, regs, BPF_REG_FP); in init_reg_state()
1424 regs[BPF_REG_FP].frameno = state->frameno; in init_reg_state()
1752 if (regno == BPF_REG_FP) in check_reg_arg()
1762 if (regno == BPF_REG_FP) { in check_reg_arg()
1878 if (insn->src_reg != BPF_REG_FP) in backtrack_insn()
1902 if (insn->dst_reg != BPF_REG_FP) in backtrack_insn()
2029 for (j = 0; j < BPF_REG_FP; j++) { in mark_all_scalars_precise()
[all …]
Dcore.c56 #define FP regs[BPF_REG_FP]
/kernel/linux/linux-5.10/arch/s390/net/
Dbpf_jit_comp.c91 [BPF_REG_FP] = 13,
550 EMIT4_DISP(0x41000000, BPF_REG_FP, REG_15, STK_160_UNUSED); in bpf_jit_prologue()
/kernel/linux/linux-5.10/arch/riscv/net/
Dbpf_jit_comp32.c89 [BPF_REG_FP] = {RV_REG_S6, RV_REG_S5},
1296 const s8 *fp = bpf2rv32[BPF_REG_FP]; in bpf_jit_build_prologue()
Dbpf_jit_comp64.c26 [BPF_REG_FP] = RV_REG_S5,
/kernel/linux/linux-5.10/arch/arm/net/
Dbpf_jit_32.c165 [BPF_REG_FP] = {STACK_OFFSET(BPF_FP_HI), STACK_OFFSET(BPF_FP_LO)},
1303 const s8 *bpf_fp = bpf2a32[BPF_REG_FP]; in build_prologue()
/kernel/linux/linux-5.10/include/linux/
Dfilter.h52 #define BPF_REG_FP BPF_REG_10 macro
/kernel/linux/linux-5.10/net/core/
Dfilter.c566 BUILD_BUG_ON(BPF_REG_FP + 1 != MAX_BPF_REG); in bpf_convert_filter()
813 *insn = BPF_STX_MEM(BPF_W, BPF_REG_FP, BPF_CLASS(fp->code) == in bpf_convert_filter()
829 BPF_REG_A : BPF_REG_X, BPF_REG_FP, in bpf_convert_filter()