Home
last modified time | relevance | path

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

/tools/include/uapi/linux/
Dbpf_common.h53 #ifndef BPF_MAXINSNS
54 #define BPF_MAXINSNS 4096 macro
/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()
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()
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()
/tools/lib/bpf/
Dlibbpf_probes.c347 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()
Dlibbpf.c6796 } else if (load_attr.insns_cnt >= BPF_MAXINSNS) { in load_program()
6798 load_attr.insns_cnt, BPF_MAXINSNS); in load_program()
/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.c50 #define MAX_INSNS BPF_MAXINSNS
/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.c448 BPF_MAXINSNS - orig_insns_cnt); in preproc_gen_prologue()
603 priv->insns_buf = malloc(sizeof(struct bpf_insn) * BPF_MAXINSNS); in hook_load_preprocessor()
/tools/testing/selftests/seccomp/
Dseccomp_bpf.c406 int count = BPF_MAXINSNS + 1; in TEST()
443 int count = BPF_MAXINSNS; in TEST()