Searched refs:stack_off (Results 1 – 2 of 2) sorted by relevance
/Linux-v5.15/tools/lib/bpf/ |
D | gen_loader.c | 37 #define stack_off(field) \ macro 170 static void emit_rel_store_sp(struct bpf_gen *gen, int off, int stack_off) in emit_rel_store_sp() argument 173 emit(gen, BPF_ALU64_IMM(BPF_ADD, BPF_REG_0, stack_off)); in emit_rel_store_sp() 193 static void move_stack2blob(struct bpf_gen *gen, int off, int size, int stack_off) in move_stack2blob() argument 195 emit(gen, BPF_LDX_MEM(insn_bytes_to_bpf_size(size), BPF_REG_0, BPF_REG_10, stack_off)); in move_stack2blob() 201 static void move_stack2ctx(struct bpf_gen *gen, int ctx_off, int size, int stack_off) in move_stack2ctx() argument 203 emit(gen, BPF_LDX_MEM(insn_bytes_to_bpf_size(size), BPF_REG_0, BPF_REG_10, stack_off)); in move_stack2ctx() 297 static void emit_sys_close_stack(struct bpf_gen *gen, int stack_off) in emit_sys_close_stack() argument 299 emit(gen, BPF_LDX_MEM(BPF_W, BPF_REG_1, BPF_REG_10, stack_off)); in emit_sys_close_stack() 315 emit_sys_close_stack(gen, stack_off(btf_fd)); in bpf_gen__finish() [all …]
|
/Linux-v5.15/net/core/ |
D | filter.c | 560 int new_flen = 0, pass = 0, target, i, stack_off; in bpf_convert_filter() local 813 stack_off = fp->k * 4 + 4; in bpf_convert_filter() 816 -stack_off); in bpf_convert_filter() 821 if (new_prog && new_prog->aux->stack_depth < stack_off) in bpf_convert_filter() 822 new_prog->aux->stack_depth = stack_off; in bpf_convert_filter() 828 stack_off = fp->k * 4 + 4; in bpf_convert_filter() 831 -stack_off); in bpf_convert_filter()
|