Lines Matching refs:flags
14 static int sys_membarrier(int cmd, int flags) in sys_membarrier() argument
16 return syscall(__NR_membarrier, cmd, flags); in sys_membarrier()
21 int ret, flags = 0; in test_membarrier_get_registrations() local
31 test_name, flags, errno); in test_membarrier_get_registrations()
35 test_name, flags, ret, registrations); in test_membarrier_get_registrations()
39 test_name, flags, ret, registrations); in test_membarrier_get_registrations()
46 int cmd = -1, flags = 0; in test_membarrier_cmd_fail() local
49 if (sys_membarrier(cmd, flags) != -1) { in test_membarrier_cmd_fail()
52 test_name, cmd, flags); in test_membarrier_cmd_fail()
57 test_name, flags, EINVAL, strerror(EINVAL), in test_membarrier_cmd_fail()
63 test_name, cmd, flags, errno); in test_membarrier_cmd_fail()
69 int cmd = MEMBARRIER_CMD_QUERY, flags = 1; in test_membarrier_flags_fail() local
72 if (sys_membarrier(cmd, flags) != -1) { in test_membarrier_flags_fail()
75 test_name, flags); in test_membarrier_flags_fail()
80 test_name, flags, EINVAL, strerror(EINVAL), in test_membarrier_flags_fail()
86 test_name, flags, errno); in test_membarrier_flags_fail()
92 int cmd = MEMBARRIER_CMD_GLOBAL, flags = 0; in test_membarrier_global_success() local
95 if (sys_membarrier(cmd, flags) != 0) { in test_membarrier_global_success()
98 test_name, flags, errno); in test_membarrier_global_success()
102 "%s test: flags = %d\n", test_name, flags); in test_membarrier_global_success()
108 int cmd = MEMBARRIER_CMD_PRIVATE_EXPEDITED, flags = 0; in test_membarrier_private_expedited_fail() local
111 if (sys_membarrier(cmd, flags) != -1) { in test_membarrier_private_expedited_fail()
114 test_name, flags); in test_membarrier_private_expedited_fail()
119 test_name, flags, EPERM, strerror(EPERM), in test_membarrier_private_expedited_fail()
125 test_name, flags, errno); in test_membarrier_private_expedited_fail()
131 int cmd = MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED, flags = 0; in test_membarrier_register_private_expedited_success() local
134 if (sys_membarrier(cmd, flags) != 0) { in test_membarrier_register_private_expedited_success()
137 test_name, flags, errno); in test_membarrier_register_private_expedited_success()
142 test_name, flags); in test_membarrier_register_private_expedited_success()
150 int cmd = MEMBARRIER_CMD_PRIVATE_EXPEDITED, flags = 0; in test_membarrier_private_expedited_success() local
153 if (sys_membarrier(cmd, flags) != 0) { in test_membarrier_private_expedited_success()
156 test_name, flags, errno); in test_membarrier_private_expedited_success()
161 test_name, flags); in test_membarrier_private_expedited_success()
167 int cmd = MEMBARRIER_CMD_PRIVATE_EXPEDITED_SYNC_CORE, flags = 0; in test_membarrier_private_expedited_sync_core_fail() local
170 if (sys_membarrier(cmd, flags) != -1) { in test_membarrier_private_expedited_sync_core_fail()
173 test_name, flags); in test_membarrier_private_expedited_sync_core_fail()
178 test_name, flags, EPERM, strerror(EPERM), in test_membarrier_private_expedited_sync_core_fail()
184 test_name, flags, errno); in test_membarrier_private_expedited_sync_core_fail()
190 int cmd = MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED_SYNC_CORE, flags = 0; in test_membarrier_register_private_expedited_sync_core_success() local
193 if (sys_membarrier(cmd, flags) != 0) { in test_membarrier_register_private_expedited_sync_core_success()
196 test_name, flags, errno); in test_membarrier_register_private_expedited_sync_core_success()
201 test_name, flags); in test_membarrier_register_private_expedited_sync_core_success()
209 int cmd = MEMBARRIER_CMD_PRIVATE_EXPEDITED, flags = 0; in test_membarrier_private_expedited_sync_core_success() local
212 if (sys_membarrier(cmd, flags) != 0) { in test_membarrier_private_expedited_sync_core_success()
215 test_name, flags, errno); in test_membarrier_private_expedited_sync_core_success()
220 test_name, flags); in test_membarrier_private_expedited_sync_core_success()
226 int cmd = MEMBARRIER_CMD_REGISTER_GLOBAL_EXPEDITED, flags = 0; in test_membarrier_register_global_expedited_success() local
229 if (sys_membarrier(cmd, flags) != 0) { in test_membarrier_register_global_expedited_success()
232 test_name, flags, errno); in test_membarrier_register_global_expedited_success()
237 test_name, flags); in test_membarrier_register_global_expedited_success()
245 int cmd = MEMBARRIER_CMD_GLOBAL_EXPEDITED, flags = 0; in test_membarrier_global_expedited_success() local
248 if (sys_membarrier(cmd, flags) != 0) { in test_membarrier_global_expedited_success()
251 test_name, flags, errno); in test_membarrier_global_expedited_success()
256 test_name, flags); in test_membarrier_global_expedited_success()
330 int flags = 0, ret; in test_membarrier_query() local
332 ret = sys_membarrier(MEMBARRIER_CMD_QUERY, flags); in test_membarrier_query()