diff options
author | Eduard Zingerman <[email protected]> | 2024-11-12 03:09:04 -0800 |
---|---|---|
committer | Alexei Starovoitov <[email protected]> | 2024-11-12 13:53:27 -0800 |
commit | 03066ed3105a71c2b0ad39ea44b6e5733ddd4a68 (patch) | |
tree | 640cb16e8e6bdbdc9c4731bfdde84eeb67ac3600 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | d9d4d127e813427afb26ff7e0f0c58989501be84 (diff) |
selftests/bpf: add read_with_timeout() utility function
int read_with_timeout(int fd, char *buf, size_t count, long usec)
As a regular read(2), but allows to specify a timeout in
micro-seconds. Returns -EAGAIN on timeout.
Implemented using select().
Signed-off-by: Eduard Zingerman <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions