Home
last modified time | relevance | path

Searched refs:bpf_fd (Results 1 – 5 of 5) sorted by relevance

/tools/testing/selftests/net/
Dreuseport_bpf.c98 int bpf_fd; in attach_ebpf() local
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()
347 int fd, bpf_fd; in test_filter_no_reuseport() local
363 bpf_fd = syscall(__NR_bpf, BPF_PROG_LOAD, &eprog, sizeof(eprog)); in test_filter_no_reuseport()
364 if (bpf_fd < 0) in test_filter_no_reuseport()
374 if (!setsockopt(fd, SOL_SOCKET, SO_ATTACH_REUSEPORT_EBPF, &bpf_fd, in test_filter_no_reuseport()
[all …]
/tools/include/uapi/linux/
Dbpf.h141 __u32 bpf_fd; member
/tools/perf/util/
Devsel.c231 evsel->bpf_fd = -1; in perf_evsel__init()
1489 if (evsel->bpf_fd >= 0) { in __perf_evsel__open()
1491 int bpf_fd = evsel->bpf_fd; in __perf_evsel__open() local
1495 bpf_fd); in __perf_evsel__open()
1498 bpf_fd, strerror(errno)); in __perf_evsel__open()
Devsel.h130 int bpf_fd; member
Dparse-events.c621 pos->bpf_fd = fd; in add_bpf_event()