Home
last modified time | relevance | path

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

/linux-6.1.9/tools/include/uapi/linux/
Dbpf_common.h53 #ifndef BPF_MAXINSNS
54 #define BPF_MAXINSNS 4096 macro
/linux-6.1.9/include/uapi/linux/
Dbpf_common.h53 #ifndef BPF_MAXINSNS
54 #define BPF_MAXINSNS 4096 macro
/linux-6.1.9/tools/bpf/
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()
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()
/linux-6.1.9/tools/testing/selftests/bpf/
Dtest_tag.c25 static struct bpf_insn prog[BPF_MAXINSNS];
170 for (i = start_insns; i <= BPF_MAXINSNS; i++) { in do_test()
Dtest_verifier.c53 #define MAX_INSNS BPF_MAXINSNS
/linux-6.1.9/tools/perf/util/
Dbpf-prologue.c378 if (cnt_space > BPF_MAXINSNS) in bpf__gen_prologue()
379 cnt_space = BPF_MAXINSNS; in bpf__gen_prologue()
Dbpf-loader.c691 BPF_MAXINSNS - orig_insns_cnt); in preproc_gen_prologue()
845 priv->insns_buf = malloc(sizeof(struct bpf_insn) * BPF_MAXINSNS); in hook_load_preprocessor()
/linux-6.1.9/samples/seccomp/
Dbpf-helper.c24 if (count < 1 || count > BPF_MAXINSNS) in bpf_resolve_jumps()
/linux-6.1.9/net/sched/
Dact_bpf.c182 .len = sizeof(struct sock_filter) * BPF_MAXINSNS },
194 if (bpf_num_ops > BPF_MAXINSNS || bpf_num_ops == 0) in tcf_bpf_init_from_ops()
Dcls_bpf.c62 .len = sizeof(struct sock_filter) * BPF_MAXINSNS },
346 if (bpf_num_ops > BPF_MAXINSNS || bpf_num_ops == 0) in cls_bpf_prog_from_ops()
/linux-6.1.9/tools/bpf/bpftool/
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()
/linux-6.1.9/lib/
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()
158 unsigned int len = BPF_MAXINSNS + 1; in bpf_fill_maxinsns4()
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()
297 unsigned int len = BPF_MAXINSNS, hlen = len - 2; in bpf_fill_maxinsns10()
[all …]
/linux-6.1.9/Documentation/bpf/
Dbpf_design_QA.rst92 A: The only limit known to the user space is BPF_MAXINSNS (4096).
/linux-6.1.9/kernel/
Dseccomp.c650 if (fprog->len == 0 || fprog->len > BPF_MAXINSNS) in seccomp_prepare_filter()
/linux-6.1.9/tools/testing/selftests/seccomp/
Dseccomp_bpf.c417 int count = BPF_MAXINSNS + 1; in TEST()
454 int count = BPF_MAXINSNS; in TEST()
/linux-6.1.9/kernel/bpf/
Dsyscall.c2497 attr->insn_cnt > (bpf_capable() ? BPF_COMPLEXITY_LIMIT_INSNS : BPF_MAXINSNS)) in bpf_prog_load()
/linux-6.1.9/net/core/
Dfilter.c572 if (len <= 0 || len > BPF_MAXINSNS) in bpf_convert_filter()
1035 if (flen == 0 || flen > BPF_MAXINSNS) in bpf_check_basics_ok()