prog_cnt 321 drivers/media/rc/bpf-lirc.c if (copy_to_user(&uattr->query.prog_cnt, &cnt, sizeof(cnt))) { prog_cnt 331 drivers/media/rc/bpf-lirc.c if (attr->query.prog_cnt != 0 && prog_ids && cnt) prog_cnt 521 include/linux/bpf.h struct bpf_prog_array *bpf_prog_array_alloc(u32 prog_cnt, gfp_t flags); prog_cnt 532 include/linux/bpf.h u32 *prog_cnt); prog_cnt 482 include/uapi/linux/bpf.h __u32 prog_cnt; prog_cnt 444 include/uapi/linux/perf_event.h __u32 prog_cnt; prog_cnt 521 kernel/bpf/cgroup.c if (copy_to_user(&uattr->query.prog_cnt, &cnt, sizeof(cnt))) prog_cnt 523 kernel/bpf/cgroup.c if (attr->query.prog_cnt == 0 || !prog_ids || !cnt) prog_cnt 526 kernel/bpf/cgroup.c if (attr->query.prog_cnt < cnt) { prog_cnt 527 kernel/bpf/cgroup.c cnt = attr->query.prog_cnt; prog_cnt 1786 kernel/bpf/core.c struct bpf_prog_array *bpf_prog_array_alloc(u32 prog_cnt, gfp_t flags) prog_cnt 1788 kernel/bpf/core.c if (prog_cnt) prog_cnt 1791 kernel/bpf/core.c (prog_cnt + 1), prog_cnt 1949 kernel/bpf/core.c u32 *prog_cnt) prog_cnt 1956 kernel/bpf/core.c *prog_cnt = cnt; prog_cnt 2053 kernel/bpf/syscall.c #define BPF_PROG_QUERY_LAST_FIELD query.prog_cnt prog_cnt 1270 kernel/trace/bpf_trace.c u32 *ids, prog_cnt, ids_len; prog_cnt 1295 kernel/trace/bpf_trace.c ret = bpf_prog_array_copy_info(progs, ids, ids_len, &prog_cnt); prog_cnt 1298 kernel/trace/bpf_trace.c if (copy_to_user(&uquery->prog_cnt, &prog_cnt, sizeof(prog_cnt)) || prog_cnt 77 net/core/flow_dissector.c u32 prog_id, prog_cnt = 0, flags = 0; prog_cnt 91 net/core/flow_dissector.c prog_cnt = 1; prog_cnt 100 net/core/flow_dissector.c if (copy_to_user(&uattr->query.prog_cnt, &prog_cnt, sizeof(prog_cnt))) prog_cnt 103 net/core/flow_dissector.c if (!attr->query.prog_cnt || !prog_ids || !prog_cnt) prog_cnt 39 samples/bpf/bpf_load.c int prog_cnt; prog_cnt 128 samples/bpf/bpf_load.c if (prog_cnt == MAX_PROGS) prog_cnt 138 samples/bpf/bpf_load.c prog_fd[prog_cnt++] = fd; prog_cnt 164 samples/bpf/bpf_load.c event_fd[prog_cnt - 1] = efd; prog_cnt 248 samples/bpf/bpf_load.c event_fd[prog_cnt - 1] = efd; prog_cnt 32 samples/bpf/bpf_load.h extern int prog_cnt; prog_cnt 54 samples/bpf/test_cgrp2_sock2.c if (filter_id >= prog_cnt) { prog_cnt 628 samples/bpf/xdp_monitor_user.c printf("Loaded BPF prog have %d bpf program(s)\n", prog_cnt); prog_cnt 629 samples/bpf/xdp_monitor_user.c for (i = 0; i < prog_cnt; i++) { prog_cnt 643 samples/bpf/xdp_monitor_user.c printf("Searching for (max:%d) event file descriptor(s)\n", prog_cnt); prog_cnt 644 samples/bpf/xdp_monitor_user.c for (i = 0; i < prog_cnt; i++) { prog_cnt 109 tools/bpf/bpftool/cgroup.c __u32 prog_cnt = 0; prog_cnt 113 tools/bpf/bpftool/cgroup.c NULL, &prog_cnt); prog_cnt 117 tools/bpf/bpftool/cgroup.c return prog_cnt; prog_cnt 144 tools/bpf/bpftool/cgroup.c __u32 prog_cnt, iter; prog_cnt 149 tools/bpf/bpftool/cgroup.c prog_cnt = ARRAY_SIZE(prog_ids); prog_cnt 151 tools/bpf/bpftool/cgroup.c prog_ids, &prog_cnt); prog_cnt 155 tools/bpf/bpftool/cgroup.c if (prog_cnt == 0) prog_cnt 173 tools/bpf/bpftool/cgroup.c for (iter = 0; iter < prog_cnt; iter++) prog_cnt 223 tools/bpf/bpftool/net.c __u32 prog_cnt; prog_cnt 233 tools/bpf/bpftool/net.c prog_cnt = ARRAY_SIZE(prog_ids); prog_cnt 235 tools/bpf/bpftool/net.c &attach_flags, prog_ids, &prog_cnt); prog_cnt 249 tools/bpf/bpftool/net.c if (prog_cnt == 1) prog_cnt 482 tools/include/uapi/linux/bpf.h __u32 prog_cnt; prog_cnt 444 tools/include/uapi/linux/perf_event.h __u32 prog_cnt; prog_cnt 500 tools/lib/bpf/bpf.c __u32 *attach_flags, __u32 *prog_ids, __u32 *prog_cnt) prog_cnt 509 tools/lib/bpf/bpf.c attr.query.prog_cnt = *prog_cnt; prog_cnt 515 tools/lib/bpf/bpf.c *prog_cnt = attr.query.prog_cnt; prog_cnt 166 tools/lib/bpf/bpf.h __u32 *prog_ids, __u32 *prog_cnt); prog_cnt 69 tools/testing/selftests/bpf/prog_tests/tp_attach_query.c if (CHECK(err || query->prog_cnt != 0, prog_cnt 72 tools/testing/selftests/bpf/prog_tests/tp_attach_query.c err, errno, query->prog_cnt)) prog_cnt 85 tools/testing/selftests/bpf/prog_tests/tp_attach_query.c if (CHECK(err || query->prog_cnt != 2, prog_cnt 88 tools/testing/selftests/bpf/prog_tests/tp_attach_query.c err, errno, query->prog_cnt)) prog_cnt 103 tools/testing/selftests/bpf/prog_tests/tp_attach_query.c if (CHECK(!err || errno != ENOSPC || query->prog_cnt != 2, prog_cnt 106 tools/testing/selftests/bpf/prog_tests/tp_attach_query.c err, errno, query->prog_cnt)) prog_cnt 112 tools/testing/selftests/bpf/prog_tests/tp_attach_query.c if (CHECK(err || query->prog_cnt != (i + 1), prog_cnt 115 tools/testing/selftests/bpf/prog_tests/tp_attach_query.c err, errno, query->prog_cnt)) prog_cnt 291 tools/testing/selftests/bpf/test_cgroup_attach.c __u32 prog_ids[4], prog_cnt = 0, attach_flags, saved_prog_id; prog_cnt 368 tools/testing/selftests/bpf/test_cgroup_attach.c NULL, NULL, &prog_cnt) == 0); prog_cnt 369 tools/testing/selftests/bpf/test_cgroup_attach.c assert(prog_cnt == 4); prog_cnt 372 tools/testing/selftests/bpf/test_cgroup_attach.c &attach_flags, prog_ids, &prog_cnt) == 0); prog_cnt 373 tools/testing/selftests/bpf/test_cgroup_attach.c assert(prog_cnt == 4); prog_cnt 378 tools/testing/selftests/bpf/test_cgroup_attach.c prog_cnt = 2; prog_cnt 380 tools/testing/selftests/bpf/test_cgroup_attach.c &attach_flags, prog_ids, &prog_cnt) == -1 && prog_cnt 382 tools/testing/selftests/bpf/test_cgroup_attach.c assert(prog_cnt == 4); prog_cnt 388 tools/testing/selftests/bpf/test_cgroup_attach.c NULL, prog_ids, &prog_cnt) == 0); prog_cnt 389 tools/testing/selftests/bpf/test_cgroup_attach.c assert(prog_cnt == 1); prog_cnt 430 tools/testing/selftests/bpf/test_cgroup_attach.c prog_cnt = 4; prog_cnt 432 tools/testing/selftests/bpf/test_cgroup_attach.c &attach_flags, prog_ids, &prog_cnt) == 0); prog_cnt 433 tools/testing/selftests/bpf/test_cgroup_attach.c assert(prog_cnt == 3); prog_cnt 436 tools/testing/selftests/bpf/test_cgroup_attach.c NULL, prog_ids, &prog_cnt) == 0); prog_cnt 437 tools/testing/selftests/bpf/test_cgroup_attach.c assert(prog_cnt == 0); prog_cnt 461 tools/testing/selftests/bpf/test_cgroup_attach.c __u32 prog_cnt = 4, attach_flags; prog_cnt 495 tools/testing/selftests/bpf/test_cgroup_attach.c prog_ids, &prog_cnt) == 0); prog_cnt 28 tools/testing/selftests/bpf/test_dev_cgroup.c __u32 prog_cnt; prog_cnt 60 tools/testing/selftests/bpf/test_dev_cgroup.c &prog_cnt)) { prog_cnt 54 tools/testing/selftests/bpf/test_lirc_mode2_user.c u32 prog_ids[10], prog_flags[10], prog_cnt; prog_cnt 87 tools/testing/selftests/bpf/test_lirc_mode2_user.c prog_cnt = 10; prog_cnt 89 tools/testing/selftests/bpf/test_lirc_mode2_user.c &prog_cnt); prog_cnt 95 tools/testing/selftests/bpf/test_lirc_mode2_user.c if (prog_cnt != 0) { prog_cnt 155 tools/testing/selftests/bpf/test_lirc_mode2_user.c prog_cnt = 10; prog_cnt 157 tools/testing/selftests/bpf/test_lirc_mode2_user.c &prog_cnt); prog_cnt 163 tools/testing/selftests/bpf/test_lirc_mode2_user.c if (prog_cnt != 1) { prog_cnt 46 tools/testing/selftests/bpf/test_netcnt.c __u32 prog_cnt; prog_cnt 90 tools/testing/selftests/bpf/test_netcnt.c &prog_cnt)) {