|
|
71941d |
commit 73354cff1aae409d6ef7d8a539a2a0a09c2480f9
|
|
|
71941d |
Author: Dmitry V. Levin <ldv@altlinux.org>
|
|
|
71941d |
Date: Wed Nov 1 00:20:44 2017 +0000
|
|
|
71941d |
|
|
|
71941d |
Update MEMBARRIER_CMD_* constants
|
|
|
71941d |
|
|
|
71941d |
* xlat/membarrier_cmds.in: Add MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED
|
|
|
71941d |
introduced by kernel commit v4.14-rc6~26.
|
|
|
71941d |
* tests/membarrier.c (main): Update expected output.
|
|
|
71941d |
|
|
|
71941d |
diff -rup a/tests/membarrier.c b/tests/membarrier.c
|
|
|
71941d |
--- a/tests/membarrier.c 2018-03-07 16:10:10.000000000 -0500
|
|
|
71941d |
+++ b/tests/membarrier.c 2018-03-07 16:10:36.596808428 -0500
|
|
|
71941d |
@@ -55,6 +55,11 @@ main(void)
|
|
|
71941d |
text = "MEMBARRIER_CMD_SHARED|"
|
|
|
71941d |
"MEMBARRIER_CMD_PRIVATE_EXPEDITED";
|
|
|
71941d |
break;
|
|
|
71941d |
+ case 1|8|16:
|
|
|
71941d |
+ text = "MEMBARRIER_CMD_SHARED|"
|
|
|
71941d |
+ "MEMBARRIER_CMD_PRIVATE_EXPEDITED|"
|
|
|
71941d |
+ "MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED";
|
|
|
71941d |
+ break;
|
|
|
71941d |
default:
|
|
|
71941d |
error_msg_and_fail("membarrier returned %#x, does"
|
|
|
71941d |
" the test have to be updated?", rc);
|
|
|
71941d |
diff -rup a/xlat/membarrier_cmds.h b/xlat/membarrier_cmds.h
|
|
|
71941d |
--- a/xlat/membarrier_cmds.h 2018-03-07 16:10:10.000000000 -0500
|
|
|
71941d |
+++ b/xlat/membarrier_cmds.h 2018-03-07 16:10:41.723750016 -0500
|
|
|
71941d |
@@ -8,6 +8,9 @@
|
|
|
71941d |
#if !(defined(MEMBARRIER_CMD_PRIVATE_EXPEDITED) || (defined(HAVE_DECL_MEMBARRIER_CMD_PRIVATE_EXPEDITED) && HAVE_DECL_MEMBARRIER_CMD_PRIVATE_EXPEDITED))
|
|
|
71941d |
# define MEMBARRIER_CMD_PRIVATE_EXPEDITED 8
|
|
|
71941d |
#endif
|
|
|
71941d |
+#if !(defined(MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED) || (defined(HAVE_DECL_MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED) && HAVE_DECL_MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED))
|
|
|
71941d |
+# define MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED 16
|
|
|
71941d |
+#endif
|
|
|
71941d |
|
|
|
71941d |
#ifdef IN_MPERS
|
|
|
71941d |
|
|
|
71941d |
@@ -20,6 +23,7 @@ const struct xlat membarrier_cmds[] = {
|
|
|
71941d |
XLAT(MEMBARRIER_CMD_QUERY),
|
|
|
71941d |
XLAT(MEMBARRIER_CMD_SHARED),
|
|
|
71941d |
XLAT(MEMBARRIER_CMD_PRIVATE_EXPEDITED),
|
|
|
71941d |
+ XLAT(MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED),
|
|
|
71941d |
XLAT_END
|
|
|
71941d |
};
|
|
|
71941d |
|
|
|
71941d |
diff -rup a/xlat/membarrier_cmds.in b/xlat/membarrier_cmds.in
|
|
|
71941d |
--- a/xlat/membarrier_cmds.in 2018-03-07 16:10:10.000000000 -0500
|
|
|
71941d |
+++ b/xlat/membarrier_cmds.in 2018-03-07 16:10:36.597808417 -0500
|
|
|
71941d |
@@ -1,3 +1,4 @@
|
|
|
71941d |
MEMBARRIER_CMD_QUERY 0
|
|
|
71941d |
MEMBARRIER_CMD_SHARED 1
|
|
|
71941d |
MEMBARRIER_CMD_PRIVATE_EXPEDITED 8
|
|
|
71941d |
+MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED 16
|