Home
last modified time | relevance | path

Searched refs:bpf_fd (Results 1 - 25 of 39) sorted by relevance

12

/kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/
H A Draw_tp_writable_reject_nbd_invalid.c10 int bpf_fd = -1, tp_fd = -1; in test_raw_tp_writable_reject_nbd_invalid() local
29 bpf_fd = bpf_load_program_xattr(&load_attr, error, sizeof(error)); in test_raw_tp_writable_reject_nbd_invalid()
30 if (CHECK(bpf_fd < 0, "bpf_raw_tracepoint_writable load", in test_raw_tp_writable_reject_nbd_invalid()
31 "failed: %d errno %d\n", bpf_fd, errno)) in test_raw_tp_writable_reject_nbd_invalid()
34 tp_fd = bpf_raw_tracepoint_open("nbd_send_request", bpf_fd); in test_raw_tp_writable_reject_nbd_invalid()
41 close(bpf_fd); in test_raw_tp_writable_reject_nbd_invalid()
H A Draw_tp_writable_test_run.c27 int bpf_fd = bpf_load_program_xattr(&load_attr, error, sizeof(error)); in test_raw_tp_writable_test_run() local
28 if (CHECK(bpf_fd < 0, "bpf_raw_tracepoint_writable loaded", in test_raw_tp_writable_test_run()
29 "failed: %d errno %d\n", bpf_fd, errno)) in test_raw_tp_writable_test_run()
50 int tp_fd = bpf_raw_tracepoint_open("bpf_test_finish", bpf_fd); in test_raw_tp_writable_test_run()
79 close(bpf_fd); in test_raw_tp_writable_test_run()
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/prog_tests/
H A Draw_tp_writable_reject_nbd_invalid.c10 int bpf_fd = -1, tp_fd = -1; in test_raw_tp_writable_reject_nbd_invalid() local
27 bpf_fd = bpf_prog_load(BPF_PROG_TYPE_RAW_TRACEPOINT_WRITABLE, NULL, "GPL v2", in test_raw_tp_writable_reject_nbd_invalid()
30 if (CHECK(bpf_fd < 0, "bpf_raw_tracepoint_writable load", in test_raw_tp_writable_reject_nbd_invalid()
31 "failed: %d errno %d\n", bpf_fd, errno)) in test_raw_tp_writable_reject_nbd_invalid()
34 tp_fd = bpf_raw_tracepoint_open("nbd_send_request", bpf_fd); in test_raw_tp_writable_reject_nbd_invalid()
41 close(bpf_fd); in test_raw_tp_writable_reject_nbd_invalid()
H A Draw_tp_writable_test_run.c26 int bpf_fd = bpf_prog_load(BPF_PROG_TYPE_RAW_TRACEPOINT_WRITABLE, NULL, "GPL v2", in serial_test_raw_tp_writable_test_run() local
29 if (CHECK(bpf_fd < 0, "bpf_raw_tracepoint_writable loaded", in serial_test_raw_tp_writable_test_run()
30 "failed: %d errno %d\n", bpf_fd, errno)) in serial_test_raw_tp_writable_test_run()
50 int tp_fd = bpf_raw_tracepoint_open("bpf_test_finish", bpf_fd); in serial_test_raw_tp_writable_test_run()
81 close(bpf_fd); in serial_test_raw_tp_writable_test_run()
/kernel/linux/linux-5.10/tools/testing/selftests/net/
H A Dreuseport_bpf.c99 int bpf_fd; in attach_ebpf() local
122 bpf_fd = syscall(__NR_bpf, BPF_PROG_LOAD, &attr, sizeof(attr)); in attach_ebpf()
123 if (bpf_fd < 0) in attach_ebpf()
126 if (setsockopt(fd, SOL_SOCKET, SO_ATTACH_REUSEPORT_EBPF, &bpf_fd, in attach_ebpf()
127 sizeof(bpf_fd))) in attach_ebpf()
130 close(bpf_fd); in attach_ebpf()
351 int fd, bpf_fd; in test_filter_no_reuseport() local
367 bpf_fd = syscall(__NR_bpf, BPF_PROG_LOAD, &eprog, sizeof(eprog)); in test_filter_no_reuseport()
368 if (bpf_fd < 0) in test_filter_no_reuseport()
378 if (!setsockopt(fd, SOL_SOCKET, SO_ATTACH_REUSEPORT_EBPF, &bpf_fd, in test_filter_no_reuseport()
[all...]
H A Dreuseport_bpf_numa.c78 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()
/kernel/linux/linux-6.6/tools/testing/selftests/net/
H A Dreuseport_bpf.c97 int bpf_fd; in attach_ebpf() local
120 bpf_fd = syscall(__NR_bpf, BPF_PROG_LOAD, &attr, sizeof(attr)); in attach_ebpf()
121 if (bpf_fd < 0) in attach_ebpf()
124 if (setsockopt(fd, SOL_SOCKET, SO_ATTACH_REUSEPORT_EBPF, &bpf_fd, in attach_ebpf()
125 sizeof(bpf_fd))) in attach_ebpf()
128 close(bpf_fd); in attach_ebpf()
349 int fd, bpf_fd; in test_filter_no_reuseport() local
365 bpf_fd = syscall(__NR_bpf, BPF_PROG_LOAD, &eprog, sizeof(eprog)); in test_filter_no_reuseport()
366 if (bpf_fd < 0) in test_filter_no_reuseport()
376 if (!setsockopt(fd, SOL_SOCKET, SO_ATTACH_REUSEPORT_EBPF, &bpf_fd, in test_filter_no_reuseport()
[all...]
H A Dreuseport_bpf_numa.c78 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()
/kernel/linux/linux-5.10/include/uapi/linux/
H A Dkcm.h20 int bpf_fd; member
/kernel/linux/linux-6.6/include/uapi/linux/
H A Dkcm.h20 int bpf_fd; member
/kernel/linux/patches/linux-6.6/prebuilts/usr/include/linux/
H A Dkcm.h23 int bpf_fd; member
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/linux/
H A Dkcm.h23 int bpf_fd; member
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/linux/
H A Dkcm.h10 int bpf_fd; member
H A Dbpf.h227 __u32 bpf_fd; member
257 __u32 bpf_fd; member
/kernel/linux/linux-5.10/include/net/tc_act/
H A Dtc_bpf.h16 u32 bpf_fd; member
/kernel/linux/linux-6.6/include/net/tc_act/
H A Dtc_bpf.h16 u32 bpf_fd; member
/kernel/linux/linux-5.10/net/sched/
H A Dact_bpf.c227 u32 bpf_fd; in tcf_bpf_init_from_efd() local
229 bpf_fd = nla_get_u32(tb[TCA_ACT_BPF_FD]); in tcf_bpf_init_from_efd()
231 fp = bpf_prog_get_type(bpf_fd, BPF_PROG_TYPE_SCHED_ACT); in tcf_bpf_init_from_efd()
H A Dcls_bpf.c381 u32 bpf_fd; in cls_bpf_prog_from_efd() local
383 bpf_fd = nla_get_u32(tb[TCA_BPF_FD]); in cls_bpf_prog_from_efd()
386 fp = bpf_prog_get_type_dev(bpf_fd, BPF_PROG_TYPE_SCHED_CLS, skip_sw); in cls_bpf_prog_from_efd()
/kernel/linux/linux-6.6/net/sched/
H A Dact_bpf.c228 u32 bpf_fd; in tcf_bpf_init_from_efd() local
230 bpf_fd = nla_get_u32(tb[TCA_ACT_BPF_FD]); in tcf_bpf_init_from_efd()
232 fp = bpf_prog_get_type(bpf_fd, BPF_PROG_TYPE_SCHED_ACT); in tcf_bpf_init_from_efd()
H A Dcls_bpf.c382 u32 bpf_fd; in cls_bpf_prog_from_efd() local
384 bpf_fd = nla_get_u32(tb[TCA_BPF_FD]); in cls_bpf_prog_from_efd()
387 fp = bpf_prog_get_type_dev(bpf_fd, BPF_PROG_TYPE_SCHED_CLS, skip_sw); in cls_bpf_prog_from_efd()
/kernel/linux/linux-5.10/tools/lib/bpf/
H A Dbpf.c518 attr.bpf_fd = fd; in bpf_obj_pin()
833 int bpf_obj_get_info_by_fd(int bpf_fd, void *info, __u32 *info_len) in bpf_obj_get_info_by_fd() argument
839 attr.info.bpf_fd = bpf_fd; in bpf_obj_get_info_by_fd()
H A Dbpf.h233 LIBBPF_API int bpf_obj_get_info_by_fd(int bpf_fd, void *info, __u32 *info_len);
/kernel/linux/linux-5.10/tools/perf/util/
H A Devsel.c248 evsel->bpf_fd = -1; in evsel__init()
1829 if (evsel->bpf_fd >= 0) { in evsel__open_cpu()
1831 int bpf_fd = evsel->bpf_fd; in evsel__open_cpu() local
1835 bpf_fd); in evsel__open_cpu()
1838 bpf_fd, strerror(errno)); in evsel__open_cpu()
/kernel/linux/linux-6.6/tools/perf/util/
H A Devsel.c283 evsel->bpf_fd = -1; in evsel__init()
2098 if (evsel->bpf_fd >= 0) { in evsel__open_cpu()
2100 int bpf_fd = evsel->bpf_fd; in evsel__open_cpu() local
2104 bpf_fd); in evsel__open_cpu()
2107 bpf_fd, strerror(errno)); in evsel__open_cpu()
/kernel/linux/linux-5.10/tools/include/uapi/linux/
H A Dbpf.h564 __u32 bpf_fd; member
615 __u32 bpf_fd; member

Completed in 25 milliseconds

12