Searched refs:BPF_MAXINSNS (Results 1 – 15 of 15) sorted by relevance
53 #ifndef BPF_MAXINSNS54 #define BPF_MAXINSNS 4096 macro
468 static struct sock_filter out[BPF_MAXINSNS];473 if (curr_instr >= BPF_MAXINSNS) { in bpf_assert_max()474 fprintf(stderr, "only max %u insns allowed!\n", BPF_MAXINSNS); in bpf_assert_max()615 labels = calloc(BPF_MAXINSNS, sizeof(*labels)); in bpf_init()617 labels_jt = calloc(BPF_MAXINSNS, sizeof(*labels_jt)); in bpf_init()619 labels_jf = calloc(BPF_MAXINSNS, sizeof(*labels_jf)); in bpf_init()621 labels_k = calloc(BPF_MAXINSNS, sizeof(*labels_k)); in bpf_init()
131 static struct sock_filter bpf_image[BPF_MAXINSNS + 1];135 static struct bpf_regs bpf_regs[BPF_MAXINSNS + 1];1014 sp != separator || bpf_len > BPF_MAXINSNS || bpf_len == 0) { in cmd_load_bpf()
25 static struct bpf_insn prog[BPF_MAXINSNS];170 for (i = start_insns; i <= BPF_MAXINSNS; i++) { in do_test()
45 #define MAX_INSNS BPF_MAXINSNS
24 if (count < 1 || count > BPF_MAXINSNS) in bpf_resolve_jumps()
182 .len = sizeof(struct sock_filter) * BPF_MAXINSNS },194 if (bpf_num_ops > BPF_MAXINSNS || bpf_num_ops == 0) in tcf_bpf_init_from_ops()
63 .len = sizeof(struct sock_filter) * BPF_MAXINSNS },348 if (bpf_num_ops > BPF_MAXINSNS || bpf_num_ops == 0) in cls_bpf_prog_from_ops()
334 if (!reg->filter.filter_len || reg->filter.filter_len > BPF_MAXINSNS) in io_bpf_filter_import()
92 A: The only limit known to the user space is BPF_MAXINSNS (4096).
680 if (fprog->len == 0 || fprog->len > BPF_MAXINSNS) in seccomp_prepare_filter()
451 int count = BPF_MAXINSNS + 1; in TEST()488 int count = BPF_MAXINSNS; in TEST()
597 if (len <= 0 || len > BPF_MAXINSNS) in bpf_convert_filter()1059 if (flen == 0 || flen > BPF_MAXINSNS) in bpf_check_basics_ok()
2979 attr->insn_cnt > (bpf_cap ? BPF_COMPLEXITY_LIMIT_INSNS : BPF_MAXINSNS)) { in BTF_ID_LIST_GLOBAL_SINGLE()