Home
last modified time | relevance | path

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

123

/linux-6.6.21/tools/testing/selftests/bpf/progs/
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 …]
Dtask_kfunc_success.c66 int BPF_PROG(test_task_kfunc_flavor_relo, struct task_struct *task, u64 clone_flags) in BPF_PROG() argument
96 int BPF_PROG(test_task_kfunc_flavor_relo_not_found, struct task_struct *task, u64 clone_flags) in BPF_PROG() argument
110 int BPF_PROG(test_task_acquire_release_argument, struct task_struct *task, u64 clone_flags) in BPF_PROG() argument
119 int BPF_PROG(test_task_acquire_release_current, struct task_struct *task, u64 clone_flags) in BPF_PROG() argument
128 int BPF_PROG(test_task_acquire_leave_in_map, struct task_struct *task, u64 clone_flags) in BPF_PROG() argument
143 int BPF_PROG(test_task_xchg_release, struct task_struct *task, u64 clone_flags) in BPF_PROG() argument
176 int BPF_PROG(test_task_map_acquire_release, struct task_struct *task, u64 clone_flags) in BPF_PROG() argument
214 int BPF_PROG(test_task_current_acquire_release, struct task_struct *task, u64 clone_flags) in BPF_PROG() argument
247 int BPF_PROG(test_task_from_pid_arg, struct task_struct *task, u64 clone_flags) in BPF_PROG() argument
257 int BPF_PROG(test_task_from_pid_current, struct task_struct *task, u64 clone_flags) in BPF_PROG() argument
[all …]
Dcpumask_failure.c21 int BPF_PROG(test_alloc_no_release, struct task_struct *task, u64 clone_flags) in BPF_PROG() argument
34 int BPF_PROG(test_alloc_double_release, struct task_struct *task, u64 clone_flags) in BPF_PROG() argument
49 int BPF_PROG(test_acquire_wrong_cpumask, struct task_struct *task, u64 clone_flags) in BPF_PROG() argument
62 int BPF_PROG(test_mutate_cpumask, struct task_struct *task, u64 clone_flags) in BPF_PROG() argument
75 int BPF_PROG(test_insert_remove_no_release, struct task_struct *task, u64 clone_flags) in BPF_PROG() argument
99 int BPF_PROG(test_cpumask_null, struct task_struct *task, u64 clone_flags) in BPF_PROG() argument
109 int BPF_PROG(test_global_mask_out_of_rcu, struct task_struct *task, u64 clone_flags) in BPF_PROG() argument
143 int BPF_PROG(test_global_mask_no_null_check, struct task_struct *task, u64 clone_flags) in BPF_PROG() argument
171 int BPF_PROG(test_global_mask_rcu_no_null_check, struct task_struct *task, u64 clone_flags) in BPF_PROG() argument
Dcpumask_success.c66 int BPF_PROG(test_alloc_free_cpumask, struct task_struct *task, u64 clone_flags) in BPF_PROG() argument
82 int BPF_PROG(test_set_clear_cpu, struct task_struct *task, u64 clone_flags) in BPF_PROG() argument
111 int BPF_PROG(test_setall_clear_cpu, struct task_struct *task, u64 clone_flags) in BPF_PROG() argument
140 int BPF_PROG(test_first_firstzero_cpu, struct task_struct *task, u64 clone_flags) in BPF_PROG() argument
179 int BPF_PROG(test_firstand_nocpu, struct task_struct *task, u64 clone_flags) in BPF_PROG() argument
211 int BPF_PROG(test_test_and_set_clear, struct task_struct *task, u64 clone_flags) in BPF_PROG() argument
243 int BPF_PROG(test_and_or_xor, struct task_struct *task, u64 clone_flags) in BPF_PROG() argument
290 int BPF_PROG(test_intersects_subset, struct task_struct *task, u64 clone_flags) in BPF_PROG() argument
332 int BPF_PROG(test_copy_any_anyand, struct task_struct *task, u64 clone_flags) in BPF_PROG() argument
386 int BPF_PROG(test_insert_leave, struct task_struct *task, u64 clone_flags) in BPF_PROG() argument
[all …]
Dnested_trust_failure.c28 int BPF_PROG(test_invalid_nested_user_cpus, struct task_struct *task, u64 clone_flags) in BPF_PROG() argument
36 int BPF_PROG(test_invalid_nested_offset, struct task_struct *task, u64 clone_flags) in BPF_PROG() argument
/linux-6.6.21/include/trace/events/
Dtask.h11 TP_PROTO(struct task_struct *task, unsigned long clone_flags),
13 TP_ARGS(task, clone_flags),
18 __field( unsigned long, clone_flags)
25 __entry->clone_flags = clone_flags;
31 __entry->clone_flags, __entry->oom_score_adj)
/linux-6.6.21/kernel/
Dfork.c1708 static int copy_mm(unsigned long clone_flags, struct task_struct *tsk) in copy_mm() argument
1731 if (clone_flags & CLONE_VM) { in copy_mm()
1746 static int copy_fs(unsigned long clone_flags, struct task_struct *tsk) in copy_fs() argument
1749 if (clone_flags & CLONE_FS) { in copy_fs()
1766 static int copy_files(unsigned long clone_flags, struct task_struct *tsk, in copy_files() argument
1784 if (clone_flags & CLONE_FILES) { in copy_files()
1799 static int copy_sighand(unsigned long clone_flags, struct task_struct *tsk) in copy_sighand() argument
1803 if (clone_flags & CLONE_SIGHAND) { in copy_sighand()
1818 if (clone_flags & CLONE_CLEAR_SIGHAND) in copy_sighand()
1848 static int copy_signal(unsigned long clone_flags, struct task_struct *tsk) in copy_signal() argument
[all …]
Dcred.c285 int copy_creds(struct task_struct *p, unsigned long clone_flags) in copy_creds() argument
298 clone_flags & CLONE_THREAD in copy_creds()
312 if (clone_flags & CLONE_NEWUSER) { in copy_creds()
327 if (clone_flags & CLONE_THREAD) in copy_creds()
334 if (!(clone_flags & CLONE_THREAD)) { in copy_creds()
/linux-6.6.21/include/linux/
Diocontext.h121 int __copy_io(unsigned long clone_flags, struct task_struct *tsk);
122 static inline int copy_io(unsigned long 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(unsigned long clone_flags, struct task_struct *tsk) in copy_io() argument
Duser_events.h36 unsigned long clone_flags) in user_events_fork() argument
45 if (clone_flags & CLONE_VM) { in user_events_fork()
71 unsigned long clone_flags) in user_events_fork() argument
Dsem.h16 extern int copy_semundo(unsigned long clone_flags, struct task_struct *tsk);
25 static inline int copy_semundo(unsigned long clone_flags, struct task_struct *tsk) in copy_semundo() argument
/linux-6.6.21/arch/nios2/kernel/
Dprocess.c104 unsigned long 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-6.6.21/arch/x86/include/asm/
Dshstk.h19 unsigned long shstk_alloc_thread_stack(struct task_struct *p, unsigned long clone_flags,
29 unsigned long clone_flags, in shstk_alloc_thread_stack() argument
/linux-6.6.21/arch/csky/kernel/
Dprocess.c35 unsigned long clone_flags = args->flags; in copy_thread() local
61 if (clone_flags & CLONE_SETTLS) in copy_thread()
/linux-6.6.21/arch/hexagon/kernel/
Dprocess.c54 unsigned long clone_flags = args->flags; in copy_thread() local
103 if (clone_flags & CLONE_SETTLS) in copy_thread()
/linux-6.6.21/arch/parisc/kernel/
Dprocess.c204 unsigned long clone_flags = args->flags; in copy_thread() local
251 if (clone_flags & CLONE_SETTLS) in copy_thread()
/linux-6.6.21/arch/xtensa/kernel/
Dprocess.c269 unsigned long clone_flags = args->flags; in copy_thread() local
316 if (clone_flags & CLONE_VM) { in copy_thread()
330 if (clone_flags & CLONE_SETTLS) in copy_thread()
/linux-6.6.21/tools/perf/util/bpf_skel/
Doff_cpu.bpf.c240 u64 clone_flags; in on_newtask() local
254 clone_flags = ctx[1]; in on_newtask()
257 if (!(clone_flags & CLONE_THREAD)) in on_newtask()
/linux-6.6.21/arch/ia64/kernel/
Dprocess.c302 unsigned long clone_flags = args->flags; in copy_thread() local
384 if (clone_flags & CLONE_SETTLS) in copy_thread()
405 asmlinkage long ia64_clone(unsigned long clone_flags, unsigned long stack_start, in ia64_clone() argument
410 .flags = (lower_32_bits(clone_flags) & ~CSIGNAL), in ia64_clone()
414 .exit_signal = (lower_32_bits(clone_flags) & CSIGNAL), in ia64_clone()
/linux-6.6.21/arch/x86/kernel/
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-6.6.21/arch/openrisc/kernel/
Dprocess.c169 unsigned long clone_flags = args->flags; in copy_thread() local
202 if (clone_flags & CLONE_SETTLS) in copy_thread()
/linux-6.6.21/arch/arc/kernel/
Dprocess.c169 unsigned long clone_flags = args->flags; in copy_thread() local
223 if (unlikely(clone_flags & CLONE_SETTLS)) { in copy_thread()
/linux-6.6.21/arch/microblaze/kernel/
Dprocess.c57 unsigned long clone_flags = args->flags; in copy_thread() local
110 if (clone_flags & CLONE_SETTLS) in copy_thread()
/linux-6.6.21/tools/testing/selftests/arm64/abi/
Dtpidr2.c164 static int sys_clone(unsigned long clone_flags, unsigned long newsp, in sys_clone() argument
168 return my_syscall5(__NR_clone, clone_flags, newsp, parent_tidptr, tls, in sys_clone()
/linux-6.6.21/arch/sh/kernel/
Dprocess_32.c92 unsigned long clone_flags = args->flags; in copy_thread() local
132 if (clone_flags & CLONE_SETTLS) in copy_thread()

123