Home
last modified time | relevance | path

Searched refs:BPF_REG_SIZE (Results 1 – 4 of 4) sorted by relevance

/Linux-v5.10/include/linux/
Dbpf_verifier.h160 #define BPF_REG_SIZE 8 /* size of eBPF register in bytes */ macro
164 u8 slot_type[BPF_REG_SIZE];
276 (((slot < frame->allocated_stack / BPF_REG_SIZE) && \
283 iter < frame->allocated_stack / BPF_REG_SIZE; \
/Linux-v5.10/tools/perf/util/
Dbpf-prologue.c20 #define BPF_REG_SIZE 8 macro
156 ins(BPF_ALU64_IMM(BPF_MOV, BPF_REG_ARG2, BPF_REG_SIZE), pos); in gen_read_mem()
314 BPF_REG_FP, -BPF_REG_SIZE * (i + 1)), pos); in gen_prologue_slowpath()
/Linux-v5.10/kernel/bpf/
Dverifier.c653 for (i = 0; i < state->allocated_stack / BPF_REG_SIZE; i++) { in print_verifier_state()
654 char types_buf[BPF_REG_SIZE + 1]; in print_verifier_state()
658 for (j = 0; j < BPF_REG_SIZE; j++) { in print_verifier_state()
664 types_buf[BPF_REG_SIZE] = 0; in print_verifier_state()
667 verbose(env, " fp%d", (-i - 1) * BPF_REG_SIZE); in print_verifier_state()
708 COPY_STATE_FN(stack, allocated_stack, stack, BPF_REG_SIZE) in COPY_STATE_FN() argument
748 REALLOC_STATE_FN(stack, allocated_stack, stack, BPF_REG_SIZE)
1875 spi = (-insn->off - 1) / BPF_REG_SIZE; in backtrack_insn()
1894 spi = (-insn->off - 1) / BPF_REG_SIZE; in backtrack_insn()
2008 for (j = 0; j < func->allocated_stack / BPF_REG_SIZE; j++) { in mark_all_scalars_precise()
[all …]
/Linux-v5.10/drivers/net/ethernet/netronome/nfp/bpf/
Dverifier.c108 stack_entry = &state->stack[soff / BPF_REG_SIZE]; in nfp_bpf_map_update_value_ok()
109 if (stack_entry->slot_type[soff % BPF_REG_SIZE] == STACK_ZERO) in nfp_bpf_map_update_value_ok()
786 nfp_prog->subprog[i].stack_depth += BPF_REG_SIZE * 4; in nfp_bpf_finalize()