[LTP] [PATCH v4] syscalls/membarrier: Add membarrier() initial test
Rafael David Tinoco
rafael.tinoco@linaro.org
Mon Oct 8 16:13:10 CEST 2018
On 10/8/18 11:07 AM, Jan Stancek wrote:
>
>
> ----- Original Message -----
>> Fixes: #265
>>
>> Initial test for membarrier() syscall. It tests all existing membarrier
>> "commands" (or features), including the need (or not) for previous
>> registration for the call to work.
>>
>> Some features did not exist in older kernels and that is covered by
>> skipping some calls, flagging test as skipped & okay, and forcing
>> others, making sure that return codes and errno are set right in those
>> cases.
>>
>> Tests are done in a child process due to inexistent kernel interface to
>> "unregister" the process from being affected by membarrier() call.
>>
>> Signed-off-by: Rafael David Tinoco <rafael.tinoco@linaro.org>
>
> Looks good to me.
>
> We probably can drop linux/membarrier.h configure check, right?
> (since v4 doesn't include it and unsupported kernel should
> hit ENOSYS and TCONF)
Ooops, true. No need to check HAVE_LINUX_MEMBARRIER_H if we are
declaring all CMDs and will be given ENOSYS. Want me to send a v5 ?
> Regards,
> Jan
>
More information about the ltp
mailing list