Home
last modified time | relevance | path

Searched refs:PF_KTHREAD (Results 1 – 25 of 43) sorted by relevance

12

/linux/kernel/cgroup/
H A Dfreezer.c205 if (task->flags & PF_KTHREAD) in cgroup_do_freeze()
233 if (task->flags & PF_KTHREAD) in cgroup_freezer_migrate_task()
/linux/arch/x86/include/asm/fpu/
H A Dsched.h36 !(old->flags & (PF_KTHREAD | PF_USER_WORKER))) { in switch_fpu()
/linux/lib/
H A Dis_single_threaded.c31 if (unlikely(p->flags & PF_KTHREAD)) in current_is_single_threaded()
/linux/tools/testing/selftests/sched_ext/
H A Dcyclic_kick_wait.bpf.c41 if (p->flags & PF_KTHREAD) { in BPF_STRUCT_OPS()
/linux/tools/perf/util/bpf_skel/
H A Dkwork_top.bpf.c22 #define PF_KTHREAD 0x00200000 macro
115 .is_kthread = task->flags & PF_KTHREAD ? 1 : 0, in update_task_info()
H A Doff_cpu.bpf.c9 #define PF_KTHREAD 0x00200000 /* I am a kernel thread */ macro
173 if (t->flags & PF_KTHREAD) in can_record()
/linux/kernel/
H A Dkthread.c84 WARN_ON(!(k->flags & PF_KTHREAD)); in to_kthread()
1620 WARN_ON_ONCE(!(tsk->flags & PF_KTHREAD)); in kthread_use_mm()
1666 WARN_ON_ONCE(!(tsk->flags & PF_KTHREAD)); in kthread_unuse_mm()
1706 if (!(current->flags & PF_KTHREAD)) in kthread_associate_blkcg()
1732 if (current->flags & PF_KTHREAD) { in kthread_blkcg()
H A Dstacktrace.c232 if (current->flags & PF_KTHREAD) in stack_trace_save_user()
H A Dfork.c555 if (tsk->flags & PF_KTHREAD) in free_task()
1348 if (task->flags & PF_KTHREAD) in get_task_exe_file()
1373 if (task->flags & PF_KTHREAD) in get_task_mm()
2093 p->flags &= ~PF_KTHREAD; in copy_process()
2095 p->flags |= PF_KTHREAD; in copy_process()
/linux/arch/x86/kernel/fpu/
H A Dcore.c63 if (WARN_ON_ONCE(task->flags & PF_KTHREAD)) in x86_task_fpu()
483 if (!(current->flags & (PF_KTHREAD | PF_USER_WORKER)) && in kernel_fpu_begin_mask()
897 WARN_ON_ONCE(current->flags & PF_KTHREAD); in fpregs_lock_and_load()
/linux/kernel/power/
H A Dprocess.c226 if (p->flags & PF_KTHREAD) in thaw_kernel_threads()
/linux/arch/powerpc/kernel/
H A Dstacktrace.c79 if (task->flags & PF_KTHREAD) in arch_stack_walk_reliable()
/linux/tools/sched_ext/
H A Dscx_qmap.bpf.c174 if (p->scx.weight < 2 && !(p->flags & PF_KTHREAD)) in BPF_STRUCT_OPS()
217 if (p->flags & PF_KTHREAD) { in BPF_STRUCT_OPS()
265 p->scx.weight < 2 && !(p->flags & PF_KTHREAD) && !(enq_flags & SCX_ENQ_REENQ)) { in BPF_STRUCT_OPS()
H A Dscx_central.bpf.c115 if ((p->flags & PF_KTHREAD) && p->nr_cpus_allowed == 1) { in BPF_STRUCT_OPS()
/linux/include/linux/
H A Dkthread.h23 if (p->flags & PF_KTHREAD) in tsk_is_kthread()
H A Dsched.h1776 #define PF_KTHREAD 0x00200000 /* I am a kernel thread */ macro
1825 return task->mm && !(task->flags & (PF_KTHREAD | PF_USER_WORKER)); in is_user_task()
/linux/kernel/unwind/
H A Ddeferred.c239 if ((current->flags & (PF_KTHREAD | PF_EXITING)) || in unwind_deferred_request()
/linux/arch/arc/kernel/
H A Dentry.S60 mov r0, r13 ; (see PF_KTHREAD block in copy_thread)
/linux/kernel/sched/
H A Didle.c418 WARN_ON_ONCE(!(current->flags & PF_KTHREAD)); in play_idle_precise()
/linux/security/yama/
H A Dyama_lsm.c82 if (current->flags & PF_KTHREAD) { in report_access()
/linux/kernel/livepatch/
H A Dtransition.c405 if (task->flags & PF_KTHREAD) {
/linux/include/trace/events/
H A Dkmem.h449 __entry->curr = current->mm == mm && !(current->flags & PF_KTHREAD);
/linux/security/smack/
H A Dsmack_access.c752 if (unlikely(current->flags & PF_KTHREAD)) in smack_privileged()
/linux/security/tomoyo/
H A Dnetwork.c619 return current->flags & PF_KTHREAD;
/linux/security/keys/
H A Drequest_key.c42 if (!(t->flags & PF_KTHREAD)) { in cache_requested_key()

12