Home
last modified time | relevance | path

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

/linux/include/linux/
H A Dbpf_verifier.h254 #define BPF_REG_SIZE 8 /* size of eBPF register in bytes */ macro
261 #define BPF_DYNPTR_NR_SLOTS (BPF_DYNPTR_SIZE / BPF_REG_SIZE)
265 u8 slot_type[BPF_REG_SIZE];
383 #define BPF_ID_MAP_SIZE ((MAX_BPF_REG + MAX_BPF_STACK / BPF_REG_SIZE) * MAX_CALL_FRAMES)
474 (((slot < frame->allocated_stack / BPF_REG_SIZE) && \
475 ((1 << frame->stack[slot].slot_type[BPF_REG_SIZE - 1]) & (mask))) \
481 iter < frame->allocated_stack / BPF_REG_SIZE; \
979 return !(off % BPF_REG_SIZE); in bpf_stack_narrow_access_ok()
/linux/kernel/bpf/
H A Dlog.c775 for (i = 0; i < state->allocated_stack / BPF_REG_SIZE; i++) { in print_verifier_state()
776 char types_buf[BPF_REG_SIZE + 1]; in print_verifier_state()
785 for (j = 0; j < BPF_REG_SIZE; j++) { in print_verifier_state()
791 types_buf[BPF_REG_SIZE] = 0; in print_verifier_state()
796 switch (state->stack[i].slot_type[BPF_REG_SIZE - 1]) { in print_verifier_state()
799 for (j = 0; j < BPF_REG_SIZE; j++) in print_verifier_state()
804 verbose(env, " fp%d", (-i - 1) * BPF_REG_SIZE); in print_verifier_state()
814 verbose(env, " fp%d", (-i - 1) * BPF_REG_SIZE); in print_verifier_state()
830 verbose(env, " fp%d", (-i - 1) * BPF_REG_SIZE); in print_verifier_state()
840 verbose(env, " fp%d", (-i - 1) * BPF_REG_SIZE); in print_verifier_state()
H A Dverifier.c580 return (-off - 1) / BPF_REG_SIZE; in __get_spi()
593 int allocated_slots = state->allocated_stack / BPF_REG_SIZE; in is_spi_bounds_valid()
616 if (off % BPF_REG_SIZE) { in stack_slot_obj_get_spi()
734 for (i = 0; i < BPF_REG_SIZE; i++) { in mark_stack_slots_dynptr()
772 for (i = 0; i < BPF_REG_SIZE; i++) { in invalidate_dynptr()
832 for (i = 1; i < state->allocated_stack / BPF_REG_SIZE; i++) { in unmark_stack_slots_dynptr()
890 for (i = 0; i < BPF_REG_SIZE; i++) { in destroy_if_dynptr_stack_slot()
966 for (i = 0; i < BPF_REG_SIZE; i++) { in is_dynptr_reg_valid_init()
1038 for (j = 0; j < BPF_REG_SIZE; j++) in mark_stack_slots_iter()
1069 for (j = 0; j < BPF_REG_SIZE; j++) in unmark_stack_slots_iter()
[all …]
/linux/drivers/net/ethernet/netronome/nfp/bpf/
H A 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()
791 nfp_prog->subprog[i].stack_depth += BPF_REG_SIZE * 4; in nfp_bpf_finalize()