prog_fd 439 include/uapi/linux/bpf.h __u32 prog_fd; prog_fd 487 include/uapi/linux/bpf.h __u32 prog_fd; prog_fd 1816 kernel/bpf/syscall.c #define BPF_RAW_TRACEPOINT_OPEN_LAST_FIELD raw_tracepoint.prog_fd prog_fd 1842 kernel/bpf/syscall.c prog = bpf_prog_get(attr->raw_tracepoint.prog_fd); prog_fd 2117 kernel/bpf/syscall.c prog = bpf_prog_get(attr->test.prog_fd); prog_fd 5160 kernel/events/core.c static int perf_event_set_bpf_prog(struct perf_event *event, u32 prog_fd); prog_fd 8999 kernel/events/core.c static int perf_event_set_bpf_handler(struct perf_event *event, u32 prog_fd) prog_fd 9010 kernel/events/core.c prog = bpf_prog_get_type(prog_fd, BPF_PROG_TYPE_PERF_EVENT); prog_fd 9032 kernel/events/core.c static int perf_event_set_bpf_handler(struct perf_event *event, u32 prog_fd) prog_fd 9060 kernel/events/core.c static int perf_event_set_bpf_prog(struct perf_event *event, u32 prog_fd) prog_fd 9067 kernel/events/core.c return perf_event_set_bpf_handler(event, prog_fd); prog_fd 9076 kernel/events/core.c prog = bpf_prog_get(prog_fd); prog_fd 9129 kernel/events/core.c static int perf_event_set_bpf_prog(struct perf_event *event, u32 prog_fd) prog_fd 37 samples/bpf/bpf_load.c int prog_fd[MAX_PROGS]; prog_fd 45 samples/bpf/bpf_load.c static int populate_prog_array(const char *event, int prog_fd) prog_fd 49 samples/bpf/bpf_load.c err = bpf_map_update_elem(prog_array_fd, &ind, &prog_fd, BPF_ANY); prog_fd 138 samples/bpf/bpf_load.c prog_fd[prog_cnt++] = fd; prog_fd 29 samples/bpf/bpf_load.h extern int prog_fd[MAX_PROGS]; prog_fd 64 samples/bpf/cookie_uid_helper_example.c static int map_fd, prog_fd; prog_fd 160 samples/bpf/cookie_uid_helper_example.c prog_fd = bpf_load_program(BPF_PROG_TYPE_SOCKET_FILTER, prog, prog_fd 163 samples/bpf/cookie_uid_helper_example.c if (prog_fd < 0) prog_fd 172 samples/bpf/cookie_uid_helper_example.c if (bpf_obj_pin(prog_fd, file)) prog_fd 320 samples/bpf/cookie_uid_helper_example.c close(prog_fd); prog_fd 62 samples/bpf/fds_example.c int prog_fd; prog_fd 66 samples/bpf/fds_example.c &obj, &prog_fd)); prog_fd 67 samples/bpf/fds_example.c return prog_fd; prog_fd 57 samples/bpf/sampleip_user.c prog_fd[0]) == 0); prog_fd 37 samples/bpf/sock_example.c int sock = -1, map_fd, prog_fd, i, key; prog_fd 63 samples/bpf/sock_example.c prog_fd = bpf_load_program(BPF_PROG_TYPE_SOCKET_FILTER, prog, insns_cnt, prog_fd 65 samples/bpf/sock_example.c if (prog_fd < 0) { prog_fd 72 samples/bpf/sock_example.c if (setsockopt(sock, SOL_SOCKET, SO_ATTACH_BPF, &prog_fd, prog_fd 73 samples/bpf/sock_example.c sizeof(prog_fd)) < 0) { prog_fd 14 samples/bpf/sockex1_user.c int map_fd, prog_fd; prog_fd 22 samples/bpf/sockex1_user.c &obj, &prog_fd)) prog_fd 29 samples/bpf/sockex1_user.c assert(setsockopt(sock, SOL_SOCKET, SO_ATTACH_BPF, &prog_fd, prog_fd 30 samples/bpf/sockex1_user.c sizeof(prog_fd)) == 0); prog_fd 21 samples/bpf/sockex2_user.c int map_fd, prog_fd; prog_fd 30 samples/bpf/sockex2_user.c &obj, &prog_fd)) prog_fd 37 samples/bpf/sockex2_user.c assert(setsockopt(sock, SOL_SOCKET, SO_ATTACH_BPF, &prog_fd, prog_fd 38 samples/bpf/sockex2_user.c sizeof(prog_fd)) == 0); prog_fd 13 samples/bpf/sockex3_user.c #define PARSE_IP_PROG_FD (prog_fd[0]) prog_fd 57 samples/bpf/sockex3_user.c assert(setsockopt(sock, SOL_SOCKET, SO_ATTACH_BPF, &prog_fd[4], prog_fd 155 samples/bpf/task_fd_query_user.c CHECK_PERROR_RET(ioctl(fd, PERF_EVENT_IOC_SET_BPF, prog_fd[0]) < 0); prog_fd 259 samples/bpf/task_fd_query_user.c CHECK_PERROR_RET(ioctl(kfd, PERF_EVENT_IOC_SET_BPF, prog_fd[0]) < 0); prog_fd 89 samples/bpf/test_cgrp2_attach.c int prog_fd, map_fd, ret, key; prog_fd 100 samples/bpf/test_cgrp2_attach.c prog_fd = prog_load(map_fd, verdict); prog_fd 103 samples/bpf/test_cgrp2_attach.c if (prog_fd < 0) { prog_fd 108 samples/bpf/test_cgrp2_attach.c ret = bpf_prog_attach(prog_fd, cg_fd, type, 0); prog_fd 208 samples/bpf/test_cgrp2_sock.c int cg_fd, prog_fd, ret; prog_fd 264 samples/bpf/test_cgrp2_sock.c prog_fd = prog_load(idx, mark, prio); prog_fd 265 samples/bpf/test_cgrp2_sock.c if (prog_fd < 0) { prog_fd 272 samples/bpf/test_cgrp2_sock.c ret = bpf_prog_attach(prog_fd, cg_fd, prog_fd 59 samples/bpf/test_cgrp2_sock2.c ret = bpf_prog_attach(prog_fd[filter_id], cg_fd, prog_fd 120 samples/bpf/test_overhead_user.c close(prog_fd[0]); prog_fd 121 samples/bpf/test_overhead_user.c close(prog_fd[1]); prog_fd 154 samples/bpf/trace_event_user.c assert(ioctl(pmu_fd[i], PERF_EVENT_IOC_SET_BPF, prog_fd[0]) == 0); prog_fd 188 samples/bpf/trace_event_user.c assert(ioctl(pmu_fd, PERF_EVENT_IOC_SET_BPF, prog_fd[0]) == 0); prog_fd 89 samples/bpf/xdp1_user.c int prog_fd, map_fd, opt; prog_fd 131 samples/bpf/xdp1_user.c if (bpf_prog_load_xattr(&prog_load_attr, &obj, &prog_fd)) prog_fd 141 samples/bpf/xdp1_user.c if (!prog_fd) { prog_fd 149 samples/bpf/xdp1_user.c if (bpf_set_link_xdp_fd(ifindex, prog_fd, xdp_flags) < 0) { prog_fd 154 samples/bpf/xdp1_user.c err = bpf_obj_get_info_by_fd(prog_fd, &info, &info_len); prog_fd 92 samples/bpf/xdp_adjust_tail_user.c int i, prog_fd, map_fd, opt; prog_fd 150 samples/bpf/xdp_adjust_tail_user.c if (bpf_prog_load_xattr(&prog_load_attr, &obj, &prog_fd)) prog_fd 160 samples/bpf/xdp_adjust_tail_user.c if (!prog_fd) { prog_fd 168 samples/bpf/xdp_adjust_tail_user.c if (bpf_set_link_xdp_fd(ifindex, prog_fd, xdp_flags) < 0) { prog_fd 173 samples/bpf/xdp_adjust_tail_user.c err = bpf_obj_get_info_by_fd(prog_fd, &info, &info_len); prog_fd 30 samples/bpf/xdp_fwd_user.c static int do_attach(int idx, int prog_fd, int map_fd, const char *name) prog_fd 34 samples/bpf/xdp_fwd_user.c err = bpf_set_link_xdp_fd(idx, prog_fd, 0); prog_fd 79 samples/bpf/xdp_fwd_user.c int prog_fd, map_fd = -1; prog_fd 115 samples/bpf/xdp_fwd_user.c err = bpf_prog_load_xattr(&prog_load_attr, &obj, &prog_fd); prog_fd 125 samples/bpf/xdp_fwd_user.c prog_fd = bpf_program__fd(prog); prog_fd 126 samples/bpf/xdp_fwd_user.c if (prog_fd < 0) { prog_fd 127 samples/bpf/xdp_fwd_user.c printf("program not found: %s\n", strerror(prog_fd)); prog_fd 152 samples/bpf/xdp_fwd_user.c err = do_attach(idx, prog_fd, map_fd, argv[i]); prog_fd 630 samples/bpf/xdp_monitor_user.c printf(" - prog_fd[%d] = fd(%d)\n", i, prog_fd[i]); prog_fd 692 samples/bpf/xdp_monitor_user.c if (!prog_fd[0]) { prog_fd 707 samples/bpf/xdp_monitor_user.c close(prog_fd[2]); /* func: trace_xdp_redirect */ prog_fd 709 samples/bpf/xdp_monitor_user.c close(prog_fd[3]); /* func: trace_xdp_redirect_map */ prog_fd 688 samples/bpf/xdp_redirect_cpu_user.c int prog_fd; prog_fd 707 samples/bpf/xdp_redirect_cpu_user.c if (bpf_prog_load_xattr(&prog_load_attr, &obj, &prog_fd)) prog_fd 710 samples/bpf/xdp_redirect_cpu_user.c if (prog_fd < 0) { prog_fd 806 samples/bpf/xdp_redirect_cpu_user.c prog_fd = bpf_program__fd(prog); prog_fd 807 samples/bpf/xdp_redirect_cpu_user.c if (prog_fd < 0) { prog_fd 812 samples/bpf/xdp_redirect_cpu_user.c if (bpf_set_link_xdp_fd(ifindex, prog_fd, xdp_flags) < 0) { prog_fd 817 samples/bpf/xdp_redirect_cpu_user.c err = bpf_obj_get_info_by_fd(prog_fd, &info, &info_len); prog_fd 106 samples/bpf/xdp_redirect_map_user.c int prog_fd, dummy_prog_fd; prog_fd 153 samples/bpf/xdp_redirect_map_user.c if (bpf_prog_load_xattr(&prog_load_attr, &obj, &prog_fd)) prog_fd 166 samples/bpf/xdp_redirect_map_user.c if (prog_fd < 0 || dummy_prog_fd < 0) { prog_fd 178 samples/bpf/xdp_redirect_map_user.c if (bpf_set_link_xdp_fd(ifindex_in, prog_fd, xdp_flags) < 0) { prog_fd 183 samples/bpf/xdp_redirect_map_user.c ret = bpf_obj_get_info_by_fd(prog_fd, &info, &info_len); prog_fd 105 samples/bpf/xdp_redirect_user.c int prog_fd, tx_port_map_fd, opt; prog_fd 154 samples/bpf/xdp_redirect_user.c if (bpf_prog_load_xattr(&prog_load_attr, &obj, &prog_fd)) prog_fd 167 samples/bpf/xdp_redirect_user.c if (prog_fd < 0 || dummy_prog_fd < 0) { prog_fd 179 samples/bpf/xdp_redirect_user.c if (bpf_set_link_xdp_fd(ifindex_in, prog_fd, xdp_flags) < 0) { prog_fd 184 samples/bpf/xdp_redirect_user.c ret = bpf_obj_get_info_by_fd(prog_fd, &info, &info_len); prog_fd 638 samples/bpf/xdp_router_ipv4_user.c int prog_fd, opt; prog_fd 675 samples/bpf/xdp_router_ipv4_user.c if (bpf_prog_load_xattr(&prog_load_attr, &obj, &prog_fd)) prog_fd 679 samples/bpf/xdp_router_ipv4_user.c if (!prog_fd) { prog_fd 707 samples/bpf/xdp_router_ipv4_user.c if (bpf_set_link_xdp_fd(ifindex_list[i], prog_fd, flags) < 0) { prog_fd 716 samples/bpf/xdp_router_ipv4_user.c err = bpf_obj_get_info_by_fd(prog_fd, &info, &info_len); prog_fd 466 samples/bpf/xdp_rxq_info_user.c int prog_fd, map_fd, opt, err; prog_fd 489 samples/bpf/xdp_rxq_info_user.c if (bpf_prog_load_xattr(&prog_load_attr, &obj, &prog_fd)) prog_fd 501 samples/bpf/xdp_rxq_info_user.c if (!prog_fd) { prog_fd 594 samples/bpf/xdp_rxq_info_user.c if (bpf_set_link_xdp_fd(ifindex, prog_fd, xdp_flags) < 0) { prog_fd 599 samples/bpf/xdp_rxq_info_user.c err = bpf_obj_get_info_by_fd(prog_fd, &info, &info_len); prog_fd 119 samples/bpf/xdp_sample_pkts_user.c int prog_fd, map_fd, opt; prog_fd 149 samples/bpf/xdp_sample_pkts_user.c if (bpf_prog_load_xattr(&prog_load_attr, &obj, &prog_fd)) prog_fd 152 samples/bpf/xdp_sample_pkts_user.c if (!prog_fd) { prog_fd 173 samples/bpf/xdp_sample_pkts_user.c err = do_attach(if_idx, prog_fd, if_name); prog_fd 169 samples/bpf/xdp_tx_iptunnel_user.c int opt, prog_fd; prog_fd 267 samples/bpf/xdp_tx_iptunnel_user.c if (bpf_prog_load_xattr(&prog_load_attr, &obj, &prog_fd)) prog_fd 270 samples/bpf/xdp_tx_iptunnel_user.c if (!prog_fd) { prog_fd 294 samples/bpf/xdp_tx_iptunnel_user.c if (bpf_set_link_xdp_fd(ifindex, prog_fd, xdp_flags) < 0) { prog_fd 299 samples/bpf/xdp_tx_iptunnel_user.c err = bpf_obj_get_info_by_fd(prog_fd, &info, &info_len); prog_fd 75 tools/bpf/bpftool/cgroup.c int prog_fd; prog_fd 77 tools/bpf/bpftool/cgroup.c prog_fd = bpf_prog_get_fd_by_id(id); prog_fd 78 tools/bpf/bpftool/cgroup.c if (prog_fd < 0) prog_fd 81 tools/bpf/bpftool/cgroup.c if (bpf_obj_get_info_by_fd(prog_fd, &info, &info_len)) { prog_fd 82 tools/bpf/bpftool/cgroup.c close(prog_fd); prog_fd 103 tools/bpf/bpftool/cgroup.c close(prog_fd); prog_fd 399 tools/bpf/bpftool/cgroup.c int cgroup_fd, prog_fd; prog_fd 423 tools/bpf/bpftool/cgroup.c prog_fd = prog_parse_fd(&argc, &argv); prog_fd 424 tools/bpf/bpftool/cgroup.c if (prog_fd < 0) prog_fd 438 tools/bpf/bpftool/cgroup.c if (bpf_prog_attach(prog_fd, cgroup_fd, attach_type, attach_flags)) { prog_fd 449 tools/bpf/bpftool/cgroup.c close(prog_fd); prog_fd 459 tools/bpf/bpftool/cgroup.c int prog_fd, cgroup_fd; prog_fd 481 tools/bpf/bpftool/cgroup.c prog_fd = prog_parse_fd(&argc, &argv); prog_fd 482 tools/bpf/bpftool/cgroup.c if (prog_fd < 0) prog_fd 485 tools/bpf/bpftool/cgroup.c if (bpf_prog_detach2(prog_fd, cgroup_fd, attach_type)) { prog_fd 496 tools/bpf/bpftool/cgroup.c close(prog_fd); prog_fd 1040 tools/bpf/bpftool/prog.c test_attr.prog_fd = fd; prog_fd 439 tools/include/uapi/linux/bpf.h __u32 prog_fd; prog_fd 487 tools/include/uapi/linux/bpf.h __u32 prog_fd; prog_fd 462 tools/lib/bpf/bpf.c int bpf_prog_attach(int prog_fd, int target_fd, enum bpf_attach_type type, prog_fd 469 tools/lib/bpf/bpf.c attr.attach_bpf_fd = prog_fd; prog_fd 487 tools/lib/bpf/bpf.c int bpf_prog_detach2(int prog_fd, int target_fd, enum bpf_attach_type type) prog_fd 493 tools/lib/bpf/bpf.c attr.attach_bpf_fd = prog_fd; prog_fd 519 tools/lib/bpf/bpf.c int bpf_prog_test_run(int prog_fd, int repeat, void *data, __u32 size, prog_fd 527 tools/lib/bpf/bpf.c attr.test.prog_fd = prog_fd; prog_fd 552 tools/lib/bpf/bpf.c attr.test.prog_fd = test_attr->prog_fd; prog_fd 631 tools/lib/bpf/bpf.c int bpf_obj_get_info_by_fd(int prog_fd, void *info, __u32 *info_len) prog_fd 637 tools/lib/bpf/bpf.c attr.info.bpf_fd = prog_fd; prog_fd 648 tools/lib/bpf/bpf.c int bpf_raw_tracepoint_open(const char *name, int prog_fd) prog_fd 654 tools/lib/bpf/bpf.c attr.raw_tracepoint.prog_fd = prog_fd; prog_fd 125 tools/lib/bpf/bpf.h LIBBPF_API int bpf_prog_attach(int prog_fd, int attachable_fd, prog_fd 128 tools/lib/bpf/bpf.h LIBBPF_API int bpf_prog_detach2(int prog_fd, int attachable_fd, prog_fd 132 tools/lib/bpf/bpf.h int prog_fd; prog_fd 154 tools/lib/bpf/bpf.h LIBBPF_API int bpf_prog_test_run(int prog_fd, int repeat, void *data, prog_fd 163 tools/lib/bpf/bpf.h LIBBPF_API int bpf_obj_get_info_by_fd(int prog_fd, void *info, __u32 *info_len); prog_fd 167 tools/lib/bpf/bpf.h LIBBPF_API int bpf_raw_tracepoint_open(const char *name, int prog_fd); prog_fd 4800 tools/lib/bpf/libbpf.c struct bpf_object **pobj, int *prog_fd) prog_fd 4809 tools/lib/bpf/libbpf.c return bpf_prog_load_xattr(&attr, pobj, prog_fd); prog_fd 4813 tools/lib/bpf/libbpf.c struct bpf_object **pobj, int *prog_fd) prog_fd 4880 tools/lib/bpf/libbpf.c *prog_fd = bpf_program__fd(first_prog); prog_fd 4924 tools/lib/bpf/libbpf.c int prog_fd, err; prog_fd 4931 tools/lib/bpf/libbpf.c prog_fd = bpf_program__fd(prog); prog_fd 4932 tools/lib/bpf/libbpf.c if (prog_fd < 0) { prog_fd 4944 tools/lib/bpf/libbpf.c if (ioctl(pfd, PERF_EVENT_IOC_SET_BPF, prog_fd) < 0) { prog_fd 5223 tools/lib/bpf/libbpf.c int prog_fd, pfd; prog_fd 5225 tools/lib/bpf/libbpf.c prog_fd = bpf_program__fd(prog); prog_fd 5226 tools/lib/bpf/libbpf.c if (prog_fd < 0) { prog_fd 5237 tools/lib/bpf/libbpf.c pfd = bpf_raw_tracepoint_open(tp_name, prog_fd); prog_fd 355 tools/lib/bpf/libbpf.h struct bpf_object **pobj, int *prog_fd); prog_fd 357 tools/lib/bpf/libbpf.h struct bpf_object **pobj, int *prog_fd); prog_fd 64 tools/lib/bpf/xsk.c int prog_fd; prog_fd 337 tools/lib/bpf/xsk.c int err, prog_fd; prog_fd 375 tools/lib/bpf/xsk.c prog_fd = bpf_load_program(BPF_PROG_TYPE_XDP, prog, insns_cnt, prog_fd 378 tools/lib/bpf/xsk.c if (prog_fd < 0) { prog_fd 380 tools/lib/bpf/xsk.c return prog_fd; prog_fd 383 tools/lib/bpf/xsk.c err = bpf_set_link_xdp_fd(xsk->ifindex, prog_fd, xsk->config.xdp_flags); prog_fd 385 tools/lib/bpf/xsk.c close(prog_fd); prog_fd 389 tools/lib/bpf/xsk.c xsk->prog_fd = prog_fd; prog_fd 463 tools/lib/bpf/xsk.c err = bpf_obj_get_info_by_fd(xsk->prog_fd, &prog_info, &prog_len); prog_fd 477 tools/lib/bpf/xsk.c err = bpf_obj_get_info_by_fd(xsk->prog_fd, &prog_info, &prog_len); prog_fd 538 tools/lib/bpf/xsk.c xsk->prog_fd = bpf_prog_get_fd_by_id(prog_id); prog_fd 539 tools/lib/bpf/xsk.c if (xsk->prog_fd < 0) prog_fd 543 tools/lib/bpf/xsk.c close(xsk->prog_fd); prog_fd 551 tools/lib/bpf/xsk.c close(xsk->prog_fd); prog_fd 681 tools/lib/bpf/xsk.c xsk->prog_fd = -1; prog_fd 742 tools/lib/bpf/xsk.c if (xsk->prog_fd != -1) { prog_fd 744 tools/lib/bpf/xsk.c close(xsk->prog_fd); prog_fd 3022 tools/perf/builtin-trace.c int prog_fd; prog_fd 3030 tools/perf/builtin-trace.c prog_fd = trace__bpf_prog_sys_enter_fd(trace, key); prog_fd 3031 tools/perf/builtin-trace.c err = bpf_map_update_elem(map_enter_fd, &key, &prog_fd, BPF_ANY); prog_fd 3034 tools/perf/builtin-trace.c prog_fd = trace__bpf_prog_sys_exit_fd(trace, key); prog_fd 3035 tools/perf/builtin-trace.c err = bpf_map_update_elem(map_exit_fd, &key, &prog_fd, BPF_ANY); prog_fd 3071 tools/perf/builtin-trace.c int prog_fd; prog_fd 3097 tools/perf/builtin-trace.c prog_fd = bpf_program__fd(sc->bpf_prog.sys_enter); prog_fd 3098 tools/perf/builtin-trace.c err = bpf_map_update_elem(map_enter_fd, &key, &prog_fd, BPF_ANY); prog_fd 25 tools/testing/selftests/bpf/flow_dissector_load.c int prog_fd, ret; prog_fd 29 tools/testing/selftests/bpf/flow_dissector_load.c cfg_map_name, NULL, &prog_fd, NULL); prog_fd 33 tools/testing/selftests/bpf/flow_dissector_load.c ret = bpf_prog_attach(prog_fd, 0 /* Ignore */, BPF_FLOW_DISSECTOR, 0); prog_fd 13 tools/testing/selftests/bpf/flow_dissector_load.h int *prog_fd, prog_fd 22 tools/testing/selftests/bpf/flow_dissector_load.h prog_fd); prog_fd 30 tools/testing/selftests/bpf/flow_dissector_load.h *prog_fd = bpf_program__fd(main_prog); prog_fd 31 tools/testing/selftests/bpf/flow_dissector_load.h if (*prog_fd < 0) prog_fd 58 tools/testing/selftests/bpf/flow_dissector_load.h if (fd != *prog_fd) { prog_fd 52 tools/testing/selftests/bpf/get_cgroup_id_user.c int err, bytes, efd, prog_fd, pmu_fd; prog_fd 75 tools/testing/selftests/bpf/get_cgroup_id_user.c err = bpf_prog_load(file, BPF_PROG_TYPE_TRACEPOINT, &obj, &prog_fd); prog_fd 122 tools/testing/selftests/bpf/get_cgroup_id_user.c err = ioctl(pmu_fd, PERF_EVENT_IOC_SET_BPF, prog_fd); prog_fd 37 tools/testing/selftests/bpf/prog_tests/attach_probe.c int err, prog_fd, duration = 0, res; prog_fd 53 tools/testing/selftests/bpf/prog_tests/attach_probe.c err = bpf_prog_load(file, BPF_PROG_TYPE_KPROBE, &obj, &prog_fd); prog_fd 146 tools/testing/selftests/bpf/prog_tests/bpf_obj_id.c int prog_fd; prog_fd 150 tools/testing/selftests/bpf/prog_tests/bpf_obj_id.c prog_fd = bpf_prog_get_fd_by_id(next_id); prog_fd 151 tools/testing/selftests/bpf/prog_tests/bpf_obj_id.c if (prog_fd < 0 && errno == ENOENT) prog_fd 154 tools/testing/selftests/bpf/prog_tests/bpf_obj_id.c if (CHECK(prog_fd < 0, "get-prog-fd(next_id)", prog_fd 156 tools/testing/selftests/bpf/prog_tests/bpf_obj_id.c prog_fd, next_id, errno)) prog_fd 173 tools/testing/selftests/bpf/prog_tests/bpf_obj_id.c err = bpf_obj_get_info_by_fd(prog_fd, &prog_info, &info_len); prog_fd 184 tools/testing/selftests/bpf/prog_tests/bpf_obj_id.c err = bpf_obj_get_info_by_fd(prog_fd, &prog_info, &info_len); prog_fd 195 tools/testing/selftests/bpf/prog_tests/bpf_obj_id.c close(prog_fd); prog_fd 22 tools/testing/selftests/bpf/prog_tests/bpf_verif_scale.c int err, prog_fd; prog_fd 29 tools/testing/selftests/bpf/prog_tests/bpf_verif_scale.c err = bpf_prog_load_xattr(&attr, &obj, &prog_fd); prog_fd 448 tools/testing/selftests/bpf/prog_tests/flow_dissector.c int i, err, prog_fd, keys_fd = -1, tap_fd; prog_fd 453 tools/testing/selftests/bpf/prog_tests/flow_dissector.c "jmp_table", "last_dissection", &prog_fd, &keys_fd); prog_fd 460 tools/testing/selftests/bpf/prog_tests/flow_dissector.c .prog_fd = prog_fd, prog_fd 489 tools/testing/selftests/bpf/prog_tests/flow_dissector.c err = bpf_prog_attach(prog_fd, 0, BPF_FLOW_DISSECTOR, 0); prog_fd 526 tools/testing/selftests/bpf/prog_tests/flow_dissector.c bpf_prog_detach(prog_fd, BPF_FLOW_DISSECTOR); prog_fd 87 tools/testing/selftests/bpf/prog_tests/get_stack_raw_tp.c int i, err, prog_fd, exp_cnt = MAX_CNT_RAWTP; prog_fd 97 tools/testing/selftests/bpf/prog_tests/get_stack_raw_tp.c err = bpf_prog_load(file_err, BPF_PROG_TYPE_RAW_TRACEPOINT, &obj, &prog_fd); prog_fd 101 tools/testing/selftests/bpf/prog_tests/get_stack_raw_tp.c err = bpf_prog_load(file, BPF_PROG_TYPE_RAW_TRACEPOINT, &obj, &prog_fd); prog_fd 129 tools/testing/selftests/bpf/prog_tests/global_data.c int err, prog_fd; prog_fd 131 tools/testing/selftests/bpf/prog_tests/global_data.c err = bpf_prog_load(file, BPF_PROG_TYPE_SCHED_CLS, &obj, &prog_fd); prog_fd 135 tools/testing/selftests/bpf/prog_tests/global_data.c err = bpf_prog_test_run(prog_fd, 1, &pkt_v4, sizeof(pkt_v4), prog_fd 26 tools/testing/selftests/bpf/prog_tests/l4lb_all.c int err, i, prog_fd, map_fd; prog_fd 32 tools/testing/selftests/bpf/prog_tests/l4lb_all.c err = bpf_prog_load(file, BPF_PROG_TYPE_SCHED_CLS, &obj, &prog_fd); prog_fd 51 tools/testing/selftests/bpf/prog_tests/l4lb_all.c err = bpf_prog_test_run(prog_fd, NUM_ITER, &pkt_v4, sizeof(pkt_v4), prog_fd 58 tools/testing/selftests/bpf/prog_tests/l4lb_all.c err = bpf_prog_test_run(prog_fd, NUM_ITER, &pkt_v6, sizeof(pkt_v6), prog_fd 36 tools/testing/selftests/bpf/prog_tests/map_lock.c int prog_fd, map_fd[2], vars[17] = {}; prog_fd 42 tools/testing/selftests/bpf/prog_tests/map_lock.c err = bpf_prog_load(file, BPF_PROG_TYPE_CGROUP_SKB, &obj, &prog_fd); prog_fd 58 tools/testing/selftests/bpf/prog_tests/map_lock.c &spin_lock_thread, &prog_fd))) prog_fd 67 tools/testing/selftests/bpf/prog_tests/map_lock.c ret != (void *)&prog_fd)) prog_fd 23 tools/testing/selftests/bpf/prog_tests/perf_buffer.c int err, prog_fd, on_len, nr_on_cpus = 0, nr_cpus, i, duration = 0; prog_fd 49 tools/testing/selftests/bpf/prog_tests/perf_buffer.c err = bpf_prog_load(file, BPF_PROG_TYPE_KPROBE, &obj, &prog_fd); prog_fd 9 tools/testing/selftests/bpf/prog_tests/pkt_access.c int err, prog_fd; prog_fd 11 tools/testing/selftests/bpf/prog_tests/pkt_access.c err = bpf_prog_load(file, BPF_PROG_TYPE_SCHED_CLS, &obj, &prog_fd); prog_fd 15 tools/testing/selftests/bpf/prog_tests/pkt_access.c err = bpf_prog_test_run(prog_fd, 100000, &pkt_v4, sizeof(pkt_v4), prog_fd 21 tools/testing/selftests/bpf/prog_tests/pkt_access.c err = bpf_prog_test_run(prog_fd, 100000, &pkt_v6, sizeof(pkt_v6), prog_fd 9 tools/testing/selftests/bpf/prog_tests/pkt_md_access.c int err, prog_fd; prog_fd 11 tools/testing/selftests/bpf/prog_tests/pkt_md_access.c err = bpf_prog_load(file, BPF_PROG_TYPE_SCHED_CLS, &obj, &prog_fd); prog_fd 15 tools/testing/selftests/bpf/prog_tests/pkt_md_access.c err = bpf_prog_test_run(prog_fd, 10, &pkt_v4, sizeof(pkt_v4), prog_fd 19 tools/testing/selftests/bpf/prog_tests/prog_run_xattr.c &tattr.prog_fd); prog_fd 13 tools/testing/selftests/bpf/prog_tests/queue_stack_map.c int i, err, prog_fd, map_in_fd, map_out_fd; prog_fd 29 tools/testing/selftests/bpf/prog_tests/queue_stack_map.c err = bpf_prog_load(file, BPF_PROG_TYPE_SCHED_CLS, &obj, &prog_fd); prog_fd 60 tools/testing/selftests/bpf/prog_tests/queue_stack_map.c err = bpf_prog_test_run(prog_fd, 1, &pkt_v4, sizeof(pkt_v4), prog_fd 73 tools/testing/selftests/bpf/prog_tests/queue_stack_map.c err = bpf_prog_test_run(prog_fd, 1, &pkt_v4, sizeof(pkt_v4), prog_fd 15 tools/testing/selftests/bpf/prog_tests/send_signal.c int err = -1, pmu_fd, prog_fd, info_map_fd, status_map_fd; prog_fd 76 tools/testing/selftests/bpf/prog_tests/send_signal.c err = bpf_prog_load(file, prog_type, &obj, &prog_fd); prog_fd 94 tools/testing/selftests/bpf/prog_tests/send_signal.c err = ioctl(pmu_fd, PERF_EVENT_IOC_SET_BPF, prog_fd); prog_fd 16 tools/testing/selftests/bpf/prog_tests/signal_pending.c int prog_fd; prog_fd 24 tools/testing/selftests/bpf/prog_tests/signal_pending.c prog_fd = bpf_load_program(prog_type, prog, ARRAY_SIZE(prog), prog_fd 26 tools/testing/selftests/bpf/prog_tests/signal_pending.c CHECK(prog_fd < 0, "test-run", "errno %d\n", errno); prog_fd 34 tools/testing/selftests/bpf/prog_tests/signal_pending.c err = bpf_prog_test_run(prog_fd, 0xffffffff, &pkt_v4, sizeof(pkt_v4), prog_fd 27 tools/testing/selftests/bpf/prog_tests/skb_ctx.c &tattr.prog_fd); prog_fd 879 tools/testing/selftests/bpf/prog_tests/sockopt.c int sock_fd, err, prog_fd; prog_fd 883 tools/testing/selftests/bpf/prog_tests/sockopt.c prog_fd = load_prog(test->insns, test->expected_attach_type); prog_fd 884 tools/testing/selftests/bpf/prog_tests/sockopt.c if (prog_fd < 0) { prog_fd 892 tools/testing/selftests/bpf/prog_tests/sockopt.c err = bpf_prog_attach(prog_fd, cgroup_fd, test->attach_type, 0); prog_fd 965 tools/testing/selftests/bpf/prog_tests/sockopt.c bpf_prog_detach2(prog_fd, cgroup_fd, test->attach_type); prog_fd 967 tools/testing/selftests/bpf/prog_tests/sockopt.c close(prog_fd); prog_fd 9 tools/testing/selftests/bpf/prog_tests/spinlock.c int prog_fd; prog_fd 13 tools/testing/selftests/bpf/prog_tests/spinlock.c err = bpf_prog_load(file, BPF_PROG_TYPE_CGROUP_SKB, &obj, &prog_fd); prog_fd 20 tools/testing/selftests/bpf/prog_tests/spinlock.c &spin_lock_thread, &prog_fd))) prog_fd 25 tools/testing/selftests/bpf/prog_tests/spinlock.c ret != (void *)&prog_fd)) prog_fd 9 tools/testing/selftests/bpf/prog_tests/stacktrace_build_id.c int err, prog_fd, stack_trace_len; prog_fd 21 tools/testing/selftests/bpf/prog_tests/stacktrace_build_id.c err = bpf_prog_load(file, BPF_PROG_TYPE_TRACEPOINT, &obj, &prog_fd); prog_fd 22 tools/testing/selftests/bpf/prog_tests/stacktrace_build_id_nmi.c int err, pmu_fd, prog_fd; prog_fd 41 tools/testing/selftests/bpf/prog_tests/stacktrace_build_id_nmi.c err = bpf_prog_load(file, BPF_PROG_TYPE_PERF_EVENT, &obj, &prog_fd); prog_fd 8 tools/testing/selftests/bpf/prog_tests/stacktrace_map.c int err, prog_fd, stack_trace_len; prog_fd 15 tools/testing/selftests/bpf/prog_tests/stacktrace_map.c err = bpf_prog_load(file, BPF_PROG_TYPE_TRACEPOINT, &obj, &prog_fd); prog_fd 10 tools/testing/selftests/bpf/prog_tests/stacktrace_map_raw_tp.c int err, prog_fd; prog_fd 15 tools/testing/selftests/bpf/prog_tests/stacktrace_map_raw_tp.c err = bpf_prog_load(file, BPF_PROG_TYPE_RAW_TRACEPOINT, &obj, &prog_fd); prog_fd 10 tools/testing/selftests/bpf/prog_tests/task_fd_query_rawtp.c int efd, err, prog_fd; prog_fd 14 tools/testing/selftests/bpf/prog_tests/task_fd_query_rawtp.c err = bpf_prog_load(file, BPF_PROG_TYPE_RAW_TRACEPOINT, &obj, &prog_fd); prog_fd 18 tools/testing/selftests/bpf/prog_tests/task_fd_query_rawtp.c efd = bpf_raw_tracepoint_open("sys_enter", prog_fd); prog_fd 8 tools/testing/selftests/bpf/prog_tests/task_fd_query_tp.c int err, bytes, efd, prog_fd, pmu_fd; prog_fd 16 tools/testing/selftests/bpf/prog_tests/task_fd_query_tp.c err = bpf_prog_load(file, BPF_PROG_TYPE_TRACEPOINT, &obj, &prog_fd); prog_fd 47 tools/testing/selftests/bpf/prog_tests/task_fd_query_tp.c err = ioctl(pmu_fd, PERF_EVENT_IOC_SET_BPF, prog_fd); prog_fd 7 tools/testing/selftests/bpf/prog_tests/tcp_estats.c int err, prog_fd; prog_fd 11 tools/testing/selftests/bpf/prog_tests/tcp_estats.c err = bpf_prog_load(file, BPF_PROG_TYPE_TRACEPOINT, &obj, &prog_fd); prog_fd 129 tools/testing/selftests/bpf/prog_tests/tcp_rtt.c int prog_fd; prog_fd 133 tools/testing/selftests/bpf/prog_tests/tcp_rtt.c err = bpf_prog_load_xattr(&attr, &obj, &prog_fd); prog_fd 142 tools/testing/selftests/bpf/prog_tests/tcp_rtt.c err = bpf_prog_attach(prog_fd, cgroup_fd, BPF_CGROUP_SOCK_OPS, 0); prog_fd 7 tools/testing/selftests/bpf/prog_tests/tp_attach_query.c int i, j, bytes, efd, err, prog_fd[num_progs], pmu_fd[num_progs]; prog_fd 39 tools/testing/selftests/bpf/prog_tests/tp_attach_query.c &prog_fd[i]); prog_fd 48 tools/testing/selftests/bpf/prog_tests/tp_attach_query.c err = bpf_obj_get_info_by_fd(prog_fd[i], &prog_info, &info_len); prog_fd 76 tools/testing/selftests/bpf/prog_tests/tp_attach_query.c err = ioctl(pmu_fd[i], PERF_EVENT_IOC_SET_BPF, prog_fd[i]); prog_fd 16 tools/testing/selftests/bpf/prog_tests/xdp.c int err, prog_fd, map_fd; prog_fd 18 tools/testing/selftests/bpf/prog_tests/xdp.c err = bpf_prog_load(file, BPF_PROG_TYPE_XDP, &obj, &prog_fd); prog_fd 28 tools/testing/selftests/bpf/prog_tests/xdp.c err = bpf_prog_test_run(prog_fd, 1, &pkt_v4, sizeof(pkt_v4), prog_fd 36 tools/testing/selftests/bpf/prog_tests/xdp.c err = bpf_prog_test_run(prog_fd, 1, &pkt_v6, sizeof(pkt_v6), prog_fd 10 tools/testing/selftests/bpf/prog_tests/xdp_adjust_tail.c int err, prog_fd; prog_fd 12 tools/testing/selftests/bpf/prog_tests/xdp_adjust_tail.c err = bpf_prog_load(file, BPF_PROG_TYPE_XDP, &obj, &prog_fd); prog_fd 16 tools/testing/selftests/bpf/prog_tests/xdp_adjust_tail.c err = bpf_prog_test_run(prog_fd, 1, &pkt_v4, sizeof(pkt_v4), prog_fd 23 tools/testing/selftests/bpf/prog_tests/xdp_adjust_tail.c err = bpf_prog_test_run(prog_fd, 1, &pkt_v6, sizeof(pkt_v6), prog_fd 27 tools/testing/selftests/bpf/prog_tests/xdp_noinline.c int err, i, prog_fd, map_fd; prog_fd 33 tools/testing/selftests/bpf/prog_tests/xdp_noinline.c err = bpf_prog_load(file, BPF_PROG_TYPE_XDP, &obj, &prog_fd); prog_fd 52 tools/testing/selftests/bpf/prog_tests/xdp_noinline.c err = bpf_prog_test_run(prog_fd, NUM_ITER, &pkt_v4, sizeof(pkt_v4), prog_fd 59 tools/testing/selftests/bpf/prog_tests/xdp_noinline.c err = bpf_prog_test_run(prog_fd, NUM_ITER, &pkt_v6, sizeof(pkt_v6), prog_fd 4128 tools/testing/selftests/bpf/test_btf.c int i, err, prog_fd; prog_fd 4165 tools/testing/selftests/bpf/test_btf.c prog_fd = bpf_program__fd(prog); prog_fd 4185 tools/testing/selftests/bpf/test_btf.c err = bpf_obj_get_info_by_fd(prog_fd, &info, &info_len); prog_fd 4217 tools/testing/selftests/bpf/test_btf.c err = bpf_obj_get_info_by_fd(prog_fd, &info, &info_len); prog_fd 5845 tools/testing/selftests/bpf/test_btf.c int prog_fd) prog_fd 5856 tools/testing/selftests/bpf/test_btf.c err = bpf_obj_get_info_by_fd(prog_fd, &info, &info_len); prog_fd 5886 tools/testing/selftests/bpf/test_btf.c err = bpf_obj_get_info_by_fd(prog_fd, &info, &info_len); prog_fd 5927 tools/testing/selftests/bpf/test_btf.c __u32 cnt, int prog_fd) prog_fd 5950 tools/testing/selftests/bpf/test_btf.c err = bpf_obj_get_info_by_fd(prog_fd, &info, &info_len); prog_fd 6024 tools/testing/selftests/bpf/test_btf.c err = bpf_obj_get_info_by_fd(prog_fd, &info, &info_len); prog_fd 6147 tools/testing/selftests/bpf/test_btf.c int btf_fd = -1, prog_fd = -1, err = 0; prog_fd 6202 tools/testing/selftests/bpf/test_btf.c prog_fd = syscall(__NR_bpf, BPF_PROG_LOAD, &attr, sizeof(attr)); prog_fd 6203 tools/testing/selftests/bpf/test_btf.c err = ((prog_fd == -1) != test->expected_prog_load_failure); prog_fd 6205 tools/testing/selftests/bpf/test_btf.c prog_fd, test->expected_prog_load_failure, errno) || prog_fd 6212 tools/testing/selftests/bpf/test_btf.c if (prog_fd == -1) prog_fd 6215 tools/testing/selftests/bpf/test_btf.c err = test_get_finfo(test, prog_fd); prog_fd 6221 tools/testing/selftests/bpf/test_btf.c prog_fd); prog_fd 6234 tools/testing/selftests/bpf/test_btf.c if (prog_fd != -1) prog_fd 6235 tools/testing/selftests/bpf/test_btf.c close(prog_fd); prog_fd 40 tools/testing/selftests/bpf/test_cgroup_storage.c int map_fd, percpu_map_fd, prog_fd, cgroup_fd; prog_fd 69 tools/testing/selftests/bpf/test_cgroup_storage.c prog_fd = bpf_load_program(BPF_PROG_TYPE_CGROUP_SKB, prog_fd 72 tools/testing/selftests/bpf/test_cgroup_storage.c if (prog_fd < 0) { prog_fd 95 tools/testing/selftests/bpf/test_cgroup_storage.c if (bpf_prog_attach(prog_fd, cgroup_fd, BPF_CGROUP_INET_EGRESS, 0)) { prog_fd 27 tools/testing/selftests/bpf/test_dev_cgroup.c int prog_fd, cgroup_fd; prog_fd 31 tools/testing/selftests/bpf/test_dev_cgroup.c &obj, &prog_fd)) { prog_fd 54 tools/testing/selftests/bpf/test_dev_cgroup.c if (bpf_prog_attach(prog_fd, cgroup_fd, BPF_CGROUP_DEVICE, 0)) { prog_fd 42 tools/testing/selftests/bpf/test_netcnt.c int prog_fd, cgroup_fd; prog_fd 56 tools/testing/selftests/bpf/test_netcnt.c &obj, &prog_fd)) { prog_fd 79 tools/testing/selftests/bpf/test_netcnt.c if (bpf_prog_attach(prog_fd, cgroup_fd, BPF_CGROUP_INET_EGRESS, 0)) { prog_fd 305 tools/testing/selftests/bpf/test_progs.c int err, prog_fd = *(u32 *) arg; prog_fd 307 tools/testing/selftests/bpf/test_progs.c err = bpf_prog_test_run(prog_fd, 10000, &pkt_v4, sizeof(pkt_v4), prog_fd 85 tools/testing/selftests/bpf/test_skb_cgroup_id_user.c int prog_fd = -1; prog_fd 88 tools/testing/selftests/bpf/test_skb_cgroup_id_user.c prog_fd = bpf_prog_get_fd_by_id(prog_id); prog_fd 89 tools/testing/selftests/bpf/test_skb_cgroup_id_user.c if (prog_fd < 0) { prog_fd 97 tools/testing/selftests/bpf/test_skb_cgroup_id_user.c if (bpf_obj_get_info_by_fd(prog_fd, &info, &info_len)) { prog_fd 98 tools/testing/selftests/bpf/test_skb_cgroup_id_user.c log_err("Failed to get info by prog fd %d", prog_fd); prog_fd 103 tools/testing/selftests/bpf/test_skb_cgroup_id_user.c log_err("No maps found for prog fd %d", prog_fd); prog_fd 111 tools/testing/selftests/bpf/test_skb_cgroup_id_user.c if (prog_fd >= 0) prog_fd 112 tools/testing/selftests/bpf/test_skb_cgroup_id_user.c close(prog_fd); prog_fd 833 tools/testing/selftests/bpf/test_sock_addr.c int prog_fd; prog_fd 841 tools/testing/selftests/bpf/test_sock_addr.c if (bpf_prog_load_xattr(&attr, &obj, &prog_fd)) { prog_fd 847 tools/testing/selftests/bpf/test_sock_addr.c return prog_fd; prog_fd 139 tools/testing/selftests/bpf/test_socket_cookie.c int prog_fd = -1; prog_fd 147 tools/testing/selftests/bpf/test_socket_cookie.c err = bpf_prog_load_xattr(&attr, &pobj, &prog_fd); prog_fd 68 tools/testing/selftests/bpf/test_sockmap.c int prog_fd[11]; prog_fd 802 tools/testing/selftests/bpf/test_sockmap.c err = bpf_prog_attach(prog_fd[0], map_fd[0], prog_fd 807 tools/testing/selftests/bpf/test_sockmap.c prog_fd[0], map_fd[0], err, strerror(errno)); prog_fd 811 tools/testing/selftests/bpf/test_sockmap.c err = bpf_prog_attach(prog_fd[1], map_fd[0], prog_fd 820 tools/testing/selftests/bpf/test_sockmap.c err = bpf_prog_attach(prog_fd[2], cg_fd, BPF_CGROUP_SOCK_OPS, 0); prog_fd 836 tools/testing/selftests/bpf/test_sockmap.c tx_prog_fd = prog_fd[3]; prog_fd 838 tools/testing/selftests/bpf/test_sockmap.c tx_prog_fd = prog_fd[4]; prog_fd 840 tools/testing/selftests/bpf/test_sockmap.c tx_prog_fd = prog_fd[5]; prog_fd 842 tools/testing/selftests/bpf/test_sockmap.c tx_prog_fd = prog_fd[6]; prog_fd 844 tools/testing/selftests/bpf/test_sockmap.c tx_prog_fd = prog_fd[9]; prog_fd 847 tools/testing/selftests/bpf/test_sockmap.c tx_prog_fd = prog_fd[7]; prog_fd 849 tools/testing/selftests/bpf/test_sockmap.c tx_prog_fd = prog_fd[8]; prog_fd 1071 tools/testing/selftests/bpf/test_sockmap.c bpf_prog_detach2(prog_fd[2], cg_fd, BPF_CGROUP_SOCK_OPS); prog_fd 1072 tools/testing/selftests/bpf/test_sockmap.c bpf_prog_detach2(prog_fd[0], map_fd[0], BPF_SK_SKB_STREAM_PARSER); prog_fd 1073 tools/testing/selftests/bpf/test_sockmap.c bpf_prog_detach2(prog_fd[1], map_fd[0], BPF_SK_SKB_STREAM_VERDICT); prog_fd 1648 tools/testing/selftests/bpf/test_sockmap.c prog_fd[i] = bpf_program__fd(prog); prog_fd 9 tools/testing/selftests/bpf/test_stub.c struct bpf_object **pobj, int *prog_fd) prog_fd 19 tools/testing/selftests/bpf/test_stub.c return bpf_prog_load_xattr(&attr, pobj, prog_fd); prog_fd 1458 tools/testing/selftests/bpf/test_sysctl.c int prog_fd; prog_fd 1464 tools/testing/selftests/bpf/test_sysctl.c if (bpf_prog_load_xattr(&attr, &obj, &prog_fd)) { prog_fd 1471 tools/testing/selftests/bpf/test_sysctl.c return prog_fd; prog_fd 86 tools/testing/selftests/bpf/test_tcp_check_syncookie_user.c int prog_fd = -1; prog_fd 89 tools/testing/selftests/bpf/test_tcp_check_syncookie_user.c prog_fd = bpf_prog_get_fd_by_id(prog_id); prog_fd 90 tools/testing/selftests/bpf/test_tcp_check_syncookie_user.c if (prog_fd < 0) { prog_fd 98 tools/testing/selftests/bpf/test_tcp_check_syncookie_user.c if (bpf_obj_get_info_by_fd(prog_fd, &info, &info_len)) { prog_fd 99 tools/testing/selftests/bpf/test_tcp_check_syncookie_user.c log_err("Failed to get info by prog fd %d", prog_fd); prog_fd 104 tools/testing/selftests/bpf/test_tcp_check_syncookie_user.c log_err("No maps found for prog fd %d", prog_fd); prog_fd 114 tools/testing/selftests/bpf/test_tcp_check_syncookie_user.c if (prog_fd >= 0) prog_fd 115 tools/testing/selftests/bpf/test_tcp_check_syncookie_user.c close(prog_fd); prog_fd 93 tools/testing/selftests/bpf/test_tcpbpf_user.c int prog_fd, map_fd, sock_map_fd; prog_fd 112 tools/testing/selftests/bpf/test_tcpbpf_user.c if (bpf_prog_load(file, BPF_PROG_TYPE_SOCK_OPS, &obj, &prog_fd)) { prog_fd 117 tools/testing/selftests/bpf/test_tcpbpf_user.c rv = bpf_prog_attach(prog_fd, cg_fd, BPF_CGROUP_SOCK_OPS, 0); prog_fd 78 tools/testing/selftests/bpf/test_tcpnotify_user.c int prog_fd, rv, cg_fd = -1; prog_fd 99 tools/testing/selftests/bpf/test_tcpnotify_user.c if (bpf_prog_load(file, BPF_PROG_TYPE_SOCK_OPS, &obj, &prog_fd)) { prog_fd 104 tools/testing/selftests/bpf/test_tcpnotify_user.c rv = bpf_prog_attach(prog_fd, cg_fd, BPF_CGROUP_SOCK_OPS, 0); prog_fd 96 tools/testing/selftests/bpf/xdping.c int prog_fd = -1, map_fd = -1; prog_fd 176 tools/testing/selftests/bpf/xdping.c if (bpf_prog_load(filename, BPF_PROG_TYPE_XDP, &obj, &prog_fd)) { prog_fd 185 tools/testing/selftests/bpf/xdping.c prog_fd = bpf_program__fd(main_prog); prog_fd 186 tools/testing/selftests/bpf/xdping.c if (!main_prog || prog_fd < 0) { prog_fd 206 tools/testing/selftests/bpf/xdping.c if (bpf_set_link_xdp_fd(ifindex, prog_fd, xdp_flags) < 0) { prog_fd 212 tools/testing/selftests/bpf/xdping.c close(prog_fd); prog_fd 252 tools/testing/selftests/bpf/xdping.c if (prog_fd > 0) prog_fd 253 tools/testing/selftests/bpf/xdping.c close(prog_fd);