Searched refs:stack_off (Results 1 – 3 of 3) sorted by relevance
| /linux-6.15/tools/lib/bpf/ |
| H A D | gen_loader.c | 41 #define stack_off(field) \ macro 357 static void emit_sys_close_stack(struct bpf_gen *gen, int stack_off) in emit_sys_close_stack() argument 359 emit(gen, BPF_LDX_MEM(BPF_W, BPF_REG_1, BPF_REG_10, stack_off)); in emit_sys_close_stack() 381 emit_sys_close_stack(gen, stack_off(btf_fd)); in bpf_gen__finish() 388 stack_off(prog_fd[i])); in bpf_gen__finish() 514 stack_off(btf_fd)); in bpf_gen__map_create() 519 stack_off(inner_map_fd)); in bpf_gen__map_create() 545 stack_off(inner_map_fd))); in bpf_gen__map_create() 557 emit_sys_close_stack(gen, stack_off(inner_map_fd)); in bpf_gen__map_create() 1084 stack_off(btf_fd)); in bpf_gen__prog_load() [all …]
|
| /linux-6.15/net/core/ |
| H A D | filter.c | 580 int new_flen = 0, pass = 0, target, i, stack_off; in bpf_convert_filter() local 833 stack_off = fp->k * 4 + 4; in bpf_convert_filter() 836 -stack_off); in bpf_convert_filter() 841 if (new_prog && new_prog->aux->stack_depth < stack_off) in bpf_convert_filter() 842 new_prog->aux->stack_depth = stack_off; in bpf_convert_filter() 848 stack_off = fp->k * 4 + 4; in bpf_convert_filter() 851 -stack_off); in bpf_convert_filter()
|
| /linux-6.15/kernel/bpf/ |
| H A D | verifier.c | 7965 int stack_off = -i - 1; in check_stack_range_initialized() local 7969 if (state->allocated_stack <= stack_off) in check_stack_range_initialized() 7971 if (state->stack[spi].slot_type[stack_off % BPF_REG_SIZE] == STACK_DYNPTR) { in check_stack_range_initialized() 9462 int stack_off; in get_constant_map_key() local 9473 stack_off = key->off + key->var_off.value; in get_constant_map_key() 9474 slot = -stack_off - 1; in get_constant_map_key() 21857 int stack_off = -stack_depth - 8; in do_misc_fixups() local 21860 insn_buf[0] = BPF_LDX_MEM(BPF_DW, BPF_REG_AX, BPF_REG_10, stack_off); in do_misc_fixups() 21866 insn_buf[3] = BPF_STX_MEM(BPF_DW, BPF_REG_10, BPF_REG_AX, stack_off); in do_misc_fixups()
|