[PATCH] membarrier: add MEMBARRIER_CMD_GET_REGISTRATIONS flag
Sven Schnelle
svens at linux.ibm.com
Thu Jan 12 12:58:44 UTC 2023
Signed-off-by: Sven Schnelle <svens at linux.ibm.com>
---
tests/membarrier.c | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/tests/membarrier.c b/tests/membarrier.c
index c0487341905f..10261eb02e00 100644
--- a/tests/membarrier.c
+++ b/tests/membarrier.c
@@ -80,6 +80,16 @@ main(void)
"MEMBARRIER_CMD_PRIVATE_EXPEDITED_RSEQ|"
"MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED_RSEQ";
break;
+ case 2|4|8|16|128|256|512:
+ 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|"
+ "MEMBARRIER_CMD_GET_REGISTRATIONS";
+ break;
+
default:
error_msg_and_fail("membarrier returned %#x, does"
" the test have to be updated?", rc);
--
2.34.1
More information about the Strace-devel
mailing list