Home
last modified time | relevance | path

Searched refs:iter_fd (Results 1 – 6 of 6) sorted by relevance

/external/linux-kselftest/tools/testing/selftests/bpf/prog_tests/
Dbpf_iter.c48 int iter_fd, len; in do_dummy_read() local
54 iter_fd = bpf_iter_create(bpf_link__fd(link)); in do_dummy_read()
55 if (CHECK(iter_fd < 0, "create_iter", "create_iter failed\n")) in do_dummy_read()
59 while ((len = read(iter_fd, buf, sizeof(buf))) > 0) in do_dummy_read()
63 close(iter_fd); in do_dummy_read()
199 int iter_fd = -1, err; in do_btf_read() local
208 iter_fd = bpf_iter_create(bpf_link__fd(link)); in do_btf_read()
209 if (CHECK(iter_fd < 0, "create_iter", "create_iter failed\n")) in do_btf_read()
212 err = read_fd_into_buffer(iter_fd, buf, TASKBUFSZ); in do_btf_read()
227 if (iter_fd > 0) in do_btf_read()
[all …]
Dbpf_iter_setsockopt.c109 int err, iter_fd = -1, listen_fd = -1; in do_bpf_iter_setsockopt() local
145 iter_fd = bpf_iter_create(bpf_link__fd(iter_skel->links.change_tcp_cc)); in do_bpf_iter_setsockopt()
146 if (!ASSERT_GE(iter_fd, 0, "create iter_fd")) in do_bpf_iter_setsockopt()
149 while ((err = read(iter_fd, &buf, sizeof(buf))) == -1 && in do_bpf_iter_setsockopt()
173 if (iter_fd != -1) in do_bpf_iter_setsockopt()
174 close(iter_fd); in do_bpf_iter_setsockopt()
Dsockmap_basic.c202 int err, len, src_fd, iter_fd, duration = 0; in test_sockmap_copy() local
251 iter_fd = bpf_iter_create(bpf_link__fd(link)); in test_sockmap_copy()
252 if (CHECK(iter_fd < 0, "create_iter", "create_iter failed\n")) in test_sockmap_copy()
256 while ((len = read(iter_fd, buf, sizeof(buf))) > 0) in test_sockmap_copy()
273 close(iter_fd); in test_sockmap_copy()
/external/bcc/examples/cpp/
DTaskIterator.cc108 int iter_fd = bcc_iter_create(link_fd); in main() local
109 if (iter_fd < 0) { in main()
110 std::cerr << "bcc_iter_create failed: " << iter_fd << std::endl; in main()
120 while ((len = read(iter_fd, (char *)info + leftover, info_size - leftover))) { in main()
138 close(iter_fd); in main()
DSkLocalStorageIterator.cc146 int iter_fd = bcc_iter_create(link_fd); in main() local
147 if (iter_fd < 0) { in main()
148 std::cerr << "bcc_iter_create failed: " << iter_fd << std::endl; in main()
160 while ((len = read(iter_fd, (char *)info + leftover, info_size - leftover))) { in main()
178 close(iter_fd); in main()
/external/python/cpython3/Modules/
D_posixsubprocess.c120 long iter_fd; in _sanity_check_python_fd_sequence() local
124 iter_fd = PyLong_AsLong(py_fd); in _sanity_check_python_fd_sequence()
125 if (iter_fd < 0 || iter_fd <= prev_fd || iter_fd > INT_MAX) { in _sanity_check_python_fd_sequence()
129 prev_fd = iter_fd; in _sanity_check_python_fd_sequence()