| /OK3568_Linux_fs/prebuilts/gcc/linux-x86/arm/gcc-arm-10.3-2021.07-x86_64-arm-none-linux-gnueabihf/arm-none-linux-gnueabihf/libc/usr/include/linux/ |
| H A D | bpf_common.h | 53 #ifndef BPF_MAXINSNS 54 #define BPF_MAXINSNS 4096 macro
|
| /OK3568_Linux_fs/prebuilts/gcc/linux-x86/aarch64/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/aarch64-none-linux-gnu/libc/usr/include/linux/ |
| H A D | bpf_common.h | 53 #ifndef BPF_MAXINSNS 54 #define BPF_MAXINSNS 4096 macro
|
| /OK3568_Linux_fs/kernel/tools/include/uapi/linux/ |
| H A D | bpf_common.h | 53 #ifndef BPF_MAXINSNS 54 #define BPF_MAXINSNS 4096 macro
|
| /OK3568_Linux_fs/kernel/include/uapi/linux/ |
| H A D | bpf_common.h | 53 #ifndef BPF_MAXINSNS 54 #define BPF_MAXINSNS 4096 macro
|
| /OK3568_Linux_fs/kernel/tools/bpf/ |
| H A D | bpf_exp.y | 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()
|
| H A D | bpf_dbg.c | 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()
|
| /OK3568_Linux_fs/kernel/tools/lib/bpf/ |
| H A D | libbpf_probes.c | 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()
|
| H A D | libbpf.c | 6793 } else if (load_attr.insns_cnt >= BPF_MAXINSNS) { in load_program() 6795 load_attr.insns_cnt, BPF_MAXINSNS); in load_program()
|
| /OK3568_Linux_fs/kernel/tools/testing/selftests/bpf/ |
| H A D | test_tag.c | 25 static struct bpf_insn prog[BPF_MAXINSNS]; 170 for (i = start_insns; i <= BPF_MAXINSNS; i++) { in do_test()
|
| H A D | test_verifier.c | 50 #define MAX_INSNS BPF_MAXINSNS
|
| /OK3568_Linux_fs/kernel/tools/perf/util/ |
| H A D | bpf-prologue.c | 378 if (cnt_space > BPF_MAXINSNS) in bpf__gen_prologue() 379 cnt_space = BPF_MAXINSNS; in bpf__gen_prologue()
|
| H A D | bpf-loader.c | 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()
|
| /OK3568_Linux_fs/kernel/samples/seccomp/ |
| H A D | bpf-helper.c | 24 if (count < 1 || count > BPF_MAXINSNS) in bpf_resolve_jumps()
|
| /OK3568_Linux_fs/kernel/net/sched/ |
| H A D | act_bpf.c | 183 .len = sizeof(struct sock_filter) * BPF_MAXINSNS }, 195 if (bpf_num_ops > BPF_MAXINSNS || bpf_num_ops == 0) in tcf_bpf_init_from_ops()
|
| H A D | cls_bpf.c | 62 .len = sizeof(struct sock_filter) * BPF_MAXINSNS }, 347 if (bpf_num_ops > BPF_MAXINSNS || bpf_num_ops == 0) in cls_bpf_prog_from_ops()
|
| /OK3568_Linux_fs/kernel/lib/ |
| H A D | test_bpf.c | 89 unsigned int len = BPF_MAXINSNS; in bpf_fill_maxinsns1() 109 unsigned int len = BPF_MAXINSNS; in bpf_fill_maxinsns2() 128 unsigned int len = BPF_MAXINSNS; in bpf_fill_maxinsns3() 155 unsigned int len = BPF_MAXINSNS + 1; in bpf_fill_maxinsns4() 174 unsigned int len = BPF_MAXINSNS; in bpf_fill_maxinsns5() 197 unsigned int len = BPF_MAXINSNS; in bpf_fill_maxinsns6() 219 unsigned int len = BPF_MAXINSNS; in bpf_fill_maxinsns7() 245 unsigned int len = BPF_MAXINSNS; in bpf_fill_maxinsns8() 268 unsigned int len = BPF_MAXINSNS; in bpf_fill_maxinsns9() 294 unsigned int len = BPF_MAXINSNS, hlen = len - 2; in bpf_fill_maxinsns10() [all …]
|
| /OK3568_Linux_fs/kernel/Documentation/bpf/ |
| H A D | bpf_design_QA.rst | 92 A: The only limit known to the user space is BPF_MAXINSNS (4096).
|
| /OK3568_Linux_fs/kernel/kernel/ |
| H A D | seccomp.c | 637 if (fprog->len == 0 || fprog->len > BPF_MAXINSNS) in seccomp_prepare_filter()
|
| /OK3568_Linux_fs/kernel/tools/testing/selftests/seccomp/ |
| H A D | seccomp_bpf.c | 406 int count = BPF_MAXINSNS + 1; in TEST() 443 int count = BPF_MAXINSNS; in TEST()
|
| /OK3568_Linux_fs/kernel/kernel/bpf/ |
| H A D | syscall.c | 2155 attr->insn_cnt > (bpf_capable() ? BPF_COMPLEXITY_LIMIT_INSNS : BPF_MAXINSNS)) in bpf_prog_load()
|
| /OK3568_Linux_fs/kernel/net/core/ |
| H A D | filter.c | 568 if (len <= 0 || len > BPF_MAXINSNS) in bpf_convert_filter() 1031 if (flen == 0 || flen > BPF_MAXINSNS) in bpf_check_basics_ok()
|