Thread (19 messages) 19 messages, 4 authors, 2021-09-24

Re: [PATCH 3/3] userfaultfd/selftests: don't rely on GNU extensions for random numbers

From: Peter Xu <peterx@redhat.com>
Date: 2021-09-21 18:03:35
Also in: linux-kselftest, lkml

On Tue, Sep 21, 2021 at 09:33:23AM -0700, Axel Rasmussen wrote:
Two arguments for doing this:

First, and maybe most importantly, the resulting code is significantly
shorter / simpler.

Then, we avoid using GNU libc extensions. Why does this matter? It makes
testing userfaultfd with the selftest easier e.g. on distros which use
something other than glibc (e.g., Alpine, which uses musl); basically,
it makes the test more portable.

Signed-off-by: Axel Rasmussen <axelrasmussen@google.com>
Reviewed-by: Peter Xu <peterx@redhat.com>

-- 
Peter Xu

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help