| /linux/tools/testing/selftests/bpf/prog_tests/ |
| H A D | raw_tp_writable_reject_bad_access.c | 11 int bpf_fd, tp_fd; in check_attach_reject() local 17 bpf_fd = bpf_prog_load(BPF_PROG_TYPE_RAW_TRACEPOINT_WRITABLE, NULL, "GPL v2", in check_attach_reject() 19 if (!ASSERT_GE(bpf_fd, 0, "prog_load")) in check_attach_reject() 22 tp_fd = bpf_raw_tracepoint_open("bpf_testmod_test_writable_bare_tp", bpf_fd); in check_attach_reject() 27 close(bpf_fd); in check_attach_reject()
|
| H A D | raw_tp_writable_test_run.c | 27 int bpf_fd = bpf_prog_load(BPF_PROG_TYPE_RAW_TRACEPOINT_WRITABLE, NULL, "GPL v2", in serial_test_raw_tp_writable_test_run() local 30 if (CHECK(bpf_fd < 0, "bpf_raw_tracepoint_writable loaded", in serial_test_raw_tp_writable_test_run() 31 "failed: %d errno %d\n", bpf_fd, errno)) in serial_test_raw_tp_writable_test_run() 51 int tp_fd = bpf_raw_tracepoint_open("bpf_test_finish", bpf_fd); in serial_test_raw_tp_writable_test_run() 82 close(bpf_fd); in serial_test_raw_tp_writable_test_run()
|
| /linux/tools/testing/selftests/net/ |
| H A D | reuseport_bpf.c | 98 int bpf_fd; in attach_ebpf() 121 bpf_fd = syscall(__NR_bpf, BPF_PROG_LOAD, &attr, sizeof(attr)); in attach_ebpf() 122 if (bpf_fd < 0) in attach_ebpf() 125 if (setsockopt(fd, SOL_SOCKET, SO_ATTACH_REUSEPORT_EBPF, &bpf_fd, in attach_ebpf() 126 sizeof(bpf_fd))) in attach_ebpf() 129 close(bpf_fd); in attach_ebpf() 350 int fd, bpf_fd; in test_filter_no_reuseport() 366 bpf_fd = syscall(__NR_bpf, BPF_PROG_LOAD, &eprog, sizeof(eprog)); in test_filter_no_reuseport() 367 if (bpf_fd < 0) in test_filter_no_reuseport() 377 if (!setsockopt(fd, SOL_SOCKET, SO_ATTACH_REUSEPORT_EBPF, &bpf_fd, in test_filter_no_reuseport() 97 int bpf_fd; attach_ebpf() local 349 int fd, bpf_fd; test_filter_no_reuseport() local [all...] |
| H A D | reuseport_bpf_numa.c | 78 int bpf_fd; in attach_bpf() local 96 bpf_fd = syscall(__NR_bpf, BPF_PROG_LOAD, &attr, sizeof(attr)); in attach_bpf() 97 if (bpf_fd < 0) in attach_bpf() 100 if (setsockopt(fd, SOL_SOCKET, SO_ATTACH_REUSEPORT_EBPF, &bpf_fd, in attach_bpf() 101 sizeof(bpf_fd))) in attach_bpf() 104 close(bpf_fd); in attach_bpf()
|
| /linux/include/uapi/linux/ |
| H A D | kcm.h | 20 int bpf_fd; member
|
| H A D | bpf.h | 1676 __u32 bpf_fd; member 1741 __u32 bpf_fd; member
|
| /linux/include/net/tc_act/ |
| H A D | tc_bpf.h | 16 u32 bpf_fd; member
|
| /linux/net/sched/ |
| H A D | act_bpf.c | 226 u32 bpf_fd; in tcf_bpf_init_from_efd() local 228 bpf_fd = nla_get_u32(tb[TCA_ACT_BPF_FD]); in tcf_bpf_init_from_efd() 230 fp = bpf_prog_get_type(bpf_fd, BPF_PROG_TYPE_SCHED_ACT); in tcf_bpf_init_from_efd()
|
| H A D | cls_bpf.c | 383 u32 bpf_fd; in cls_bpf_prog_from_efd() local 385 bpf_fd = nla_get_u32(tb[TCA_BPF_FD]); in cls_bpf_prog_from_efd() 388 fp = bpf_prog_get_type_dev(bpf_fd, BPF_PROG_TYPE_SCHED_CLS, skip_sw); in cls_bpf_prog_from_efd()
|
| /linux/Documentation/networking/ |
| H A D | kcm.rst | 153 int bpf_fd; 161 info.bpf_fd = bpf_prog_fd;
|
| /linux/tools/perf/util/ |
| H A D | evsel.h | 93 int bpf_fd; global() member
|
| H A D | evsel.c | 2885 int bpf_fd = evsel->bpf_fd; evsel__open_cpu() local
|
| /linux/tools/include/uapi/linux/ |
| H A D | bpf.h | 1676 __u32 bpf_fd; member 1741 __u32 bpf_fd; member
|
| /linux/net/kcm/ |
| H A D | kcmsock.c | 1353 prog = bpf_prog_get_type(info->bpf_fd, BPF_PROG_TYPE_SOCKET_FILTER); in kcm_attach_ioctl()
|
| /linux/kernel/bpf/ |
| H A D | syscall.c | 3200 return bpf_obj_pin_user(attr->bpf_fd, path_fd, in bpf_obj_pin() 3208 if (CHECK_ATTR(BPF_OBJ) || attr->bpf_fd != 0 || in bpf_obj_get() 5541 CLASS(fd, f)(attr->info.bpf_fd); in bpf_obj_get_info_by_fd()
|