diff options
author | Andrii Nakryiko <andriin@fb.com> | 2020-03-13 09:18:37 +0300 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2020-03-13 22:49:52 +0300 |
commit | 4e1fd25d19e83774e41008c1ca35c6c27eb30270 (patch) | |
tree | 707021a3a1bf50ca0896c5170aa937cda10933fe /scripts | |
parent | 1afbcd9466f2fd979dde57ad424524a2fc5572e3 (diff) | |
download | linux-4e1fd25d19e83774e41008c1ca35c6c27eb30270.tar.xz |
selftests/bpf: Fix usleep() implementation
nanosleep syscall expects pointer to struct timespec, not nanoseconds
directly. Current implementation fulfills its purpose of invoking nanosleep
syscall, but doesn't really provide sleeping capabilities, which can cause
flakiness for tests relying on usleep() to wait for something.
Fixes: ec12a57b822c ("selftests/bpf: Guarantee that useep() calls nanosleep() syscall")
Signed-off-by: Andrii Nakryiko <andriin@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20200313061837.3685572-1-andriin@fb.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions