Home
last modified time | relevance | path

Searched refs:clone_flags (Results 1 – 25 of 65) sorted by relevance

123

/linux/tools/testing/selftests/bpf/progs/
H A Dtask_kfunc_failure.c32 int BPF_PROG(task_kfunc_acquire_untrusted, struct task_struct *task, u64 clone_flags) in BPF_PROG() argument
53 int BPF_PROG(task_kfunc_acquire_fp, struct task_struct *task, u64 clone_flags) in BPF_PROG() argument
55 struct task_struct *acquired, *stack_task = (struct task_struct *)&clone_flags; in BPF_PROG()
69 int BPF_PROG(task_kfunc_acquire_unsafe_kretprobe, struct task_struct *task, u64 clone_flags) in BPF_PROG() argument
84 int BPF_PROG(task_kfunc_acquire_unsafe_kretprobe_rcu, struct task_struct *task, u64 clone_flags) in BPF_PROG() argument
104 int BPF_PROG(task_kfunc_acquire_null, struct task_struct *task, u64 clone_flags) in BPF_PROG() argument
119 int BPF_PROG(task_kfunc_acquire_unreleased, struct task_struct *task, u64 clone_flags) in BPF_PROG() argument
133 int BPF_PROG(task_kfunc_xchg_unreleased, struct task_struct *task, u64 clone_flags) in BPF_PROG() argument
153 int BPF_PROG(task_kfunc_acquire_release_no_null_check, struct task_struct *task, u64 clone_flags) in BPF_PROG() argument
166 int BPF_PROG(task_kfunc_release_untrusted, struct task_struct *task, u64 clone_flags) in BPF_PROG() argument
[all …]
H A Dcpumask_failure.c36 int BPF_PROG(test_alloc_no_release, struct task_struct *task, u64 clone_flags) in BPF_PROG() argument
49 int BPF_PROG(test_alloc_double_release, struct task_struct *task, u64 clone_flags) in BPF_PROG() argument
64 int BPF_PROG(test_acquire_wrong_cpumask, struct task_struct *task, u64 clone_flags) in BPF_PROG() argument
77 int BPF_PROG(test_mutate_cpumask, struct task_struct *task, u64 clone_flags) in BPF_PROG() argument
87 int BPF_PROG(test_insert_remove_no_release, struct task_struct *task, u64 clone_flags) in BPF_PROG() argument
111 int BPF_PROG(test_cpumask_null, struct task_struct *task, u64 clone_flags) in BPF_PROG() argument
121 int BPF_PROG(test_global_mask_out_of_rcu, struct task_struct *task, u64 clone_flags) in BPF_PROG() argument
155 int BPF_PROG(test_global_mask_no_null_check, struct task_struct *task, u64 clone_flags) in BPF_PROG() argument
183 int BPF_PROG(test_global_mask_rcu_no_null_check, struct task_struct *task, u64 clone_flags) in BPF_PROG() argument
208 int BPF_PROG(test_invalid_nested_array, struct task_struct *task, u64 clone_flags) in BPF_PROG() argument
[all …]
H A Dcpumask_success.c139 int BPF_PROG(test_alloc_free_cpumask, struct task_struct *task, u64 clone_flags) in BPF_PROG() argument
155 int BPF_PROG(test_set_clear_cpu, struct task_struct *task, u64 clone_flags) in BPF_PROG() argument
184 int BPF_PROG(test_setall_clear_cpu, struct task_struct *task, u64 clone_flags) in BPF_PROG() argument
213 int BPF_PROG(test_first_firstzero_cpu, struct task_struct *task, u64 clone_flags) in BPF_PROG() argument
252 int BPF_PROG(test_firstand_nocpu, struct task_struct *task, u64 clone_flags) in BPF_PROG() argument
284 int BPF_PROG(test_test_and_set_clear, struct task_struct *task, u64 clone_flags) in BPF_PROG() argument
316 int BPF_PROG(test_and_or_xor, struct task_struct *task, u64 clone_flags) in BPF_PROG() argument
363 int BPF_PROG(test_intersects_subset, struct task_struct *task, u64 clone_flags) in BPF_PROG() argument
405 int BPF_PROG(test_copy_any_anyand, struct task_struct *task, u64 clone_flags) in BPF_PROG() argument
459 int BPF_PROG(test_insert_leave, struct task_struct *task, u64 clone_flags) in BPF_PROG() argument
[all …]
H A Dtask_kfunc_success.c67 int BPF_PROG(test_task_kfunc_flavor_relo, struct task_struct *task, u64 clone_flags) in BPF_PROG() argument
97 int BPF_PROG(test_task_kfunc_flavor_relo_not_found, struct task_struct *task, u64 clone_flags) in BPF_PROG() argument
111 int BPF_PROG(test_task_acquire_release_argument, struct task_struct *task, u64 clone_flags) in BPF_PROG() argument
120 int BPF_PROG(test_task_acquire_release_current, struct task_struct *task, u64 clone_flags) in BPF_PROG() argument
129 int BPF_PROG(test_task_acquire_leave_in_map, struct task_struct *task, u64 clone_flags) in BPF_PROG() argument
144 int BPF_PROG(test_task_xchg_release, struct task_struct *task, u64 clone_flags) in BPF_PROG() argument
228 int BPF_PROG(test_task_map_acquire_release, struct task_struct *task, u64 clone_flags) in BPF_PROG() argument
266 int BPF_PROG(test_task_current_acquire_release, struct task_struct *task, u64 clone_flags) in BPF_PROG() argument
299 int BPF_PROG(test_task_from_pid_arg, struct task_struct *task, u64 clone_flags) in BPF_PROG() argument
309 int BPF_PROG(test_task_from_pid_current, struct task_struct *task, u64 clone_flags) in BPF_PROG() argument
[all …]
H A Dnested_trust_success.c22 int BPF_PROG(test_read_cpumask, struct task_struct *task, u64 clone_flags) in BPF_PROG() argument
38 int BPF_PROG(test_nested_offset, struct task_struct *task, u64 clone_flags) in BPF_PROG() argument
/linux/kernel/
H A Dfork.c1514 static int copy_mm(u64 clone_flags, struct task_struct *tsk) in copy_mm() argument
1537 if (clone_flags & CLONE_VM) { in copy_mm()
1552 static int copy_fs(u64 clone_flags, struct task_struct *tsk) in copy_fs() argument
1555 if (clone_flags & CLONE_FS) { in copy_fs()
1573 static int copy_files(u64 clone_flags, struct task_struct *tsk, in copy_files() argument
1590 if (clone_flags & CLONE_FILES) { in copy_files()
1603 static int copy_sighand(u64 clone_flags, struct task_struct *tsk) in copy_sighand() argument
1607 if (clone_flags & CLONE_SIGHAND) { in copy_sighand()
1622 if (clone_flags & CLONE_CLEAR_SIGHAND) in copy_sighand()
1652 static int copy_signal(u64 clone_flags, struct task_struct *tsk) in copy_signal() argument
[all …]
H A Dcred.c290 int copy_creds(struct task_struct *p, u64 clone_flags) in copy_creds() argument
303 clone_flags & CLONE_THREAD in copy_creds()
316 if (clone_flags & CLONE_NEWUSER) { in copy_creds()
331 if (clone_flags & CLONE_THREAD) in copy_creds()
338 if (!(clone_flags & CLONE_THREAD)) { in copy_creds()
/linux/include/trace/events/
H A Dtask.h11 TP_PROTO(struct task_struct *task, u64 clone_flags),
13 TP_ARGS(task, clone_flags),
18 __field( u64, clone_flags)
25 __entry->clone_flags = clone_flags;
31 __entry->clone_flags, __entry->oom_score_adj)
/linux/include/linux/
H A Diocontext.h121 int __copy_io(u64 clone_flags, struct task_struct *tsk);
122 static inline int copy_io(u64 clone_flags, struct task_struct *tsk) in copy_io() argument
126 return __copy_io(clone_flags, tsk); in copy_io()
132 static inline int copy_io(u64 clone_flags, struct task_struct *tsk) in copy_io() argument
H A Duser_events.h36 u64 clone_flags) in user_events_fork() argument
45 if (clone_flags & CLONE_VM) { in user_events_fork()
71 u64 clone_flags) in user_events_fork() argument
H A Dsem.h12 extern int copy_semundo(u64 clone_flags, struct task_struct *tsk);
17 static inline int copy_semundo(u64 clone_flags, struct task_struct *tsk) in copy_semundo() argument
H A Drseq.h73 static inline void rseq_fork(struct task_struct *t, u64 clone_flags) in rseq_fork() argument
75 if (clone_flags & CLONE_VM) { in rseq_fork()
115 static inline void rseq_fork(struct task_struct *t, u64 clone_flags) in rseq_fork() argument
/linux/arch/nios2/kernel/
H A Dprocess.c104 u64 clone_flags = args->flags; in copy_thread() local
143 if (clone_flags & CLONE_SETTLS) in copy_thread()
253 asmlinkage int nios2_clone(unsigned long clone_flags, unsigned long newsp, in nios2_clone() argument
258 .flags = (lower_32_bits(clone_flags) & ~CSIGNAL), in nios2_clone()
262 .exit_signal = (lower_32_bits(clone_flags) & CSIGNAL), in nios2_clone()
/linux/arch/x86/include/asm/
H A Dshstk.h19 unsigned long shstk_alloc_thread_stack(struct task_struct *p, u64 clone_flags,
33 u64 clone_flags, in shstk_alloc_thread_stack() argument
/linux/arch/csky/kernel/
H A Dprocess.c35 u64 clone_flags = args->flags; in copy_thread() local
61 if (clone_flags & CLONE_SETTLS) in copy_thread()
/linux/arch/xtensa/kernel/
H A Dprocess.c270 u64 clone_flags = args->flags; in copy_thread() local
317 if (clone_flags & CLONE_VM) { in copy_thread()
331 if (clone_flags & CLONE_SETTLS) in copy_thread()
/linux/arch/hexagon/kernel/
H A Dprocess.c55 u64 clone_flags = args->flags; in copy_thread() local
104 if (clone_flags & CLONE_SETTLS) in copy_thread()
/linux/arch/parisc/kernel/
H A Dprocess.c204 u64 clone_flags = args->flags; in copy_thread() local
251 if (clone_flags & CLONE_SETTLS) in copy_thread()
/linux/tools/testing/selftests/arm64/abi/
H A Dtpidr2.c127 static int sys_clone(unsigned long clone_flags, unsigned long newsp, in sys_clone() argument
131 return my_syscall5(__NR_clone, clone_flags, newsp, parent_tidptr, tls, in sys_clone()
/linux/arch/x86/kernel/
H A Dsys_ia32.c240 COMPAT_SYSCALL_DEFINE5(ia32_clone, unsigned long, clone_flags, in COMPAT_SYSCALL_DEFINE5() argument
245 .flags = (clone_flags & ~CSIGNAL), in COMPAT_SYSCALL_DEFINE5()
249 .exit_signal = (clone_flags & CSIGNAL), in COMPAT_SYSCALL_DEFINE5()
/linux/arch/openrisc/kernel/
H A Dprocess.c168 u64 clone_flags = args->flags; in copy_thread() local
201 if (clone_flags & CLONE_SETTLS) in copy_thread()
/linux/arch/arc/kernel/
H A Dprocess.c169 u64 clone_flags = args->flags; in copy_thread() local
223 if (unlikely(clone_flags & CLONE_SETTLS)) { in copy_thread()
/linux/arch/microblaze/kernel/
H A Dprocess.c57 u64 clone_flags = args->flags; in copy_thread() local
110 if (clone_flags & CLONE_SETTLS) in copy_thread()
/linux/arch/sh/kernel/
H A Dprocess_32.c92 u64 clone_flags = args->flags; in copy_thread() local
132 if (clone_flags & CLONE_SETTLS) in copy_thread()
/linux/tools/perf/util/bpf_skel/
H A Doff_cpu.bpf.c329 u64 clone_flags; in on_newtask() local
343 clone_flags = ctx[1]; in on_newtask()
346 if (!(clone_flags & CLONE_THREAD)) in on_newtask()

123