[LTP] [PATCH v2] userfaultfd: Use two-step handshake to probe features
Ricardo Branco
rbranco@suse.de
Thu May 7 10:32:34 CEST 2026
On 5/5/26 2:07 PM, Cyril Hrubis wrote:
> Hi!
>>> However I would put this code into a common header and call it only in
>>> the test setup (so that it's not executed on each test iteration).
>>>
>>> #define CHECK_UFFD_FLAG(flag) do { \
>>> ... \
>>> if (!(uffdio_api.features & (flag))) \
>>> tst_brk(TCONF, #flag " not supported"); \
>>> ... \
>>> } while (0)
>>>
>> Will add this macro. Let's keep doing the 2 step handshake though.
> Sure, sounds good to me.
>
Just did it in a 2-part v3.
Cheers,
R
More information about the ltp
mailing list