/linux-6.3-rc2/include/linux/ |
A D | vtime.h | 16 extern void vtime_account_kernel(struct task_struct *tsk); 17 extern void vtime_account_idle(struct task_struct *tsk); 21 extern void arch_vtime_task_switch(struct task_struct *tsk); 22 extern void vtime_user_enter(struct task_struct *tsk); 23 extern void vtime_user_exit(struct task_struct *tsk); 24 extern void vtime_guest_enter(struct task_struct *tsk); 25 extern void vtime_guest_exit(struct task_struct *tsk); 37 extern void vtime_account_softirq(struct task_struct *tsk); 38 extern void vtime_account_hardirq(struct task_struct *tsk); 39 extern void vtime_flush(struct task_struct *tsk); [all …]
|
A D | cn_proc.h | 23 void proc_fork_connector(struct task_struct *task); 24 void proc_exec_connector(struct task_struct *task); 25 void proc_id_connector(struct task_struct *task, int which_id); 26 void proc_sid_connector(struct task_struct *task); 28 void proc_comm_connector(struct task_struct *task); 29 void proc_coredump_connector(struct task_struct *task); 30 void proc_exit_connector(struct task_struct *task); 32 static inline void proc_fork_connector(struct task_struct *task) in proc_fork_connector() 35 static inline void proc_exec_connector(struct task_struct *task) in proc_exec_connector() 38 static inline void proc_id_connector(struct task_struct *task, in proc_id_connector() [all …]
|
A D | ptrace.h | 49 extern long arch_ptrace(struct task_struct *child, long request, 53 extern void ptrace_disable(struct task_struct *); 57 extern void __ptrace_link(struct task_struct *child, 58 struct task_struct *new_parent, 60 extern void __ptrace_unlink(struct task_struct *child); 90 static inline int ptrace_reparented(struct task_struct *child) in ptrace_reparented() 95 static inline void ptrace_unlink(struct task_struct *child) in ptrace_unlink() 117 static inline struct task_struct *ptrace_parent(struct task_struct *task) in ptrace_parent() 305 extern void user_enable_single_step(struct task_struct *); 306 extern void user_disable_single_step(struct task_struct *); [all …]
|
A D | sched.h | 737 struct task_struct { struct 769 struct task_struct *last_wakee; argument 975 struct task_struct __rcu *real_parent; argument 978 struct task_struct __rcu *parent; argument 985 struct task_struct *group_leader; argument 1137 struct task_struct *pi_top_task; argument 1464 struct task_struct *oom_reaper_list; argument 1853 extern int dup_user_cpus_ptr(struct task_struct *dst, struct task_struct *src, int node); 1868 static inline int dup_user_cpus_ptr(struct task_struct *dst, struct task_struct *src, int node) in dup_user_cpus_ptr() 1911 extern struct task_struct *idle_task(int cpu); [all …]
|
A D | kthread.h | 37 bool set_kthread_struct(struct task_struct *p); 53 struct task_struct *__k \ 72 static inline struct task_struct * 76 struct task_struct *p; in kthread_run_on_cpu() 88 int kthread_stop(struct task_struct *k); 93 void *kthread_func(struct task_struct *k); 94 void *kthread_data(struct task_struct *k); 96 int kthread_park(struct task_struct *k); 97 void kthread_unpark(struct task_struct *k); 103 extern struct task_struct *kthreadd_task; [all …]
|
A D | cgroup.h | 67 struct task_struct *cur_task; 112 int cgroup_attach_task_all(struct task_struct *from, struct task_struct *); 124 struct pid *pid, struct task_struct *tsk); 126 void cgroup_fork(struct task_struct *p); 127 extern int cgroup_can_fork(struct task_struct *p, 129 extern void cgroup_cancel_fork(struct task_struct *p, 131 extern void cgroup_post_fork(struct task_struct *p, 133 void cgroup_exit(struct task_struct *p); 134 void cgroup_release(struct task_struct *p); 135 void cgroup_free(struct task_struct *p); [all …]
|
A D | tsacct_kern.h | 16 struct taskstats *stats, struct task_struct *tsk); 20 struct taskstats *stats, struct task_struct *tsk) in bacct_add_tsk() 25 extern void xacct_add_tsk(struct taskstats *stats, struct task_struct *p); 26 extern void acct_update_integrals(struct task_struct *tsk); 27 extern void acct_account_cputime(struct task_struct *tsk); 28 extern void acct_clear_integrals(struct task_struct *tsk); 30 static inline void xacct_add_tsk(struct taskstats *stats, struct task_struct *p) in xacct_add_tsk() 32 static inline void acct_update_integrals(struct task_struct *tsk) in acct_update_integrals() 34 static inline void acct_account_cputime(struct task_struct *tsk) in acct_account_cputime() 36 static inline void acct_clear_integrals(struct task_struct *tsk) in acct_clear_integrals()
|
A D | freezer.h | 27 extern bool frozen(struct task_struct *p); 29 extern bool freezing_slow_path(struct task_struct *p); 34 static inline bool freezing(struct task_struct *p) in freezing() 43 extern void __thaw_task(struct task_struct *t); 61 extern bool freeze_task(struct task_struct *p); 65 extern bool cgroup_freezing(struct task_struct *task); 67 static inline bool cgroup_freezing(struct task_struct *task) in cgroup_freezing() 74 static inline bool frozen(struct task_struct *p) { return false; } in frozen() 75 static inline bool freezing(struct task_struct *p) { return false; } in freezing() 76 static inline void __thaw_task(struct task_struct *t) {} in __thaw_task()
|
/linux-6.3-rc2/arch/riscv/kernel/ |
A D | asm-offsets.c | 22 OFFSET(TASK_THREAD_RA, task_struct, thread.ra); in asm_offsets() 23 OFFSET(TASK_THREAD_SP, task_struct, thread.sp); in asm_offsets() 24 OFFSET(TASK_THREAD_S0, task_struct, thread.s[0]); in asm_offsets() 25 OFFSET(TASK_THREAD_S1, task_struct, thread.s[1]); in asm_offsets() 26 OFFSET(TASK_THREAD_S2, task_struct, thread.s[2]); in asm_offsets() 27 OFFSET(TASK_THREAD_S3, task_struct, thread.s[3]); in asm_offsets() 279 offsetof(struct task_struct, thread.ra) in asm_offsets() 280 - offsetof(struct task_struct, thread.ra) in asm_offsets() 283 offsetof(struct task_struct, thread.sp) in asm_offsets() 284 - offsetof(struct task_struct, thread.ra) in asm_offsets() [all …]
|
/linux-6.3-rc2/include/linux/sched/ |
A D | task.h | 13 struct task_struct; 53 extern struct task_struct init_task; 62 extern void sched_post_fork(struct task_struct *p); 63 extern void sched_dead(struct task_struct *p); 73 extern void release_task(struct task_struct * p); 80 extern void exit_thread(struct task_struct *tsk); 88 extern void exit_files(struct task_struct *); 89 extern void exit_itimers(struct task_struct *); 93 struct task_struct *fork_idle(int); 99 extern void free_task(struct task_struct *tsk); [all …]
|
A D | signal.h | 76 struct task_struct *task; 103 struct task_struct *curr_target; 115 struct task_struct *group_exec_task; 283 struct task_struct *task = current; in kernel_dequeue_signal() 314 , struct task_struct *t); 319 , struct task_struct *t); 331 struct task_struct *t); 344 extern void __wake_up_parent(struct task_struct *p, struct task_struct *parent); 716 bool same_thread_group(struct task_struct *p1, struct task_struct *p2) in same_thread_group() 721 static inline struct task_struct *next_thread(const struct task_struct *p) in next_thread() [all …]
|
A D | cputime.h | 12 extern bool task_cputime(struct task_struct *t, 14 extern u64 task_gtime(struct task_struct *t); 16 static inline bool task_cputime(struct task_struct *t, in task_cputime() 24 static inline u64 task_gtime(struct task_struct *t) in task_gtime() 31 static inline void task_cputime_scaled(struct task_struct *t, in task_cputime_scaled() 39 static inline void task_cputime_scaled(struct task_struct *t, in task_cputime_scaled() 56 void thread_group_sample_cputime(struct task_struct *tsk, u64 *samples); 119 static inline void account_group_user_time(struct task_struct *tsk, in account_group_user_time() 140 static inline void account_group_system_time(struct task_struct *tsk, in account_group_system_time() 161 static inline void account_group_exec_runtime(struct task_struct *tsk, in account_group_exec_runtime() [all …]
|
A D | rt.h | 7 struct task_struct; 16 static inline int rt_task(struct task_struct *p) in rt_task() 21 static inline bool task_is_realtime(struct task_struct *tsk) in task_is_realtime() 36 static inline struct task_struct *rt_mutex_get_top_task(struct task_struct *p) in rt_mutex_get_top_task() 40 extern void rt_mutex_setprio(struct task_struct *p, struct task_struct *pi_task); 41 extern void rt_mutex_adjust_pi(struct task_struct *p); 43 static inline struct task_struct *rt_mutex_get_top_task(struct task_struct *task) in rt_mutex_get_top_task()
|
A D | task_stack.h | 19 static __always_inline void *task_stack_page(const struct task_struct *task) in task_stack_page() 26 static inline unsigned long *end_of_stack(const struct task_struct *task) in end_of_stack() 39 static inline void setup_thread_stack(struct task_struct *p, struct task_struct *org) in setup_thread_stack() 54 static inline unsigned long *end_of_stack(struct task_struct *p) in end_of_stack() 66 static inline void *try_get_task_stack(struct task_struct *tsk) in try_get_task_stack() 72 extern void put_task_stack(struct task_struct *tsk); 74 static inline void *try_get_task_stack(struct task_struct *tsk) in try_get_task_stack() 79 static inline void put_task_stack(struct task_struct *tsk) {} in put_task_stack() 82 void exit_task_stack_account(struct task_struct *tsk); 97 static inline unsigned long stack_not_used(struct task_struct *p) in stack_not_used() [all …]
|
/linux-6.3-rc2/arch/powerpc/kernel/ptrace/ |
A D | ptrace-decl.h | 67 int fpr_set(struct task_struct *target, const struct user_regset *regset, 75 int vsr_set(struct task_struct *target, const struct user_regset *regset, 81 int vr_active(struct task_struct *target, const struct user_regset *regset); 83 int vr_set(struct task_struct *target, const struct user_regset *regset, 91 int evr_set(struct task_struct *target, const struct user_regset *regset, 97 int gpr32_get_common(struct task_struct *target, 101 int gpr32_set_common(struct task_struct *target, 110 void flush_tmregs_to_thread(struct task_struct *tsk); 112 static inline void flush_tmregs_to_thread(struct task_struct *tsk) { } in flush_tmregs_to_thread() 173 int ptrace_get_debugreg(struct task_struct *child, unsigned long addr, [all …]
|
/linux-6.3-rc2/arch/powerpc/include/asm/ |
A D | switch_to.h | 12 struct task_struct; 15 extern struct task_struct *__switch_to(struct task_struct *, 16 struct task_struct *); 37 extern void giveup_all(struct task_struct *); 41 extern void flush_fp_to_thread(struct task_struct *); 42 extern void giveup_fpu(struct task_struct *); 43 extern void save_fpu(struct task_struct *); 56 extern void giveup_altivec(struct task_struct *); 57 extern void save_altivec(struct task_struct *); 98 extern void giveup_spe(struct task_struct *); [all …]
|
/linux-6.3-rc2/arch/parisc/kernel/ |
A D | asm-offsets.c | 42 DEFINE(TASK_TI_FLAGS, offsetof(struct task_struct, thread_info.flags)); in main() 44 DEFINE(TASK_TI_CPU, offsetof(struct task_struct, thread_info.cpu)); in main() 46 DEFINE(TASK_STACK, offsetof(struct task_struct, stack)); in main() 49 DEFINE(TASK_REGS, offsetof(struct task_struct, thread.regs)); in main() 50 DEFINE(TASK_PT_PSW, offsetof(struct task_struct, thread.regs.gr[ 0])); in main() 51 DEFINE(TASK_PT_GR1, offsetof(struct task_struct, thread.regs.gr[ 1])); in main() 52 DEFINE(TASK_PT_GR2, offsetof(struct task_struct, thread.regs.gr[ 2])); in main() 53 DEFINE(TASK_PT_GR3, offsetof(struct task_struct, thread.regs.gr[ 3])); in main() 54 DEFINE(TASK_PT_GR4, offsetof(struct task_struct, thread.regs.gr[ 4])); in main() 55 DEFINE(TASK_PT_GR5, offsetof(struct task_struct, thread.regs.gr[ 5])); in main() [all …]
|
/linux-6.3-rc2/tools/testing/selftests/bpf/progs/ |
A D | task_kfunc_failure.c | 34 struct task_struct *acquired; in BPF_PROG() 52 struct task_struct *acquired, *stack_task = (struct task_struct *)&clone_flags; in BPF_PROG() 65 struct task_struct *acquired; in BPF_PROG() 78 struct task_struct *acquired; in BPF_PROG() 92 struct task_struct *acquired; in BPF_PROG() 107 struct task_struct *acquired; in BPF_PROG() 120 struct task_struct *kptr; in BPF_PROG() 155 struct task_struct *kptr; in BPF_PROG() 171 struct task_struct *kptr; in BPF_PROG() 191 struct task_struct *kptr; in BPF_PROG() [all …]
|
A D | task_kfunc_success.c | 27 static int test_acquire_release(struct task_struct *task) in test_acquire_release() 29 struct task_struct *acquired; in test_acquire_release() 73 struct task_struct *kptr; in BPF_PROG() 106 struct task_struct *kptr; in BPF_PROG() 144 struct task_struct *current, *acquired; in BPF_PROG() 156 static void lookup_compare_pid(const struct task_struct *p) in lookup_compare_pid() 158 struct task_struct *acquired; in lookup_compare_pid() 174 struct task_struct *acquired; in BPF_PROG() 186 struct task_struct *current, *acquired; in BPF_PROG() 197 struct task_struct *acquired; in is_pid_lookup_valid() [all …]
|
/linux-6.3-rc2/arch/mips/kernel/ |
A D | asm-offsets.c | 81 OFFSET(TASK_THREAD_INFO, task_struct, stack); in output_task_defines() 82 OFFSET(TASK_FLAGS, task_struct, flags); in output_task_defines() 83 OFFSET(TASK_MM, task_struct, mm); in output_task_defines() 84 OFFSET(TASK_PID, task_struct, pid); in output_task_defines() 111 OFFSET(THREAD_REG16, task_struct, thread.reg16); in output_thread_defines() 122 OFFSET(THREAD_STATUS, task_struct, in output_thread_defines() 125 OFFSET(THREAD_BVADDR, task_struct, \ in output_thread_defines() 127 OFFSET(THREAD_BUADDR, task_struct, \ in output_thread_defines() 129 OFFSET(THREAD_ECODE, task_struct, \ in output_thread_defines() 138 OFFSET(THREAD_FPU, task_struct, thread.fpu); in output_thread_fpu_defines() [all …]
|
/linux-6.3-rc2/arch/powerpc/kernel/ |
A D | signal.h | 17 struct task_struct *tsk); 20 struct task_struct *tsk); 39 struct task_struct *task); 41 struct task_struct *task); 52 struct task_struct *__t = task; \ 62 struct task_struct *__t = task; \ 72 struct task_struct *__t = task; \ 82 struct task_struct *__t = task; \ 93 struct task_struct *__t = task; \ 195 struct task_struct *tsk); [all …]
|
/linux-6.3-rc2/kernel/sched/ |
A D | stats.h | 47 void __update_stats_wait_start(struct rq *rq, struct task_struct *p, 50 void __update_stats_wait_end(struct rq *rq, struct task_struct *p, 111 void psi_task_switch(struct task_struct *prev, struct task_struct *next, 113 void psi_account_irqtime(struct task_struct *task, u32 delta); 159 static inline void psi_ttwu_dequeue(struct task_struct *p) in psi_ttwu_dequeue() 178 static inline void psi_sched_switch(struct task_struct *prev, in psi_sched_switch() 179 struct task_struct *next, in psi_sched_switch() 191 static inline void psi_ttwu_dequeue(struct task_struct *p) {} in psi_ttwu_dequeue() 192 static inline void psi_sched_switch(struct task_struct *prev, in psi_sched_switch() 193 struct task_struct *next, in psi_sched_switch() [all …]
|
A D | stop_task.c | 13 select_task_rq_stop(struct task_struct *p, int cpu, int flags) in select_task_rq_stop() 19 balance_stop(struct rq *rq, struct task_struct *prev, struct rq_flags *rf) in balance_stop() 26 check_preempt_curr_stop(struct rq *rq, struct task_struct *p, int flags) in check_preempt_curr_stop() 36 static struct task_struct *pick_task_stop(struct rq *rq) in pick_task_stop() 44 static struct task_struct *pick_next_task_stop(struct rq *rq) in pick_next_task_stop() 46 struct task_struct *p = pick_task_stop(rq); in pick_next_task_stop() 55 enqueue_task_stop(struct rq *rq, struct task_struct *p, int flags) in enqueue_task_stop() 61 dequeue_task_stop(struct rq *rq, struct task_struct *p, int flags) in dequeue_task_stop() 73 struct task_struct *curr = rq->curr; in put_prev_task_stop() 99 static void switched_to_stop(struct rq *rq, struct task_struct *p) in switched_to_stop() [all …]
|
/linux-6.3-rc2/arch/loongarch/kernel/ |
A D | asm-offsets.c | 66 OFFSET(TASK_STATE, task_struct, __state); in output_task_defines() 67 OFFSET(TASK_THREAD_INFO, task_struct, stack); in output_task_defines() 68 OFFSET(TASK_FLAGS, task_struct, flags); in output_task_defines() 69 OFFSET(TASK_MM, task_struct, mm); in output_task_defines() 70 OFFSET(TASK_PID, task_struct, pid); in output_task_defines() 111 OFFSET(THREAD_CSRCRMD, task_struct, in output_thread_defines() 113 OFFSET(THREAD_CSRPRMD, task_struct, in output_thread_defines() 115 OFFSET(THREAD_CSREUEN, task_struct, in output_thread_defines() 117 OFFSET(THREAD_CSRECFG, task_struct, in output_thread_defines() 129 OFFSET(THREAD_BVADDR, task_struct, \ in output_thread_defines() [all …]
|
/linux-6.3-rc2/arch/riscv/include/asm/ |
A D | switch_to.h | 17 extern void __fstate_save(struct task_struct *save_to); 18 extern void __fstate_restore(struct task_struct *restore_from); 25 static inline void fstate_off(struct task_struct *task, in fstate_off() 31 static inline void fstate_save(struct task_struct *task, in fstate_save() 40 static inline void fstate_restore(struct task_struct *task, in fstate_restore() 49 static inline void __switch_to_aux(struct task_struct *prev, in __switch_to_aux() 50 struct task_struct *next) in __switch_to_aux() 72 extern struct task_struct *__switch_to(struct task_struct *, 73 struct task_struct *); 77 struct task_struct *__prev = (prev); \ [all …]
|