Lines Matching refs:stack_off
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()
537 stack_off(btf_fd)); in bpf_gen__map_create()
542 stack_off(inner_map_fd)); in bpf_gen__map_create()
568 stack_off(inner_map_fd))); in bpf_gen__map_create()
580 emit_sys_close_stack(gen, stack_off(inner_map_fd)); in bpf_gen__map_create()
1130 stack_off(btf_fd)); in bpf_gen__prog_load()
1156 stack_off(prog_fd[gen->nr_progs]))); in bpf_gen__prog_load()