Searched refs:progfd (Results 1 – 6 of 6) sorted by relevance
| /linux/tools/testing/selftests/bpf/ |
| H A D | test_lirc_mode2_user.c | 52 int ret, lircfd, progfd, inputfd; in main() local 63 BPF_PROG_TYPE_LIRC_MODE2, &obj, &progfd); in main() 76 ret = bpf_prog_detach2(progfd, lircfd, BPF_LIRC_MODE2); in main() 101 ret = bpf_prog_attach(progfd, lircfd, BPF_LIRC_MODE2, 0); in main() 170 ret = bpf_prog_detach2(progfd, lircfd, BPF_LIRC_MODE2); in main()
|
| /linux/tools/bpf/bpftool/ |
| H A D | net.c | 640 static int do_attach_detach_xdp(int progfd, enum net_attach_type attach_type, in do_attach_detach_xdp() argument 654 return bpf_xdp_attach(ifindex, progfd, flags, NULL); in do_attach_detach_xdp() 669 static int do_attach_tcx(int progfd, enum net_attach_type attach_type, int ifindex) in do_attach_tcx() argument 673 return bpf_prog_attach(progfd, ifindex, type, 0); in do_attach_tcx() 686 int progfd, ifindex, err = 0; in do_attach() local 700 progfd = prog_parse_fd(&argc, &argv); in do_attach() 701 if (progfd < 0) in do_attach() 726 err = do_attach_detach_xdp(progfd, attach_type, ifindex, overwrite); in do_attach() 731 err = do_attach_tcx(progfd, attach_type, ifindex); in do_attach() 746 close(progfd); in do_attach() [all …]
|
| /linux/tools/testing/selftests/bpf/prog_tests/ |
| H A D | socket_helpers.h | 219 static inline int enable_reuseport(int s, int progfd) in enable_reuseport() argument 226 err = xsetsockopt(s, SOL_SOCKET, SO_ATTACH_REUSEPORT_EBPF, &progfd, in enable_reuseport() 227 sizeof(progfd)); in enable_reuseport() 234 static inline int socket_loopback_reuseport(int family, int sotype, int progfd) in socket_loopback_reuseport() argument 246 if (progfd >= 0) in socket_loopback_reuseport() 247 enable_reuseport(s, progfd); in socket_loopback_reuseport()
|
| H A D | test_sysctl.c | 1533 int progfd = -1; in run_test_case() local 1541 progfd = load_sysctl_prog(test, sysctl_path); in run_test_case() 1542 if (progfd < 0) { in run_test_case() 1549 if (bpf_prog_attach(progfd, cgfd, atype, BPF_F_ALLOW_OVERRIDE) < 0) { in run_test_case() 1574 if (progfd != -1) in run_test_case() 1576 close(progfd); in run_test_case()
|
| H A D | sockmap_listen.c | 311 int progfd; in test_destroy_orphan_child() member 321 if (t->progfd != -1 && in test_destroy_orphan_child() 322 xbpf_prog_attach(t->progfd, mapfd, t->atype, 0) != 0) in test_destroy_orphan_child() 327 if (t->progfd != -1) in test_destroy_orphan_child() 328 xbpf_prog_detach2(t->progfd, mapfd, t->atype); in test_destroy_orphan_child()
|
| H A D | sock_addr.c | 403 static void prog_name##_destroy_raw(void *progfd) \
|