/linux/include/linux/ |
A D | vtime.h | 12 extern void vtime_account_kernel(struct task_struct *tsk); 13 extern void vtime_account_idle(struct task_struct *tsk); 17 extern void vtime_user_enter(struct task_struct *tsk); 18 extern void vtime_user_exit(struct task_struct *tsk); 19 extern void vtime_guest_enter(struct task_struct *tsk); 20 extern void vtime_guest_exit(struct task_struct *tsk); 32 extern void vtime_account_softirq(struct task_struct *tsk); 33 extern void vtime_account_hardirq(struct task_struct *tsk); 34 extern void vtime_flush(struct task_struct *tsk); 39 static inline void vtime_flush(struct task_struct *tsk) { } in vtime_flush() [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 | pid.h | 79 void do_notify_pidfd(struct task_struct *task); 105 extern void exchange_tids(struct task_struct *task, struct task_struct *old); 106 extern void transfer_pid(struct task_struct *old, struct task_struct *new, 204 struct task_struct *tg___ = task; \ 230 static inline pid_t task_pid_nr(struct task_struct *tsk) in task_pid_nr() 240 static inline pid_t task_pid_vnr(struct task_struct *tsk) in task_pid_vnr() 246 static inline pid_t task_tgid_nr(struct task_struct *tsk) in task_tgid_nr() 261 static inline int pid_alive(const struct task_struct *p) in pid_alive() 271 static inline pid_t task_pgrp_vnr(struct task_struct *tsk) in task_pgrp_vnr() 315 static inline pid_t task_pgrp_nr(struct task_struct *tsk) in task_pgrp_nr() [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 | kthread.h | 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); 89 int kthread_stop_put(struct task_struct *k); 94 void *kthread_func(struct task_struct *k); 95 void *kthread_data(struct task_struct *k); 97 int kthread_park(struct task_struct *k); 98 void kthread_unpark(struct task_struct *k); 104 extern struct task_struct *kthreadd_task; [all …]
|
A D | sched.h | 82 struct task_struct; 778 struct task_struct { struct 812 struct task_struct *last_wakee; argument 1032 struct task_struct __rcu *real_parent; argument 1035 struct task_struct __rcu *parent; argument 1042 struct task_struct *group_leader; argument 1193 struct task_struct *pi_top_task; argument 1522 struct task_struct *oom_reaper_list; argument 1808 extern int dup_user_cpus_ptr(struct task_struct *dst, struct task_struct *src, int node); 1824 static inline int dup_user_cpus_ptr(struct task_struct *dst, struct task_struct *src, int node) in dup_user_cpus_ptr() [all …]
|
A D | cgroup.h | 65 struct task_struct *cur_task; 111 int cgroup_attach_task_all(struct task_struct *from, struct task_struct *); 122 struct pid *pid, struct task_struct *tsk); 124 void cgroup_fork(struct task_struct *p); 125 extern int cgroup_can_fork(struct task_struct *p, 127 extern void cgroup_cancel_fork(struct task_struct *p, 129 extern void cgroup_post_fork(struct task_struct *p, 131 void cgroup_exit(struct task_struct *p); 132 void cgroup_release(struct task_struct *p); 133 void cgroup_free(struct task_struct *p); [all …]
|
A D | delayacct.h | 71 extern void __delayacct_tsk_init(struct task_struct *); 72 extern void __delayacct_tsk_exit(struct task_struct *); 74 extern void __delayacct_blkio_end(struct task_struct *); 76 extern __u64 __delayacct_blkio_ticks(struct task_struct *); 89 static inline void delayacct_tsk_init(struct task_struct *tsk) in delayacct_tsk_init() 100 static inline void delayacct_tsk_free(struct task_struct *tsk) in delayacct_tsk_free() 116 static inline void delayacct_blkio_end(struct task_struct *p) in delayacct_blkio_end() 234 static inline void delayacct_tsk_init(struct task_struct *tsk) in delayacct_tsk_init() 236 static inline void delayacct_tsk_free(struct task_struct *tsk) in delayacct_tsk_free() 240 static inline void delayacct_blkio_end(struct task_struct *p) in delayacct_blkio_end() [all …]
|
A D | cpuset.h | 73 extern void inc_dl_tasks_cs(struct task_struct *task); 74 extern void dec_dl_tasks_cs(struct task_struct *task); 78 extern bool cpuset_cpus_allowed_fallback(struct task_struct *p); 80 extern nodemask_t cpuset_mems_allowed(struct task_struct *p); 100 const struct task_struct *tsk2); 115 struct task_struct *task); 117 struct pid *pid, struct task_struct *tsk); 190 static inline void inc_dl_tasks_cs(struct task_struct *task) { } in inc_dl_tasks_cs() 195 static inline void cpuset_cpus_allowed(struct task_struct *p, in cpuset_cpus_allowed() 235 const struct task_struct *tsk2) in cpuset_mems_allowed_intersects() [all …]
|
/linux/include/linux/sched/ |
A D | task.h | 15 struct task_struct; 58 extern struct task_struct init_task; 69 extern void sched_dead(struct task_struct *p); 79 extern void release_task(struct task_struct * p); 86 extern void exit_thread(struct task_struct *tsk); 94 extern void exit_files(struct task_struct *); 95 extern void exit_itimers(struct task_struct *); 101 struct task_struct *fork_idle(int); 108 extern void free_task(struct task_struct *tsk); 117 static inline struct task_struct *get_task_struct(struct task_struct *t) in get_task_struct() [all …]
|
A D | signal.h | 77 struct task_struct *task; 104 struct task_struct *curr_target; 116 struct task_struct *group_exec_task; 283 struct task_struct *task = current; in kernel_dequeue_signal() 308 struct task_struct *t); 322 struct task_struct *t); 335 extern void __wake_up_parent(struct task_struct *p, struct task_struct *parent); 707 bool same_thread_group(struct task_struct *p1, struct task_struct *p2) in same_thread_group() 715 static inline struct task_struct *__next_thread(struct task_struct *p) in __next_thread() 719 struct task_struct, 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 | task_stack.h | 21 static __always_inline void *task_stack_page(const struct task_struct *task) in task_stack_page() 41 static inline void setup_thread_stack(struct task_struct *p, struct task_struct *org) in setup_thread_stack() 56 static inline unsigned long *end_of_stack(struct task_struct *p) in end_of_stack() 68 static inline void *try_get_task_stack(struct task_struct *tsk) in try_get_task_stack() 74 extern void put_task_stack(struct task_struct *tsk); 76 static inline void *try_get_task_stack(struct task_struct *tsk) in try_get_task_stack() 81 static inline void put_task_stack(struct task_struct *tsk) {} in put_task_stack() 84 void exit_task_stack_account(struct task_struct *tsk); 100 unsigned long stack_not_used(struct task_struct *p); 102 static inline unsigned long stack_not_used(struct task_struct *p) in stack_not_used() [all …]
|
/linux/arch/riscv/kernel/ |
A D | asm-offsets.c | 23 OFFSET(TASK_THREAD_RA, task_struct, thread.ra); in asm_offsets() 24 OFFSET(TASK_THREAD_SP, task_struct, thread.sp); in asm_offsets() 25 OFFSET(TASK_THREAD_S0, task_struct, thread.s[0]); in asm_offsets() 26 OFFSET(TASK_THREAD_S1, task_struct, thread.s[1]); in asm_offsets() 27 OFFSET(TASK_THREAD_S2, task_struct, thread.s[2]); in asm_offsets() 295 offsetof(struct task_struct, thread.ra) in asm_offsets() 296 - offsetof(struct task_struct, thread.ra) in asm_offsets() 299 offsetof(struct task_struct, thread.sp) in asm_offsets() 300 - offsetof(struct task_struct, thread.ra) in asm_offsets() 304 - offsetof(struct task_struct, thread.ra) in asm_offsets() [all …]
|
/linux/arch/powerpc/kernel/ptrace/ |
A D | ptrace-decl.h | 73 int fpr_set(struct task_struct *target, const struct user_regset *regset, 81 int vsr_set(struct task_struct *target, const struct user_regset *regset, 87 int vr_active(struct task_struct *target, const struct user_regset *regset); 89 int vr_set(struct task_struct *target, const struct user_regset *regset, 97 int evr_set(struct task_struct *target, const struct user_regset *regset, 103 int gpr32_get_common(struct task_struct *target, 107 int gpr32_set_common(struct task_struct *target, 116 void flush_tmregs_to_thread(struct task_struct *tsk); 118 static inline void flush_tmregs_to_thread(struct task_struct *tsk) { } in flush_tmregs_to_thread() 179 int ptrace_get_debugreg(struct task_struct *child, unsigned long addr, [all …]
|
/linux/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 *); 60 extern void giveup_altivec(struct task_struct *); 61 extern void save_altivec(struct task_struct *); 102 extern void giveup_spe(struct task_struct *); [all …]
|
/linux/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/tools/testing/selftests/bpf/progs/ |
A D | task_kfunc_failure.c | 34 struct task_struct *acquired; in BPF_PROG() 55 struct task_struct *acquired, *stack_task = (struct task_struct *)&clone_flags; in BPF_PROG() 71 struct task_struct *acquired; in BPF_PROG() 86 struct task_struct *acquired; in BPF_PROG() 106 struct task_struct *acquired; in BPF_PROG() 121 struct task_struct *acquired; in BPF_PROG() 135 struct task_struct *kptr; in BPF_PROG() 155 struct task_struct *acquired; in BPF_PROG() 184 struct task_struct *acquired = (struct task_struct *)&clone_flags; in BPF_PROG() 240 struct task_struct *acquired; in BPF_PROG() [all …]
|
A D | task_kfunc_success.c | 21 struct task_struct *bpf_task_acquire(struct task_struct *p) __ksym __weak; 23 struct task_struct *bpf_task_acquire___one(struct task_struct *task) __ksym __weak; 25 struct task_struct *bpf_task_acquire___two(struct task_struct *p, void *ctx) __ksym __weak; 41 struct task_struct *acquired = NULL; in test_acquire_release() 69 struct task_struct *acquired = NULL; in BPF_PROG() 146 struct task_struct *kptr, *acquired; in BPF_PROG() 230 struct task_struct *kptr; in BPF_PROG() 268 struct task_struct *current, *acquired; in BPF_PROG() 285 struct task_struct *acquired; in lookup_compare_pid() 320 struct task_struct *acquired; in is_pid_lookup_valid() [all …]
|
A D | verifier_global_ptr_args.c | 12 extern struct task_struct *bpf_task_acquire(struct task_struct *p) __ksym __weak; 13 extern void bpf_task_release(struct task_struct *p) __ksym __weak; 33 struct task_struct *t1 = bpf_get_current_task_btf(); in trusted_task_arg_nullable() 34 struct task_struct *t2 = bpf_task_acquire(t1); in trusted_task_arg_nullable() 79 struct task_struct *t = bpf_get_current_task_btf(); in trusted_task_arg_nonnull_fail2() 80 struct task_struct *nullable; in trusted_task_arg_nonnull_fail2() 100 struct task_struct *t = bpf_get_current_task_btf(); in trusted_task_arg_nonnull() 142 struct task_struct *t = bpf_get_current_task_btf(); in flavor_ptr_nonnull() 147 __weak int subprog_trusted_destroy(struct task_struct *task __arg_trusted) in subprog_trusted_destroy() 164 struct task_struct *owned; in subprog_trusted_acq_rel() [all …]
|
/linux/arch/mips/kernel/ |
A D | asm-offsets.c | 83 OFFSET(TASK_THREAD_INFO, task_struct, stack); in output_task_defines() 84 OFFSET(TASK_FLAGS, task_struct, flags); in output_task_defines() 85 OFFSET(TASK_MM, task_struct, mm); in output_task_defines() 86 OFFSET(TASK_PID, task_struct, pid); in output_task_defines() 116 OFFSET(THREAD_REG16, task_struct, thread.reg16); in output_thread_defines() 127 OFFSET(THREAD_STATUS, task_struct, in output_thread_defines() 130 OFFSET(THREAD_BVADDR, task_struct, \ in output_thread_defines() 132 OFFSET(THREAD_BUADDR, task_struct, \ in output_thread_defines() 134 OFFSET(THREAD_ECODE, task_struct, \ in output_thread_defines() 144 OFFSET(THREAD_FPU, task_struct, thread.fpu); in output_thread_fpu_defines() [all …]
|
/linux/tools/testing/selftests/sched_ext/ |
A D | maximal.bpf.c | 37 void BPF_STRUCT_OPS(maximal_running, struct task_struct *p) in BPF_STRUCT_OPS() 46 bool BPF_STRUCT_OPS(maximal_yield, struct task_struct *from, in BPF_STRUCT_OPS() 47 struct task_struct *to) in BPF_STRUCT_OPS() 52 bool BPF_STRUCT_OPS(maximal_core_sched_before, struct task_struct *a, in BPF_STRUCT_OPS() 53 struct task_struct *b) in BPF_STRUCT_OPS() 61 void BPF_STRUCT_OPS(maximal_set_cpumask, struct task_struct *p, in BPF_STRUCT_OPS() 82 s32 BPF_STRUCT_OPS(maximal_init_task, struct task_struct *p, in BPF_STRUCT_OPS() 88 void BPF_STRUCT_OPS(maximal_enable, struct task_struct *p) in BPF_STRUCT_OPS() 91 void BPF_STRUCT_OPS(maximal_exit_task, struct task_struct *p, in BPF_STRUCT_OPS() 95 void BPF_STRUCT_OPS(maximal_disable, struct task_struct *p) in BPF_STRUCT_OPS() [all …]
|
/linux/kernel/sched/ |
A D | stats.h | 111 void psi_task_switch(struct task_struct *prev, struct task_struct *next, 114 void psi_account_irqtime(struct rq *rq, struct task_struct *curr, struct task_struct *prev); 117 struct task_struct *prev) {} in psi_account_irqtime() 181 static inline void psi_ttwu_dequeue(struct task_struct *p) in psi_ttwu_dequeue() 200 static inline void psi_sched_switch(struct task_struct *prev, in psi_sched_switch() 201 struct task_struct *next, in psi_sched_switch() 213 static inline void psi_ttwu_dequeue(struct task_struct *p) {} in psi_ttwu_dequeue() 214 static inline void psi_sched_switch(struct task_struct *prev, in psi_sched_switch() 215 struct task_struct *next, in psi_sched_switch() 218 struct task_struct *prev) {} in psi_account_irqtime() [all …]
|
A D | ext.h | 13 void scx_pre_fork(struct task_struct *p); 14 int scx_fork(struct task_struct *p); 15 void scx_post_fork(struct task_struct *p); 16 void scx_cancel_fork(struct task_struct *p); 20 int scx_check_setscheduler(struct task_struct *p, int policy); 32 static inline bool task_on_scx(const struct task_struct *p) in task_on_scx() 38 bool scx_prio_less(const struct task_struct *a, const struct task_struct *b, 45 static inline void scx_pre_fork(struct task_struct *p) {} in scx_pre_fork() 47 static inline void scx_post_fork(struct task_struct *p) {} in scx_post_fork() 76 void scx_move_task(struct task_struct *p); [all …]
|
/linux/arch/powerpc/kernel/ |
A D | signal.h | 14 struct task_struct *tsk); 17 struct task_struct *tsk); 36 struct task_struct *task); 38 struct task_struct *task); 49 struct task_struct *__t = task; \ 59 struct task_struct *__t = task; \ 69 struct task_struct *__t = task; \ 79 struct task_struct *__t = task; \ 90 struct task_struct *__t = task; \ 192 struct task_struct *tsk); [all …]
|