| /linux/tools/testing/selftests/bpf/verifier/ |
| H A D | precise.c | 7 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), 66 BPF_MOV64_REG(BPF_REG_2, BPF_REG_FP), 68 BPF_ST_MEM(BPF_DW, BPF_REG_FP, -8, 0), 76 BPF_MOV64_REG(BPF_REG_2, BPF_REG_FP), 90 BPF_MOV64_REG(BPF_REG_1, BPF_REG_FP),
|
| H A D | calls.c | 2345 BPF_STX_MEM(BPF_DW, BPF_REG_FP, BPF_REG_0, -24), 2352 BPF_STX_MEM(BPF_DW, BPF_REG_FP, BPF_REG_0, -32), 2356 BPF_MOV64_REG(BPF_REG_1, BPF_REG_FP), 2358 BPF_MOV64_REG(BPF_REG_2, BPF_REG_FP),
|
| /linux/tools/testing/selftests/bpf/progs/ |
| H A D | verifier_spill_fill.c | 497 __imm_insn(fp1_u8_st_zero, BPF_ST_MEM(BPF_B, BPF_REG_FP, -1, 0)), in spill_subregs_preserve_stack_zero() 498 __imm_insn(fp10_u16_st_zero, BPF_ST_MEM(BPF_H, BPF_REG_FP, -10, 0)), in spill_subregs_preserve_stack_zero() 499 __imm_insn(fp18_u16_st_zero, BPF_ST_MEM(BPF_H, BPF_REG_FP, -18, 0)) in spill_subregs_preserve_stack_zero() 592 __imm_insn(fp8_st_zero, BPF_ST_MEM(BPF_DW, BPF_REG_FP, -8, 0)) in partial_stack_load_preserves_zeros() 633 __imm_insn(fp4_st_zero, BPF_ST_MEM(BPF_W, BPF_REG_FP, -4, 0)) in partial_stack_load_preserves_partial_zeros() 712 __imm_insn(fp8_st_one, BPF_ST_MEM(BPF_DW, BPF_REG_FP, -8, 1)) in __flag() 789 __imm_insn(fp8_st_one, BPF_ST_MEM(BPF_W, BPF_REG_FP, -8, 1)) /* 32-bit spill */ in __flag()
|
| /linux/arch/x86/net/ |
| H A D | bpf_jit_comp.c | 192 [BPF_REG_FP] = 5, /* RBP readonly */ 239 BIT(BPF_REG_FP)); in is_ereg_8l() 1301 emit_stx(pprog, BPF_DW, BPF_REG_FP, reg, stack_off); in emit_store_stack_imm64() 1730 if (src_reg == BPF_REG_FP) in do_jit() 1733 if (dst_reg == BPF_REG_FP) in do_jit() 2907 emit_ldx(prog, BPF_DW, BPF_REG_0, BPF_REG_FP, in save_args() 2909 emit_stx(prog, BPF_DW, BPF_REG_FP, BPF_REG_0, in save_args() 2929 emit_stx(prog, BPF_DW, BPF_REG_FP, in save_args() 2959 BPF_REG_FP, in restore_regs() 2994 emit_stx(&prog, BPF_DW, BPF_REG_FP, BPF_REG_1, -run_ctx_off + ctx_cookie_off); in invoke_bpf_prog() [all …]
|
| /linux/arch/powerpc/net/ |
| H A D | bpf_jit_comp64.c | 92 ctx->b2p[BPF_REG_FP] = _R31; in bpf_jit_init_reg_mapping() 118 bpf_is_seen_register(ctx, bpf_to_ppc(BPF_REG_FP)) || in bpf_has_stack_frame() 213 PPC_LI64(bpf_to_ppc(BPF_REG_FP), (__force long)ctx->priv_sp); in emit_fp_priv_stack() 222 EMIT(PPC_RAW_ADD(bpf_to_ppc(BPF_REG_FP), in emit_fp_priv_stack() 223 bpf_to_ppc(TMP_REG_1), bpf_to_ppc(BPF_REG_FP))); in emit_fp_priv_stack() 225 EMIT(PPC_RAW_ADDI(bpf_to_ppc(BPF_REG_FP), bpf_to_ppc(BPF_REG_FP), in emit_fp_priv_stack() 353 if (bpf_is_seen_register(ctx, bpf_to_ppc(BPF_REG_FP))) { in bpf_jit_build_prologue() 359 EMIT(PPC_RAW_ADDI(bpf_to_ppc(BPF_REG_FP), _R1, in bpf_jit_build_prologue()
|
| /linux/arch/mips/net/ |
| H A D | bpf_jit_comp64.c | 79 [BPF_REG_FP] = MIPS_R_FP, 548 u8 fp = bpf2mips64[BPF_REG_FP]; in build_prologue() 575 if (ctx->accessed & BIT(BPF_REG_FP)) in build_prologue() 605 if (ctx->accessed & BIT(BPF_REG_FP)) in build_prologue()
|
| H A D | bpf_jit_comp32.c | 133 [BPF_REG_FP] = {MIPS_R_FP, MIPS_R_ZERO}, 135 [BPF_REG_FP] = {MIPS_R_ZERO, MIPS_R_FP}, 1376 const u8 *fp = bpf2mips32[BPF_REG_FP]; in build_prologue() 1410 if (ctx->accessed & BIT(BPF_REG_FP)) in build_prologue() 1436 if (ctx->accessed & BIT(BPF_REG_FP)) in build_prologue()
|
| /linux/tools/include/linux/ |
| H A D | filter.h | 20 #define BPF_REG_FP BPF_REG_10 macro
|
| /linux/kernel/bpf/ |
| H A D | liveness.c | 894 if (reg == BPF_REG_FP) { in fill_from_stack() 930 if (reg == BPF_REG_FP) { in spill_to_stack() 994 if (reg == BPF_REG_FP) { in clear_stack_for_all_offs() 1053 return regno == BPF_REG_FP || at->frame == depth || in can_be_local_fp() 1578 at_in[0][BPF_REG_FP] = arg_single(depth, 0); in compute_subprog_args()
|
| H A D | verifier.c | 2560 regs[BPF_REG_FP].type = PTR_TO_STACK; in init_reg_state() 2561 mark_reg_known_zero(env, regs, BPF_REG_FP); in init_reg_state() 2562 regs[BPF_REG_FP].frameno = state->frameno; in init_reg_state() 3466 if (regno == BPF_REG_FP) in __check_reg_arg() 3475 if (regno == BPF_REG_FP) { in __check_reg_arg() 16207 for (j = 0; j < BPF_REG_FP; j++) { in collect_linked_regs()
|
| H A D | core.c | 63 #define FP regs[BPF_REG_FP]
|
| /linux/arch/arm64/net/ |
| H A D | bpf_jit_comp.c | 63 [BPF_REG_FP] = A64_R(25), 393 if (insn->dst_reg == BPF_REG_FP || insn->src_reg == BPF_REG_FP) { in find_used_callee_regs() 413 ctx->used_callee_reg[i++] = bpf2a64[BPF_REG_FP]; in find_used_callee_regs() 516 const u8 fp = bpf2a64[BPF_REG_FP]; in build_prologue() 1209 const u8 fp = bpf2a64[BPF_REG_FP]; in build_insn()
|
| /linux/net/sched/ |
| H A D | bpf_qdisc.c | 179 *insn++ = BPF_LDX_MEM(BPF_DW, BPF_REG_1, BPF_REG_FP, ctx_stack_off); in BTF_ID_LIST_SINGLE()
|
| /linux/arch/parisc/net/ |
| H A D | bpf_jit_comp64.c | 31 [BPF_REG_FP] = HPPA_R(14), 1195 reg = regmap[BPF_REG_FP]; /* -> HPPA_REG_FP */ in bpf_jit_build_prologue()
|
| H A D | bpf_jit_comp32.c | 94 [BPF_REG_FP] = {STACK_OFFSET(BPF_FP_HI), STACK_OFFSET(BPF_FP_LO)}, 1598 dst = regmap[BPF_REG_FP]; in bpf_jit_build_prologue()
|
| /linux/tools/testing/selftests/bpf/test_kmods/ |
| H A D | bpf_testmod.c | 1617 *insn++ = BPF_LDX_MEM(BPF_DW, BPF_REG_1, BPF_REG_FP, ctx_stack_off); in st_ops_gen_epilogue() 1680 *insn++ = BPF_LDX_MEM(BPF_DW, BPF_REG_1, BPF_REG_FP, ctx_stack_off); in st_ops_init()
|
| /linux/arch/riscv/net/ |
| H A D | bpf_jit_comp32.c | 89 [BPF_REG_FP] = {RV_REG_S6, RV_REG_S5}, 1305 const s8 *fp = bpf2rv32[BPF_REG_FP]; in bpf_jit_build_prologue()
|
| H A D | bpf_jit_comp64.c | 40 [BPF_REG_FP] = RV_REG_S5,
|
| /linux/arch/loongarch/net/ |
| H A D | bpf_jit.c | 38 [BPF_REG_FP] = LOONGARCH_GPR_S4, 195 emit_insn(ctx, addid, regmap[BPF_REG_FP], LOONGARCH_GPR_SP, bpf_stack_adjust); in build_prologue()
|
| /linux/lib/ |
| H A D | test_bpf.c | 15357 BPF_ALU64_REG(BPF_MOV, R3, BPF_REG_FP), 15360 BPF_LDX_MEM(BPF_DW, R0, BPF_REG_FP, -8), 15362 BPF_LDX_MEM(BPF_DW, R0, BPF_REG_FP, -16), 15374 BPF_STX_MEM(BPF_DW, BPF_REG_FP, R0, -8),
|
| /linux/net/core/ |
| H A D | filter.c | 591 BUILD_BUG_ON(BPF_REG_FP + 1 != MAX_BPF_REG); in bpf_convert_filter() 837 *insn = BPF_STX_MEM(BPF_W, BPF_REG_FP, BPF_CLASS(fp->code) == in bpf_convert_filter() 853 BPF_REG_A : BPF_REG_X, BPF_REG_FP, in bpf_convert_filter()
|