Home
last modified time | relevance | path

Searched refs:set_tid (Results 1 - 20 of 20) sorted by relevance

/kernel/linux/linux-5.10/tools/testing/selftests/clone3/
H A Dclone3_set_tid.c40 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_LEVE in main() local
[all...]
H A Dclone3_cap_checkpoint_restore.c42 pid_t *set_tid, size_t set_tid_size) in call_clone3_set_tid()
49 .set_tid = ptr_to_u64(set_tid), in call_clone3_set_tid()
63 TH_LOG("I am the child, my PID is %d (expected %d)", getpid(), set_tid[0]); in call_clone3_set_tid()
65 if (set_tid[0] != getpid()) in call_clone3_set_tid()
84 pid_t *set_tid, size_t set_tid_size) in test_clone3_set_tid()
88 TH_LOG("[%d] Trying clone3() with CLONE_SET_TID to %d", getpid(), set_tid[0]); in test_clone3_set_tid()
89 ret = call_clone3_set_tid(_metadata, set_tid, set_tid_size); in test_clone3_set_tid()
90 TH_LOG("[%d] clone3() with CLONE_SET_TID %d says:%d", getpid(), set_tid[0], ret); in test_clone3_set_tid()
143 pid_t set_tid[ in TEST() local
41 call_clone3_set_tid(struct __test_metadata *_metadata, pid_t *set_tid, size_t set_tid_size) call_clone3_set_tid() argument
83 test_clone3_set_tid(struct __test_metadata *_metadata, pid_t *set_tid, size_t set_tid_size) test_clone3_set_tid() argument
[all...]
H A Dclone3_selftests.h38 __aligned_u64 set_tid; member
/kernel/linux/linux-6.6/tools/testing/selftests/clone3/
H A Dclone3_set_tid.c40 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_LEVE in main() local
[all...]
H A Dclone3_cap_checkpoint_restore.c42 pid_t *set_tid, size_t set_tid_size) in call_clone3_set_tid()
49 .set_tid = ptr_to_u64(set_tid), in call_clone3_set_tid()
63 TH_LOG("I am the child, my PID is %d (expected %d)", getpid(), set_tid[0]); in call_clone3_set_tid()
65 if (set_tid[0] != getpid()) in call_clone3_set_tid()
84 pid_t *set_tid, size_t set_tid_size) in test_clone3_set_tid()
88 TH_LOG("[%d] Trying clone3() with CLONE_SET_TID to %d", getpid(), set_tid[0]); in test_clone3_set_tid()
89 ret = call_clone3_set_tid(_metadata, set_tid, set_tid_size); in test_clone3_set_tid()
90 TH_LOG("[%d] clone3() with CLONE_SET_TID %d says:%d", getpid(), set_tid[0], ret); in test_clone3_set_tid()
143 pid_t set_tid[ in TEST() local
41 call_clone3_set_tid(struct __test_metadata *_metadata, pid_t *set_tid, size_t set_tid_size) call_clone3_set_tid() argument
83 test_clone3_set_tid(struct __test_metadata *_metadata, pid_t *set_tid, size_t set_tid_size) test_clone3_set_tid() argument
[all...]
H A Dclone3_selftests.h38 __aligned_u64 set_tid; member
/kernel/linux/linux-5.10/tools/include/uapi/linux/
H A Dsched.h71 * @set_tid: Pointer to an array of type *pid_t. The size
83 * in @set_tid. This cannot be larger than the
101 __aligned_u64 set_tid; member
/kernel/linux/linux-5.10/include/uapi/linux/
H A Dsched.h71 * @set_tid: Pointer to an array of type *pid_t. The size
83 * in @set_tid. This cannot be larger than the
101 __aligned_u64 set_tid; member
/kernel/linux/linux-6.6/include/uapi/linux/
H A Dsched.h71 * @set_tid: Pointer to an array of type *pid_t. The size
83 * in @set_tid. This cannot be larger than the
101 __aligned_u64 set_tid; member
/kernel/linux/linux-6.6/tools/include/uapi/linux/
H A Dsched.h71 * @set_tid: Pointer to an array of type *pid_t. The size
83 * in @set_tid. This cannot be larger than the
101 __aligned_u64 set_tid; member
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/linux/
H A Dsched.h60 __aligned_u64 set_tid; member
/kernel/linux/patches/linux-6.6/prebuilts/usr/include/linux/
H A Dsched.h60 __aligned_u64 set_tid; member
/kernel/linux/linux-5.10/include/linux/
H A Dpid.h134 extern struct pid *alloc_pid(struct pid_namespace *ns, pid_t *set_tid,
/kernel/linux/linux-5.10/include/linux/sched/
H A Dtask.h30 pid_t *set_tid; member
31 /* Number of elements in *set_tid */
/kernel/linux/linux-6.6/include/linux/
H A Dpid.h137 extern struct pid *alloc_pid(struct pid_namespace *ns, pid_t *set_tid,
/kernel/linux/linux-6.6/include/linux/sched/
H A Dtask.h35 pid_t *set_tid; member
36 /* Number of elements in *set_tid */
/kernel/linux/linux-5.10/kernel/
H A Dfork.c2165 pid = alloc_pid(p->nsproxy->pid_ns_for_children, args->set_tid, in copy_process()
2660 pid_t *kset_tid = kargs->set_tid; in copy_clone_args_from_user()
2682 if (unlikely(!args.set_tid && args.set_tid_size > 0)) in copy_clone_args_from_user()
2685 if (unlikely(args.set_tid && args.set_tid_size == 0)) in copy_clone_args_from_user()
2713 if (args.set_tid && in copy_clone_args_from_user()
2714 copy_from_user(kset_tid, u64_to_user_ptr(args.set_tid), in copy_clone_args_from_user()
2718 kargs->set_tid = kset_tid; in copy_clone_args_from_user()
2795 pid_t set_tid[MAX_PID_NS_LEVEL]; in SYSCALL_DEFINE2() local
2797 kargs.set_tid = set_tid; in SYSCALL_DEFINE2()
[all...]
H A Dpid.c159 struct pid *alloc_pid(struct pid_namespace *ns, pid_t *set_tid, in alloc_pid() argument
170 * set_tid_size contains the size of the set_tid array. Starting at in alloc_pid()
191 tid = set_tid[ns->level - i]; in alloc_pid()
/kernel/linux/linux-6.6/kernel/
H A Dfork.c2531 pid = alloc_pid(p->nsproxy->pid_ns_for_children, args->set_tid, in copy_process()
3080 pid_t *kset_tid = kargs->set_tid; in copy_clone_args_from_user()
3102 if (unlikely(!args.set_tid && args.set_tid_size > 0)) in copy_clone_args_from_user()
3105 if (unlikely(args.set_tid && args.set_tid_size == 0)) in copy_clone_args_from_user()
3133 if (args.set_tid && in copy_clone_args_from_user()
3134 copy_from_user(kset_tid, u64_to_user_ptr(args.set_tid), in copy_clone_args_from_user()
3138 kargs->set_tid = kset_tid; in copy_clone_args_from_user()
3215 pid_t set_tid[MAX_PID_NS_LEVEL]; in SYSCALL_DEFINE2() local
3217 kargs.set_tid = set_tid; in SYSCALL_DEFINE2()
[all...]
H A Dpid.c162 struct pid *alloc_pid(struct pid_namespace *ns, pid_t *set_tid, in alloc_pid() argument
173 * set_tid_size contains the size of the set_tid array. Starting at in alloc_pid()
194 tid = set_tid[ns->level - i]; in alloc_pid()

Completed in 14 milliseconds