[PATCH] tests/membarrier: add new combination of flags
Sven Schnelle
svens at linux.ibm.com
Fri Mar 31 09:01:04 UTC 2023
linux v6.3 reports a new combination of flags when
ARCH_HAS_MEMBARRIER_SYNC_CORE is enabled, so add to
strace.
Signed-off-by: Sven Schnelle <svens at linux.ibm.com>
---
tests/membarrier.c | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/tests/membarrier.c b/tests/membarrier.c
index 5379296fd290..f60bace4ee8d 100644
--- a/tests/membarrier.c
+++ b/tests/membarrier.c
@@ -89,6 +89,18 @@ main(void)
"MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED_RSEQ|"
"MEMBARRIER_CMD_GET_REGISTRATIONS";
break;
+ case 2|4|8|16|32|64|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_SYNC_CORE|"
+ "MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED_SYNC_CORE|"
+ "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"
--
2.39.2
More information about the Strace-devel
mailing list