Searched refs:BPF_MAXINSNS (Results 1 – 10 of 10) 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()613 labels = calloc(BPF_MAXINSNS, sizeof(*labels)); in bpf_init()615 labels_jt = calloc(BPF_MAXINSNS, sizeof(*labels_jt)); in bpf_init()617 labels_jf = calloc(BPF_MAXINSNS, sizeof(*labels_jf)); in bpf_init()619 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()
347 struct bpf_insn insns[BPF_MAXINSNS + 1]; in bpf_probe_large_insn_limit()350 for (i = 0; i < BPF_MAXINSNS; i++) in bpf_probe_large_insn_limit()352 insns[BPF_MAXINSNS] = BPF_EXIT_INSN(); in bpf_probe_large_insn_limit()
6796 } else if (load_attr.insns_cnt >= BPF_MAXINSNS) { in load_program()6798 load_attr.insns_cnt, BPF_MAXINSNS); in load_program()
25 static struct bpf_insn prog[BPF_MAXINSNS];170 for (i = start_insns; i <= BPF_MAXINSNS; i++) { in do_test()
50 #define MAX_INSNS BPF_MAXINSNS
378 if (cnt_space > BPF_MAXINSNS) in bpf__gen_prologue()379 cnt_space = BPF_MAXINSNS; in bpf__gen_prologue()
448 BPF_MAXINSNS - orig_insns_cnt); in preproc_gen_prologue()603 priv->insns_buf = malloc(sizeof(struct bpf_insn) * BPF_MAXINSNS); in hook_load_preprocessor()
406 int count = BPF_MAXINSNS + 1; in TEST()443 int count = BPF_MAXINSNS; in TEST()