Home
last modified time | relevance | path

Searched refs:BPF_MAXINSNS (Results 1 – 16 of 16) sorted by relevance

/openbmc/linux/tools/include/uapi/linux/
H A Dbpf_common.h53 #ifndef BPF_MAXINSNS
54 #define BPF_MAXINSNS 4096 macro
/openbmc/linux/include/uapi/linux/
H A Dbpf_common.h53 #ifndef BPF_MAXINSNS
54 #define BPF_MAXINSNS 4096 macro
/openbmc/linux/tools/bpf/
H A Dbpf_exp.y468 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()
H A Dbpf_dbg.c131 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()
/openbmc/linux/tools/testing/selftests/bpf/
H A Dtest_tag.c25 static struct bpf_insn prog[BPF_MAXINSNS];
170 for (i = start_insns; i <= BPF_MAXINSNS; i++) { in do_test()
H A Dtest_verifier.c49 #define MAX_INSNS BPF_MAXINSNS
/openbmc/linux/samples/seccomp/
H A Dbpf-helper.c24 if (count < 1 || count > BPF_MAXINSNS) in bpf_resolve_jumps()
/openbmc/linux/net/sched/
H A Dact_bpf.c184 .len = sizeof(struct sock_filter) * BPF_MAXINSNS },
196 if (bpf_num_ops > BPF_MAXINSNS || bpf_num_ops == 0) in tcf_bpf_init_from_ops()
H A Dcls_bpf.c63 .len = sizeof(struct sock_filter) * BPF_MAXINSNS },
348 if (bpf_num_ops > BPF_MAXINSNS || bpf_num_ops == 0) in cls_bpf_prog_from_ops()
/openbmc/linux/tools/bpf/bpftool/
H A Dfeature.c814 struct bpf_insn insns[BPF_MAXINSNS + 1]; in probe_large_insn_limit()
817 for (i = 0; i < BPF_MAXINSNS; i++) in probe_large_insn_limit()
819 insns[BPF_MAXINSNS] = BPF_EXIT_INSN(); in probe_large_insn_limit()
/openbmc/linux/lib/
H A Dtest_bpf.c92 unsigned int len = BPF_MAXINSNS; in bpf_fill_maxinsns1()
112 unsigned int len = BPF_MAXINSNS; in bpf_fill_maxinsns2()
131 unsigned int len = BPF_MAXINSNS; in bpf_fill_maxinsns3()
177 unsigned int len = BPF_MAXINSNS; in bpf_fill_maxinsns5()
200 unsigned int len = BPF_MAXINSNS; in bpf_fill_maxinsns6()
222 unsigned int len = BPF_MAXINSNS; in bpf_fill_maxinsns7()
248 unsigned int len = BPF_MAXINSNS; in bpf_fill_maxinsns8()
271 unsigned int len = BPF_MAXINSNS; in bpf_fill_maxinsns9()
357 unsigned int len = BPF_MAXINSNS; in bpf_fill_maxinsns12()
380 unsigned int len = BPF_MAXINSNS; in bpf_fill_maxinsns13()
[all …]
/openbmc/linux/Documentation/bpf/
H A Dbpf_design_QA.rst92 A: The only limit known to the user space is BPF_MAXINSNS (4096).
/openbmc/linux/kernel/
H A Dseccomp.c659 if (fprog->len == 0 || fprog->len > BPF_MAXINSNS) in seccomp_prepare_filter()
/openbmc/linux/tools/testing/selftests/seccomp/
H A Dseccomp_bpf.c423 int count = BPF_MAXINSNS + 1; in TEST()
460 int count = BPF_MAXINSNS; in TEST()
/openbmc/linux/kernel/bpf/
H A Dsyscall.c2622 attr->insn_cnt > (bpf_capable() ? BPF_COMPLEXITY_LIMIT_INSNS : BPF_MAXINSNS)) in bpf_prog_load()
/openbmc/linux/net/core/
H A Dfilter.c574 if (len <= 0 || len > BPF_MAXINSNS) in bpf_convert_filter()
1037 if (flen == 0 || flen > BPF_MAXINSNS) in bpf_check_basics_ok()