Searched refs:iter_fd (Results 1 – 2 of 2) sorted by relevance
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/ |
D | bpf_iter.c | 45 int iter_fd, len; in do_dummy_read() local 51 iter_fd = bpf_iter_create(bpf_link__fd(link)); in do_dummy_read() 52 if (CHECK(iter_fd < 0, "create_iter", "create_iter failed\n")) in do_dummy_read() 56 while ((len = read(iter_fd, buf, sizeof(buf))) > 0) in do_dummy_read() 60 close(iter_fd); in do_dummy_read() 179 int iter_fd = -1, len = 0, bufleft = TASKBUFSZ; in do_btf_read() local 188 iter_fd = bpf_iter_create(bpf_link__fd(link)); in do_btf_read() 189 if (CHECK(iter_fd < 0, "create_iter", "create_iter failed\n")) in do_btf_read() 193 len = read(iter_fd, buf, bufleft); in do_btf_read() 214 if (iter_fd > 0) in do_btf_read() [all …]
|
D | sockmap_basic.c | 200 int err, len, src_fd, iter_fd, duration = 0; in test_sockmap_copy() local 249 iter_fd = bpf_iter_create(bpf_link__fd(link)); in test_sockmap_copy() 250 if (CHECK(iter_fd < 0, "create_iter", "create_iter failed\n")) in test_sockmap_copy() 254 while ((len = read(iter_fd, buf, sizeof(buf))) > 0) in test_sockmap_copy() 271 close(iter_fd); in test_sockmap_copy()
|