Thread (3 messages) flat view 3 messages, 3 authors, 2020-03-17

Re: [PATCH v2 bpf-next] selftests/bpf: fix nanosleep for real this time

From: Daniel Borkmann <daniel@iogearbox.net>
Date: 2020-03-17 18:56:58
Also in: bpf

On 3/14/20 1:27 AM, Andrii Nakryiko wrote:
Amazingly, some libc implementations don't call __NR_nanosleep syscall from
their nanosleep() APIs. Hammer it down with explicit syscall() call and never
get back to it again. Also simplify code for timespec initialization.

I verified that nanosleep is called w/ printk and in exactly same Linux image
that is used in Travis CI. So it should both sleep and call correct syscall.

v1->v2:
   - math is too hard, fix usec -> nsec convertion (Martin);
   - test_vmlinux has explicit nanosleep() call, convert that one as well.

Fixes: 4e1fd25d19e8 ("selftests/bpf: Fix usleep() implementation")
Signed-off-by: Andrii Nakryiko <redacted>
Applied, thanks!
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help