Lines Matching refs:set_tid
40 static int call_clone3_set_tid(pid_t *set_tid, in call_clone3_set_tid() argument
52 .set_tid = ptr_to_u64(set_tid), in call_clone3_set_tid()
69 getpid(), set_tid[0]); in call_clone3_set_tid()
93 if (set_tid[0] != getpid()) in call_clone3_set_tid()
119 static void test_clone3_set_tid(pid_t *set_tid, in test_clone3_set_tid() argument
130 getpid(), set_tid[0], flags); in test_clone3_set_tid()
131 ret = call_clone3_set_tid(set_tid, set_tid_size, flags, expected_pid, in test_clone3_set_tid()
135 getpid(), set_tid[0], ret, expected); in test_clone3_set_tid()
157 pid_t set_tid[MAX_PID_NS_LEVEL * 2]; in main() local
176 memset(&set_tid, 0, sizeof(set_tid)); in main()
177 test_clone3_set_tid(set_tid, MAX_PID_NS_LEVEL + 1, 0, -EINVAL, 0, 0); in main()
179 test_clone3_set_tid(set_tid, MAX_PID_NS_LEVEL * 2, 0, -EINVAL, 0, 0); in main()
181 test_clone3_set_tid(set_tid, MAX_PID_NS_LEVEL * 2 + 1, 0, in main()
184 test_clone3_set_tid(set_tid, MAX_PID_NS_LEVEL * 42, 0, -EINVAL, 0, 0); in main()
190 test_clone3_set_tid(set_tid, MAX_PID_NS_LEVEL - 1, 0, -EINVAL, 0, 0); in main()
192 memset(&set_tid, 0xff, sizeof(set_tid)); in main()
193 test_clone3_set_tid(set_tid, MAX_PID_NS_LEVEL + 1, 0, -EINVAL, 0, 0); in main()
195 test_clone3_set_tid(set_tid, MAX_PID_NS_LEVEL * 2, 0, -EINVAL, 0, 0); in main()
197 test_clone3_set_tid(set_tid, MAX_PID_NS_LEVEL * 2 + 1, 0, in main()
200 test_clone3_set_tid(set_tid, MAX_PID_NS_LEVEL * 42, 0, -EINVAL, 0, 0); in main()
206 test_clone3_set_tid(set_tid, MAX_PID_NS_LEVEL - 1, 0, -EINVAL, 0, 0); in main()
208 memset(&set_tid, 0, sizeof(set_tid)); in main()
210 set_tid[0] = 0; in main()
211 test_clone3_set_tid(set_tid, 1, 0, -EINVAL, 0, 0); in main()
213 set_tid[0] = -1; in main()
214 test_clone3_set_tid(set_tid, 1, 0, -EINVAL, 0, 0); in main()
217 test_clone3_set_tid(set_tid, 2, 0, -EINVAL, 0, 0); in main()
221 test_clone3_set_tid(set_tid, 1, CLONE_NEWPID, -EINVAL, 0, 0); in main()
226 set_tid[0] = 1; in main()
228 test_clone3_set_tid(set_tid, 1, 0, -EEXIST, 0, 0); in main()
234 test_clone3_set_tid(set_tid, 1, CLONE_NEWPID, 0, 0, 0); in main()
239 set_tid[0] = pid_max; in main()
240 test_clone3_set_tid(set_tid, 1, 0, -EINVAL, 0, 0); in main()
243 test_clone3_set_tid(set_tid, 1, CLONE_NEWPID, -EINVAL, 0, 0); in main()
266 set_tid[0] = pid; in main()
267 test_clone3_set_tid(set_tid, 1, 0, 0, 0, 0); in main()
270 test_clone3_set_tid(set_tid, 1, CLONE_NEWPID, -EINVAL, 0, 0); in main()
277 set_tid[0] = 1; in main()
278 set_tid[1] = pid; in main()
279 test_clone3_set_tid(set_tid, 2, CLONE_NEWPID, 0, pid, 0); in main()
286 set_tid[0] = pid; in main()
289 test_clone3_set_tid(set_tid, 1, 0, -EINVAL, 0, 0); in main()
298 set_tid[0] = 43; in main()
299 set_tid[1] = -1; in main()
300 test_clone3_set_tid(set_tid, 2, 0, -EINVAL, 0, 0); in main()
302 set_tid[0] = 43; in main()
303 set_tid[1] = pid; in main()
304 test_clone3_set_tid(set_tid, 2, 0, 0, 43, 0); in main()
307 set_tid[0] = 2; in main()
308 test_clone3_set_tid(set_tid, 1, 0, 0, 2, 0); in main()
310 set_tid[0] = 1; in main()
311 set_tid[1] = -1; in main()
312 set_tid[2] = pid; in main()
314 test_clone3_set_tid(set_tid, 3, CLONE_NEWPID, -EINVAL, 0, 0); in main()
316 set_tid[0] = 1; in main()
317 set_tid[1] = 42; in main()
318 set_tid[2] = pid; in main()
324 test_clone3_set_tid(set_tid, 4, CLONE_NEWPID, -EINVAL, 0, 0); in main()
330 test_clone3_set_tid(set_tid, 3, CLONE_NEWPID, 0, 42, true); in main()