| /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 | 2344 BPF_STX_MEM(BPF_DW, BPF_REG_FP, BPF_REG_0, -24), 2351 BPF_STX_MEM(BPF_DW, BPF_REG_FP, BPF_REG_0, -32), 2355 BPF_MOV64_REG(BPF_REG_1, BPF_REG_FP), 2357 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() 787 __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() 2905 emit_ldx(prog, BPF_DW, BPF_REG_0, BPF_REG_FP, in save_args() 2907 emit_stx(prog, BPF_DW, BPF_REG_FP, BPF_REG_0, in save_args() 2927 emit_stx(prog, BPF_DW, BPF_REG_FP, in save_args() 2957 BPF_REG_FP, in restore_regs() 2992 emit_stx(&prog, BPF_DW, BPF_REG_FP, BPF_REG_1, -run_ctx_off + ctx_cookie_off); in invoke_bpf_prog() [all …]
|
| H A D | bpf_jit_comp32.c | 158 [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()
|
| /linux/arch/sparc/net/ |
| H A D | bpf_jit_comp_64.c | 226 [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() 1384 if (insn->dst_reg == BPF_REG_FP) in build_insn() 1412 if (insn->dst_reg == BPF_REG_FP) in build_insn()
|
| /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/arch/arc/net/ |
| H A D | bpf_jit_arcv2.c | 81 [BPF_REG_FP] = {ARC_R_FP, }, 1307 if (rd != BPF_REG_FP) in zext() 1365 if (rs != BPF_REG_FP) in mov_r64() 1382 if (reg != BPF_REG_FP) { in mov_r64_i32() 1527 if (reg != BPF_REG_FP) in push_r64() 1532 if (reg != BPF_REG_FP) in push_r64() 2378 } else if (bpf_reg == BPF_REG_FP) { in mask_for_used_regs() 2379 usage |= BIT(REG_LO(BPF_REG_FP)); in mask_for_used_regs()
|
| /linux/arch/powerpc/net/ |
| H A D | bpf_jit_comp32.c | 62 ctx->b2p[BPF_REG_FP] = _R18; in bpf_jit_init_reg_mapping() 93 bpf_is_seen_register(ctx, bpf_to_ppc(BPF_REG_FP)); in bpf_has_stack_frame() 166 if (bpf_is_seen_register(ctx, bpf_to_ppc(BPF_REG_FP))) { in bpf_jit_build_prologue() 167 EMIT(PPC_RAW_LI(bpf_to_ppc(BPF_REG_FP) - 1, 0)); in bpf_jit_build_prologue() 168 EMIT(PPC_RAW_ADDI(bpf_to_ppc(BPF_REG_FP), _R1, in bpf_jit_build_prologue()
|
| 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() 310 if (bpf_is_seen_register(ctx, bpf_to_ppc(BPF_REG_FP))) in bpf_jit_build_prologue() 311 EMIT(PPC_RAW_ADDI(bpf_to_ppc(BPF_REG_FP), _R1, in bpf_jit_build_prologue()
|
| /linux/tools/include/linux/ |
| H A D | filter.h | 20 #define BPF_REG_FP BPF_REG_10 macro
|
| /linux/arch/arm64/net/ |
| H A D | bpf_jit_comp.c | 64 [BPF_REG_FP] = A64_R(25), 394 if (insn->dst_reg == BPF_REG_FP || insn->src_reg == BPF_REG_FP) { in find_used_callee_regs() 414 ctx->used_callee_reg[i++] = bpf2a64[BPF_REG_FP]; in find_used_callee_regs() 517 const u8 fp = bpf2a64[BPF_REG_FP]; in build_prologue() 1210 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 | 1551 *insn++ = BPF_LDX_MEM(BPF_DW, BPF_REG_1, BPF_REG_FP, ctx_stack_off); in st_ops_gen_epilogue_with_kfunc() 1614 *insn++ = BPF_LDX_MEM(BPF_DW, BPF_REG_1, BPF_REG_FP, ctx_stack_off); in st_ops_gen_epilogue()
|
| /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/arm/net/ |
| H A D | bpf_jit_32.c | 167 [BPF_REG_FP] = {STACK_OFFSET(BPF_FP_HI), STACK_OFFSET(BPF_FP_LO)}, 1529 const s8 *bpf_fp = bpf2a32[BPF_REG_FP]; in build_prologue()
|
| /linux/arch/s390/net/ |
| H A D | bpf_jit_comp.c | 99 [BPF_REG_FP] = 13, 652 EMIT4_DISP(0x41000000, BPF_REG_FP, REG_15, in bpf_jit_prologue()
|
| /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/kernel/bpf/ |
| H A D | verifier.c | 2894 for (regno = 0; regno < BPF_REG_FP; regno++) in __mark_reg_s32_range() 2933 for (regno = 0; regno < BPF_REG_FP; regno++) in mark_btf_ld_reg() 2982 regs[BPF_REG_FP].type = PTR_TO_STACK; in retval_range() 2983 mark_reg_known_zero(env, regs, BPF_REG_FP); in retval_range() 2984 regs[BPF_REG_FP].frameno = state->frameno; 3953 if (regno == BPF_REG_FP) in __check_reg_arg() 3962 if (regno == BPF_REG_FP) { in __check_reg_arg() 4434 if (sreg != BPF_REG_FP) in backtrack_insn() 4451 if (sreg != BPF_REG_FP) in backtrack_insn() 4770 for (j = 0; j < BPF_REG_FP; in mark_all_scalars_precise() [all...] |
| H A D | core.c | 64 #define FP regs[BPF_REG_FP]
|
| /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),
|