insns_cnt 90 samples/bpf/bpf_load.c size_t insns_cnt = size / sizeof(struct bpf_insn); insns_cnt 131 samples/bpf/bpf_load.c fd = bpf_load_program(prog_type, prog, insns_cnt, license, kern_version, insns_cnt 59 samples/bpf/fds_example.c size_t insns_cnt = sizeof(insns) / sizeof(struct bpf_insn); insns_cnt 70 samples/bpf/fds_example.c insns, insns_cnt, "GPL", 0, insns_cnt 61 samples/bpf/sock_example.c size_t insns_cnt = sizeof(prog) / sizeof(struct bpf_insn); insns_cnt 63 samples/bpf/sock_example.c prog_fd = bpf_load_program(BPF_PROG_TYPE_SOCKET_FILTER, prog, insns_cnt, insns_cnt 72 samples/bpf/test_cgrp2_attach.c size_t insns_cnt = sizeof(prog) / sizeof(struct bpf_insn); insns_cnt 75 samples/bpf/test_cgrp2_attach.c prog, insns_cnt, "GPL", 0, insns_cnt 75 samples/bpf/test_cgrp2_sock.c size_t insns_cnt; insns_cnt 79 samples/bpf/test_cgrp2_sock.c insns_cnt = sizeof(prog_start) + sizeof(prog_end); insns_cnt 81 samples/bpf/test_cgrp2_sock.c insns_cnt += sizeof(prog_dev); insns_cnt 84 samples/bpf/test_cgrp2_sock.c insns_cnt += sizeof(prog_mark); insns_cnt 87 samples/bpf/test_cgrp2_sock.c insns_cnt += sizeof(prog_prio); insns_cnt 89 samples/bpf/test_cgrp2_sock.c p = prog = malloc(insns_cnt); insns_cnt 116 samples/bpf/test_cgrp2_sock.c insns_cnt /= sizeof(struct bpf_insn); insns_cnt 118 samples/bpf/test_cgrp2_sock.c ret = bpf_load_program(BPF_PROG_TYPE_CGROUP_SOCK, prog, insns_cnt, insns_cnt 231 tools/lib/bpf/bpf.c attr.insn_cnt = (__u32)load_attr->insns_cnt; insns_cnt 317 tools/lib/bpf/bpf.c size_t insns_cnt, const char *license, insns_cnt 328 tools/lib/bpf/bpf.c load_attr.insns_cnt = insns_cnt; insns_cnt 336 tools/lib/bpf/bpf.c size_t insns_cnt, __u32 prog_flags, const char *license, insns_cnt 344 tools/lib/bpf/bpf.c attr.insn_cnt = (__u32)insns_cnt; insns_cnt 78 tools/lib/bpf/bpf.h size_t insns_cnt; insns_cnt 102 tools/lib/bpf/bpf.h const struct bpf_insn *insns, size_t insns_cnt, insns_cnt 107 tools/lib/bpf/bpf.h size_t insns_cnt, __u32 prog_flags, insns_cnt 1000 tools/lib/bpf/btf.c const char *sec_name, __u32 insns_cnt, insns_cnt 1036 tools/lib/bpf/btf.c insns_cnt; insns_cnt 1048 tools/lib/bpf/btf.c const char *sec_name, __u32 insns_cnt, insns_cnt 1052 tools/lib/bpf/btf.c insns_cnt, func_info, cnt); insns_cnt 1057 tools/lib/bpf/btf.c const char *sec_name, __u32 insns_cnt, insns_cnt 1061 tools/lib/bpf/btf.c insns_cnt, line_info, cnt); insns_cnt 95 tools/lib/bpf/btf.h const char *sec_name, __u32 insns_cnt, insns_cnt 99 tools/lib/bpf/btf.h const char *sec_name, __u32 insns_cnt, insns_cnt 161 tools/lib/bpf/libbpf.c size_t insns_cnt, main_prog_cnt; insns_cnt 343 tools/lib/bpf/libbpf.c prog->insns_cnt = 0; insns_cnt 392 tools/lib/bpf/libbpf.c prog->insns_cnt = size / bpf_insn_sz; insns_cnt 1967 tools/lib/bpf/libbpf.c attr.insns_cnt = ARRAY_SIZE(insns); insns_cnt 2024 tools/lib/bpf/libbpf.c prg_attr.insns_cnt = ARRAY_SIZE(insns); insns_cnt 3219 tools/lib/bpf/libbpf.c new_cnt = prog->insns_cnt + text->insns_cnt; insns_cnt 3230 tools/lib/bpf/libbpf.c prog->insns_cnt); insns_cnt 3235 tools/lib/bpf/libbpf.c memcpy(new_insn + prog->insns_cnt, text->insns, insns_cnt 3236 tools/lib/bpf/libbpf.c text->insns_cnt * sizeof(*insn)); insns_cnt 3237 tools/lib/bpf/libbpf.c prog->main_prog_cnt = prog->insns_cnt; insns_cnt 3238 tools/lib/bpf/libbpf.c prog->insns_cnt = new_cnt; insns_cnt 3240 tools/lib/bpf/libbpf.c text->insns_cnt, text->section_name, insns_cnt 3276 tools/lib/bpf/libbpf.c if (insn_idx + 1 >= (int)prog->insns_cnt) { insns_cnt 3364 tools/lib/bpf/libbpf.c load_program(struct bpf_program *prog, struct bpf_insn *insns, int insns_cnt, insns_cnt 3373 tools/lib/bpf/libbpf.c if (!insns || !insns_cnt) insns_cnt 3382 tools/lib/bpf/libbpf.c load_attr.insns_cnt = insns_cnt; insns_cnt 3430 tools/lib/bpf/libbpf.c } else if (load_attr.insns_cnt >= BPF_MAXINSNS) { insns_cnt 3432 tools/lib/bpf/libbpf.c load_attr.insns_cnt, BPF_MAXINSNS); insns_cnt 3485 tools/lib/bpf/libbpf.c err = load_program(prog, prog->insns, prog->insns_cnt, insns_cnt 3498 tools/lib/bpf/libbpf.c prog->insns_cnt, &result); insns_cnt 3533 tools/lib/bpf/libbpf.c prog->insns_cnt = 0; insns_cnt 246 tools/lib/bpf/libbpf.h struct bpf_insn *insns, int insns_cnt, insns_cnt 69 tools/lib/bpf/libbpf_probes.c size_t insns_cnt, char *buf, size_t buf_len, __u32 ifindex) insns_cnt 111 tools/lib/bpf/libbpf_probes.c xattr.insns_cnt = insns_cnt; insns_cnt 373 tools/lib/bpf/xsk.c size_t insns_cnt = sizeof(prog) / sizeof(struct bpf_insn); insns_cnt 375 tools/lib/bpf/xsk.c prog_fd = bpf_load_program(BPF_PROG_TYPE_XDP, prog, insns_cnt, insns_cnt 25 tools/testing/selftests/bpf/prog_tests/raw_tp_writable_reject_nbd_invalid.c .insns_cnt = sizeof(program) / sizeof(struct bpf_insn), insns_cnt 23 tools/testing/selftests/bpf/prog_tests/raw_tp_writable_test_run.c .insns_cnt = sizeof(trace_program) / sizeof(struct bpf_insn), insns_cnt 41 tools/testing/selftests/bpf/prog_tests/raw_tp_writable_test_run.c .insns_cnt = sizeof(skb_program) / sizeof(struct bpf_insn), insns_cnt 865 tools/testing/selftests/bpf/prog_tests/sockopt.c insns[attr.insns_cnt].code != (BPF_JMP | BPF_EXIT); insns_cnt 866 tools/testing/selftests/bpf/prog_tests/sockopt.c attr.insns_cnt++) { insns_cnt 868 tools/testing/selftests/bpf/prog_tests/sockopt.c attr.insns_cnt++; insns_cnt 58 tools/testing/selftests/bpf/test_cgroup_attach.c size_t insns_cnt = sizeof(prog) / sizeof(struct bpf_insn); insns_cnt 61 tools/testing/selftests/bpf/test_cgroup_attach.c prog, insns_cnt, "GPL", 0, insns_cnt 272 tools/testing/selftests/bpf/test_cgroup_attach.c size_t insns_cnt = sizeof(prog) / sizeof(struct bpf_insn); insns_cnt 276 tools/testing/selftests/bpf/test_cgroup_attach.c prog, insns_cnt, "GPL", 0, insns_cnt 38 tools/testing/selftests/bpf/test_cgroup_storage.c size_t insns_cnt = sizeof(prog) / sizeof(struct bpf_insn); insns_cnt 70 tools/testing/selftests/bpf/test_cgroup_storage.c prog, insns_cnt, "GPL", 0, insns_cnt 82 tools/testing/selftests/bpf/test_lru_map.c prog.insns_cnt = ARRAY_SIZE(insns); insns_cnt 338 tools/testing/selftests/bpf/test_sock.c attr.insns_cnt = probe_prog_length(attr.insns); insns_cnt 642 tools/testing/selftests/bpf/test_sock_addr.c const struct bpf_insn *insns, size_t insns_cnt) insns_cnt 651 tools/testing/selftests/bpf/test_sock_addr.c load_attr.insns_cnt = insns_cnt; insns_cnt 23 tools/testing/selftests/bpf/test_stub.c size_t insns_cnt, const char *license, insns_cnt 34 tools/testing/selftests/bpf/test_stub.c load_attr.insns_cnt = insns_cnt; insns_cnt 1421 tools/testing/selftests/bpf/test_sysctl.c attr.insns_cnt = probe_prog_length(attr.insns); insns_cnt 943 tools/testing/selftests/bpf/test_verifier.c attr.insns_cnt = prog_len;