Searched refs:stack_off (Results 1 – 5 of 5) sorted by relevance
| /linux/tools/lib/bpf/ |
| H A D | gen_loader.c | 40 #define stack_off(field) \ macro 255 static void move_stack2blob(struct bpf_gen *gen, int off, int size, int stack_off) in move_stack2blob() argument 257 emit(gen, BPF_LDX_MEM(insn_bytes_to_bpf_size(size), BPF_REG_0, BPF_REG_10, stack_off)); in move_stack2blob() 263 static void move_stack2ctx(struct bpf_gen *gen, int ctx_off, int size, int stack_off) in move_stack2ctx() argument 265 emit(gen, BPF_LDX_MEM(insn_bytes_to_bpf_size(size), BPF_REG_0, BPF_REG_10, stack_off)); in move_stack2ctx() 359 static void emit_sys_close_stack(struct bpf_gen *gen, int stack_off) in emit_sys_close_stack() argument 361 emit(gen, BPF_LDX_MEM(BPF_W, BPF_REG_1, BPF_REG_10, stack_off)); in emit_sys_close_stack() 385 emit_sys_close_stack(gen, stack_off(btf_fd)); in bpf_gen__finish() 392 stack_off(prog_fd[i])); in bpf_gen__finish() 501 emit(gen, BPF_STX_MEM(BPF_W, BPF_REG_10, BPF_REG_7, stack_off(btf_fd))); in bpf_gen__load_btf() [all …]
|
| /linux/arch/riscv/net/ |
| H A D | bpf_jit_comp64.c | 929 static void emit_store_stack_imm64(u8 reg, int stack_off, u64 imm64, in emit_store_stack_imm64() argument 934 emit_sd(RV_REG_FP, stack_off, reg, ctx); in emit_store_stack_imm64()
|
| /linux/net/core/ |
| H A D | filter.c | 589 int new_flen = 0, pass = 0, target, i, stack_off; in bpf_convert_filter() local 841 stack_off = fp->k * 4 + 4; in bpf_convert_filter() 844 -stack_off); in bpf_convert_filter() 849 if (new_prog && new_prog->aux->stack_depth < stack_off) in bpf_convert_filter() 850 new_prog->aux->stack_depth = stack_off; in bpf_convert_filter() 856 stack_off = fp->k * 4 + 4; in bpf_convert_filter() 859 -stack_off); in bpf_convert_filter()
|
| /linux/arch/x86/net/ |
| H A D | bpf_jit_comp.c | 1294 static void emit_store_stack_imm64(u8 **pprog, int reg, int stack_off, u64 imm64) in emit_store_stack_imm64() argument 1301 emit_stx(pprog, BPF_DW, BPF_REG_FP, reg, stack_off); in emit_store_stack_imm64()
|
| /linux/kernel/bpf/ |
| H A D | verifier.c | 8276 int stack_off = -i - 1; in check_stack_range_initialized() local 8280 if (state->allocated_stack <= stack_off) in check_stack_range_initialized() 8282 if (state->stack[spi].slot_type[stack_off % BPF_REG_SIZE] == STACK_DYNPTR) { in check_stack_range_initialized() 9809 int stack_off; in get_constant_map_key() local 9820 stack_off = key->off + key->var_off.value; in get_constant_map_key() 9821 slot = -stack_off - 1; in get_constant_map_key() 23716 int stack_off = -stack_depth - 8; in do_misc_fixups() local 23719 insn_buf[0] = BPF_LDX_MEM(BPF_DW, BPF_REG_AX, BPF_REG_10, stack_off); in do_misc_fixups() 23725 insn_buf[3] = BPF_STX_MEM(BPF_DW, BPF_REG_10, BPF_REG_AX, stack_off); in do_misc_fixups()
|