/linux-6.6.21/tools/testing/selftests/bpf/verifier/ |
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),
|
D | calls.c | 2331 BPF_STX_MEM(BPF_DW, BPF_REG_FP, BPF_REG_0, -24), 2338 BPF_STX_MEM(BPF_DW, BPF_REG_FP, BPF_REG_0, -32), 2342 BPF_MOV64_REG(BPF_REG_1, BPF_REG_FP), 2344 BPF_MOV64_REG(BPF_REG_2, BPF_REG_FP),
|
/linux-6.6.21/arch/x86/net/ |
D | bpf_jit_comp.c | 132 [BPF_REG_FP] = 5, /* RBP readonly */ 177 BIT(BPF_REG_FP)); in is_ereg_8l() 2063 emit_ldx(prog, BPF_DW, BPF_REG_0, BPF_REG_FP, in save_args() 2065 emit_stx(prog, BPF_DW, BPF_REG_FP, BPF_REG_0, in save_args() 2085 emit_stx(prog, BPF_DW, BPF_REG_FP, in save_args() 2115 BPF_REG_FP, in restore_regs() 2149 emit_stx(&prog, BPF_DW, BPF_REG_FP, BPF_REG_1, -run_ctx_off + ctx_cookie_off); in invoke_bpf_prog() 2195 emit_stx(&prog, BPF_DW, BPF_REG_FP, BPF_REG_0, -8); in invoke_bpf_prog() 2270 emit_stx(&prog, BPF_DW, BPF_REG_FP, BPF_REG_0, -8); in invoke_bpf_mod_ret() 2473 emit_stx(&prog, BPF_DW, BPF_REG_FP, BPF_REG_6, -rbx_off); in arch_prepare_bpf_trampoline() [all …]
|
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-6.6.21/arch/arm64/net/ |
D | bpf_jit_comp.c | 60 [BPF_REG_FP] = A64_R(25), 296 const u8 fp = bpf2a64[BPF_REG_FP]; in build_prologue() 663 const u8 fp = bpf2a64[BPF_REG_FP]; in build_epilogue() 769 const u8 fp = bpf2a64[BPF_REG_FP]; in build_insn() 1397 src == BPF_REG_FP)) in find_fpb_offset() 1400 if (mode == BPF_MEM && dst == BPF_REG_FP && in find_fpb_offset() 1412 if (dst == BPF_REG_FP) in find_fpb_offset() 1416 src == BPF_REG_FP && off < offset) in find_fpb_offset() 1424 if (dst == BPF_REG_FP) in find_fpb_offset()
|
/linux-6.6.21/arch/sparc/net/ |
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-6.6.21/arch/mips/net/ |
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()
|
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-6.6.21/arch/powerpc/net/ |
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() 163 if (bpf_is_seen_register(ctx, bpf_to_ppc(BPF_REG_FP))) { in bpf_jit_build_prologue() 164 EMIT(PPC_RAW_LI(bpf_to_ppc(BPF_REG_FP) - 1, 0)); in bpf_jit_build_prologue() 165 EMIT(PPC_RAW_ADDI(bpf_to_ppc(BPF_REG_FP), _R1, in bpf_jit_build_prologue()
|
D | bpf_jit_comp64.c | 65 ctx->b2p[BPF_REG_FP] = _R31; in bpf_jit_init_reg_mapping() 83 return ctx->seen & SEEN_FUNC || bpf_is_seen_register(ctx, bpf_to_ppc(BPF_REG_FP)); in bpf_has_stack_frame() 171 if (bpf_is_seen_register(ctx, bpf_to_ppc(BPF_REG_FP))) in bpf_jit_build_prologue() 172 EMIT(PPC_RAW_ADDI(bpf_to_ppc(BPF_REG_FP), _R1, in bpf_jit_build_prologue()
|
/linux-6.6.21/tools/include/linux/ |
D | filter.h | 20 #define BPF_REG_FP BPF_REG_10 macro
|
/linux-6.6.21/arch/parisc/net/ |
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()
|
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-6.6.21/arch/loongarch/net/ |
D | bpf_jit.c | 30 [BPF_REG_FP] = LOONGARCH_GPR_S4, 137 emit_insn(ctx, addid, regmap[BPF_REG_FP], LOONGARCH_GPR_SP, bpf_stack_adjust); in build_prologue()
|
/linux-6.6.21/kernel/bpf/ |
D | verifier.c | 2501 for (regno = 0; regno < BPF_REG_FP; regno++) in mark_reg_unknown() 2521 for (regno = 0; regno < BPF_REG_FP; regno++) in mark_reg_not_init() 2559 regs[BPF_REG_FP].type = PTR_TO_STACK; in init_reg_state() 2560 mark_reg_known_zero(env, regs, BPF_REG_FP); in init_reg_state() 2561 regs[BPF_REG_FP].frameno = state->frameno; in init_reg_state() 3359 if (regno == BPF_REG_FP) in __check_reg_arg() 3369 if (regno == BPF_REG_FP) { in __check_reg_arg() 3714 if (insn->src_reg != BPF_REG_FP) in backtrack_insn() 3736 if (insn->dst_reg != BPF_REG_FP) in backtrack_insn() 3990 for (j = 0; j < BPF_REG_FP; j++) { in mark_all_scalars_precise() [all …]
|
D | core.c | 60 #define FP regs[BPF_REG_FP]
|
/linux-6.6.21/arch/s390/net/ |
D | bpf_jit_comp.c | 97 [BPF_REG_FP] = 13, 594 EMIT4_DISP(0x41000000, BPF_REG_FP, REG_15, STK_160_UNUSED); in bpf_jit_prologue()
|
/linux-6.6.21/arch/riscv/net/ |
D | bpf_jit_comp32.c | 89 [BPF_REG_FP] = {RV_REG_S6, RV_REG_S5}, 1306 const s8 *fp = bpf2rv32[BPF_REG_FP]; in bpf_jit_build_prologue()
|
D | bpf_jit_comp64.c | 32 [BPF_REG_FP] = RV_REG_S5,
|
/linux-6.6.21/arch/arm/net/ |
D | bpf_jit_32.c | 165 [BPF_REG_FP] = {STACK_OFFSET(BPF_FP_HI), STACK_OFFSET(BPF_FP_LO)}, 1288 const s8 *bpf_fp = bpf2a32[BPF_REG_FP]; in build_prologue()
|
/linux-6.6.21/include/linux/ |
D | filter.h | 52 #define BPF_REG_FP BPF_REG_10 macro
|
/linux-6.6.21/lib/ |
D | test_bpf.c | 14949 BPF_ALU64_REG(BPF_MOV, R3, BPF_REG_FP), 14952 BPF_LDX_MEM(BPF_DW, R0, BPF_REG_FP, -8), 14954 BPF_LDX_MEM(BPF_DW, R0, BPF_REG_FP, -16), 14966 BPF_STX_MEM(BPF_DW, BPF_REG_FP, R0, -8),
|
/linux-6.6.21/net/core/ |
D | filter.c | 572 BUILD_BUG_ON(BPF_REG_FP + 1 != MAX_BPF_REG); in bpf_convert_filter() 819 *insn = BPF_STX_MEM(BPF_W, BPF_REG_FP, BPF_CLASS(fp->code) == in bpf_convert_filter() 835 BPF_REG_A : BPF_REG_X, BPF_REG_FP, in bpf_convert_filter()
|