Searched refs:stack_off (Results 1 – 3 of 3) sorted by relevance
/openbmc/linux/tools/lib/bpf/ |
H A D | gen_loader.c | 40 #define stack_off(field) \ macro 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() 480 stack_off(btf_fd)); in bpf_gen__map_create() 485 stack_off(inner_map_fd)); in bpf_gen__map_create() 511 stack_off(inner_map_fd))); in bpf_gen__map_create() 523 emit_sys_close_stack(gen, stack_off(inner_map_fd)); in bpf_gen__map_create() 1004 stack_off(btf_fd)); in bpf_gen__prog_load() [all …]
|
/openbmc/linux/net/core/ |
H A D | filter.c | 565 int new_flen = 0, pass = 0, target, i, stack_off; in bpf_convert_filter() local 818 stack_off = fp->k * 4 + 4; in bpf_convert_filter() 821 -stack_off); in bpf_convert_filter() 826 if (new_prog && new_prog->aux->stack_depth < stack_off) in bpf_convert_filter() 827 new_prog->aux->stack_depth = stack_off; in bpf_convert_filter() 833 stack_off = fp->k * 4 + 4; in bpf_convert_filter() 836 -stack_off); in bpf_convert_filter()
|
/openbmc/linux/kernel/bpf/ |
H A D | verifier.c | 7124 int stack_off = -i - 1; in check_stack_range_initialized() local 7128 if (state->allocated_stack <= stack_off) in check_stack_range_initialized() 7130 if (state->stack[spi].slot_type[stack_off % BPF_REG_SIZE] == STACK_DYNPTR) { in check_stack_range_initialized()
|