Home
last modified time | relevance | path

Searched refs:stack_off (Results 1 – 7 of 7) sorted by relevance

/linux/tools/lib/bpf/
H A Dgen_loader.c40 #define stack_off(field) \ macro
260 static void move_stack2blob(struct bpf_gen *gen, int off, int size, int stack_off) in move_stack2blob() argument
262 emit(gen, BPF_LDX_MEM(insn_bytes_to_bpf_size(size), BPF_REG_0, BPF_REG_10, stack_off)); in move_stack2blob()
268 static void move_stack2ctx(struct bpf_gen *gen, int ctx_off, int size, int stack_off) in move_stack2ctx() argument
270 emit(gen, BPF_LDX_MEM(insn_bytes_to_bpf_size(size), BPF_REG_0, BPF_REG_10, stack_off)); in move_stack2ctx()
363 static void emit_sys_close_stack(struct bpf_gen *gen, int stack_off) in emit_sys_close_stack() argument
365 emit(gen, BPF_LDX_MEM(BPF_W, BPF_REG_1, BPF_REG_10, stack_off)); in emit_sys_close_stack()
387 emit_sys_close_stack(gen, stack_off(btf_fd)); in bpf_gen__finish()
394 stack_off(prog_fd[i])); in bpf_gen__finish()
484 emit(gen, BPF_STX_MEM(BPF_W, BPF_REG_10, BPF_REG_7, stack_off(btf_fd))); in bpf_gen__load_btf()
[all …]
/linux/kernel/bpf/
H A Dfixups.c1849 int stack_off = -stack_depth - 8; in bpf_do_misc_fixups() local
1852 insn_buf[0] = BPF_LDX_MEM(BPF_DW, BPF_REG_AX, BPF_REG_10, stack_off); in bpf_do_misc_fixups()
1858 insn_buf[3] = BPF_STX_MEM(BPF_DW, BPF_REG_10, BPF_REG_AX, stack_off); in bpf_do_misc_fixups()
H A Dverifier.c8648 int stack_off; in get_constant_map_key() local
8659 stack_off = key->var_off.value; in get_constant_map_key()
8660 slot = -stack_off - 1; in get_constant_map_key()
/linux/arch/riscv/net/
H A Dbpf_jit_comp64.c917 static void emit_store_stack_imm64(u8 reg, int stack_off, u64 imm64, in invoke_bpf_prog()
920 /* Load imm64 into reg and store it at [FP + stack_off]. */ in invoke_bpf_prog()
922 emit_sd(RV_REG_FP, stack_off, reg, ctx); in invoke_bpf_prog()
899 emit_store_stack_imm64(u8 reg,int stack_off,u64 imm64,struct rv_jit_context * ctx) emit_store_stack_imm64() argument
/linux/arch/loongarch/net/
H A Dbpf_jit.c340 static void emit_store_stack_imm64(struct jit_ctx *ctx, int reg, int stack_off, u64 imm64) in emit_store_stack_imm64() argument
343 emit_insn(ctx, std, reg, LOONGARCH_GPR_FP, stack_off); in emit_store_stack_imm64()
/linux/net/core/
H A Dfilter.c588 int new_flen = 0, pass = 0, target, i, stack_off; in bpf_convert_filter() local
840 stack_off = fp->k * 4 + 4; in bpf_convert_filter()
843 -stack_off); in bpf_convert_filter()
848 if (new_prog && new_prog->aux->stack_depth < stack_off) in bpf_convert_filter()
849 new_prog->aux->stack_depth = stack_off; in bpf_convert_filter()
855 stack_off = fp->k * 4 + 4; in bpf_convert_filter()
858 -stack_off); in bpf_convert_filter()
/linux/arch/x86/net/
H A Dbpf_jit_comp.c1324 static void emit_store_stack_imm64(u8 **pprog, int reg, int stack_off, u64 imm64) in emit_store_stack_imm64() argument
1328 * mov QWORD PTR [rbp + stack_off], reg in emit_store_stack_imm64()
1331 emit_stx(pprog, BPF_DW, BPF_REG_FP, reg, stack_off); in emit_store_stack_imm64()