[PATCH v2] membarrier: add MEMBARRIER_CMD_GET_REGISTRATIONS flag

Sven Schnelle svens at linux.ibm.com
Thu Jan 12 13:10:52 UTC 2023


Signed-off-by: Sven Schnelle <svens at linux.ibm.com>
---
Changes in v2:
- add src/xlat/membarrier_cmds.in file

 src/xlat/membarrier_cmds.in |  1 +
 tests/membarrier.c          | 10 ++++++++++
 2 files changed, 11 insertions(+)

diff --git a/src/xlat/membarrier_cmds.in b/src/xlat/membarrier_cmds.in
index cfa683328636..86124bd1e645 100644
--- a/src/xlat/membarrier_cmds.in
+++ b/src/xlat/membarrier_cmds.in
@@ -8,3 +8,4 @@ MEMBARRIER_CMD_PRIVATE_EXPEDITED_SYNC_CORE		(1 << 5)
 MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED_SYNC_CORE	(1 << 6)
 MEMBARRIER_CMD_PRIVATE_EXPEDITED_RSEQ			(1 << 7)
 MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED_RSEQ		(1 << 8)
+MEMBARRIER_CMD_GET_REGISTRATIONS			(1 << 9)
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