Home
last modified time | relevance | path

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

/Linux-v6.1/tools/lib/bpf/
Dgen_loader.c40 #define stack_off(field) \ macro
252 static void move_stack2blob(struct bpf_gen *gen, int off, int size, int stack_off) in move_stack2blob() argument
254 emit(gen, BPF_LDX_MEM(insn_bytes_to_bpf_size(size), BPF_REG_0, BPF_REG_10, stack_off)); in move_stack2blob()
260 static void move_stack2ctx(struct bpf_gen *gen, int ctx_off, int size, int stack_off) in move_stack2ctx() argument
262 emit(gen, BPF_LDX_MEM(insn_bytes_to_bpf_size(size), BPF_REG_0, BPF_REG_10, stack_off)); in move_stack2ctx()
356 static void emit_sys_close_stack(struct bpf_gen *gen, int stack_off) in emit_sys_close_stack() argument
358 emit(gen, BPF_LDX_MEM(BPF_W, BPF_REG_1, BPF_REG_10, stack_off)); in emit_sys_close_stack()
380 emit_sys_close_stack(gen, stack_off(btf_fd)); in bpf_gen__finish()
387 stack_off(prog_fd[i])); in bpf_gen__finish()
445 emit(gen, BPF_STX_MEM(BPF_W, BPF_REG_10, BPF_REG_7, stack_off(btf_fd))); in bpf_gen__load_btf()
[all …]
/Linux-v6.1/net/core/
Dfilter.c562 int new_flen = 0, pass = 0, target, i, stack_off; in bpf_convert_filter() local
815 stack_off = fp->k * 4 + 4; in bpf_convert_filter()
818 -stack_off); in bpf_convert_filter()
823 if (new_prog && new_prog->aux->stack_depth < stack_off) in bpf_convert_filter()
824 new_prog->aux->stack_depth = stack_off; in bpf_convert_filter()
830 stack_off = fp->k * 4 + 4; in bpf_convert_filter()
833 -stack_off); in bpf_convert_filter()