Searched refs:bpf_fd (Results 1 – 9 of 9) sorted by relevance
| /tools/testing/selftests/bpf/prog_tests/ |
| A D | raw_tp_writable_reject_nbd_invalid.c | 11 int bpf_fd = -1, tp_fd = -1; in test_raw_tp_writable_reject_nbd_invalid() local 28 bpf_fd = bpf_prog_load(BPF_PROG_TYPE_RAW_TRACEPOINT_WRITABLE, NULL, "GPL v2", in test_raw_tp_writable_reject_nbd_invalid() 31 if (CHECK(bpf_fd < 0, "bpf_raw_tracepoint_writable load", in test_raw_tp_writable_reject_nbd_invalid() 32 "failed: %d errno %d\n", bpf_fd, errno)) in test_raw_tp_writable_reject_nbd_invalid() 35 tp_fd = bpf_raw_tracepoint_open("nbd_send_request", bpf_fd); in test_raw_tp_writable_reject_nbd_invalid() 42 close(bpf_fd); in test_raw_tp_writable_reject_nbd_invalid()
|
| 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()
|
| /tools/testing/selftests/net/ |
| 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()
|
| A D | reuseport_bpf.c | 97 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 …]
|
| /tools/lib/bpf/ |
| A D | bpf.c | 596 attr.bpf_fd = fd; in bpf_obj_pin_opts() 1188 int bpf_obj_get_info_by_fd(int bpf_fd, void *info, __u32 *info_len) in bpf_obj_get_info_by_fd() argument 1195 attr.info.bpf_fd = bpf_fd; in bpf_obj_get_info_by_fd()
|
| A D | bpf.h | 512 LIBBPF_API int bpf_obj_get_info_by_fd(int bpf_fd, void *info, __u32 *info_len);
|
| /tools/perf/util/ |
| A D | evsel.h | 92 int bpf_fd; member
|
| A D | evsel.c | 397 evsel->bpf_fd = -1; in evsel__init() 2663 if (evsel->bpf_fd >= 0) { in evsel__open_cpu() 2665 int bpf_fd = evsel->bpf_fd; in evsel__open_cpu() local 2669 bpf_fd); in evsel__open_cpu() 2672 bpf_fd, strerror(errno)); in evsel__open_cpu()
|
| /tools/include/uapi/linux/ |
| A D | bpf.h | 1612 __u32 bpf_fd; member 1677 __u32 bpf_fd; member
|
Completed in 35 milliseconds