[PATCH] tests/membarrier: add additional return value

Sven Schnelle svens at linux.ibm.com
Tue Feb 1 11:40:26 UTC 2022


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);
-- 
2.32.0



More information about the Strace-devel mailing list