[PATCH] tests/membarrier: add additional return value

Dmitry V. Levin ldv at altlinux.org
Wed Feb 2 01:53:19 UTC 2022


On Tue, Feb 01, 2022 at 12:40:26PM +0100, Sven Schnelle wrote:
> linux commit 809232619f5b ("sched/membarrier: Fix membarrier-rseq fence
> command missing from query bitmask") changed the returned value, so we
> need to adjust the strace test as well.
> 
> Signed-off-by: Sven Schnelle <svens at linux.ibm.com>
> ---
>  tests/membarrier.c | 8 ++++++++
>  1 file changed, 8 insertions(+)
> 
> diff --git a/tests/membarrier.c b/tests/membarrier.c
> index ed1dfe042053..3d7b77cd95e4 100644
> --- a/tests/membarrier.c
> +++ b/tests/membarrier.c
> @@ -72,6 +72,14 @@ main(void)
>  			       "MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED_RSEQ";
>  			break;
>  
> +		case 2|4|8|16|128|256:
> +			text = "MEMBARRIER_CMD_GLOBAL_EXPEDITED|"
> +			       "MEMBARRIER_CMD_REGISTER_GLOBAL_EXPEDITED|"
> +			       "MEMBARRIER_CMD_PRIVATE_EXPEDITED|"
> +			       "MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED|"
> +			       "MEMBARRIER_CMD_PRIVATE_EXPEDITED_RSEQ|"
> +			       "MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED_RSEQ";
> +			break;
>  		default:
>  			error_msg_and_fail("membarrier returned %#x, does"
>  					   " the test have to be updated?", rc);

Applied, thanks.


-- 
ldv


More information about the Strace-devel mailing list