/linux-6.12.1/include/linux/sched/ |
D | task.h | 15 struct task_struct; 58 extern struct task_struct init_task; 62 extern asmlinkage void schedule_tail(struct task_struct *prev); 63 extern void init_idle(struct task_struct *idle, int cpu); 65 extern int sched_fork(unsigned long clone_flags, struct task_struct *p); 66 extern int sched_cgroup_fork(struct task_struct *p, struct kernel_clone_args *kargs); 67 extern void sched_cancel_fork(struct task_struct *p); 68 extern void sched_post_fork(struct task_struct *p); 69 extern void sched_dead(struct task_struct *p); 79 extern void release_task(struct task_struct * p); [all …]
|
D | signal.h | 77 struct task_struct *task; 104 struct task_struct *curr_target; 116 struct task_struct *group_exec_task; 276 extern void flush_signals(struct task_struct *); 277 extern void ignore_signals(struct task_struct *); 278 extern void flush_signal_handlers(struct task_struct *, int force_default); 283 struct task_struct *task = current; in kernel_dequeue_signal() 308 struct task_struct *t); 310 int send_sig_fault(int sig, int code, void __user *addr, struct task_struct *t); 313 int send_sig_mceerr(int code, void __user *, short, struct task_struct *); [all …]
|
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() 47 extern void task_cputime_adjusted(struct task_struct *p, u64 *ut, u64 *st); 48 extern void thread_group_cputime_adjusted(struct task_struct *p, u64 *ut, u64 *st); 55 void thread_group_cputime(struct task_struct *tsk, struct task_cputime *times); 56 void thread_group_sample_cputime(struct task_struct *tsk, u64 *samples); [all …]
|
D | task_stack.h | 21 static __always_inline void *task_stack_page(const struct task_struct *task) in task_stack_page() 28 static __always_inline unsigned long *end_of_stack(const struct task_struct *task) in end_of_stack() 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); [all …]
|
/linux-6.12.1/include/linux/ |
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); 21 extern void vtime_init_idle(struct task_struct *tsk, int cpu); 23 static inline void vtime_user_enter(struct task_struct *tsk) { } in vtime_user_enter() 24 static inline void vtime_user_exit(struct task_struct *tsk) { } in vtime_user_exit() 25 static inline void vtime_guest_enter(struct task_struct *tsk) { } in vtime_guest_enter() [all …]
|
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); 27 void proc_ptrace_connector(struct task_struct *task, int which_id); 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() [all …]
|
D | pid.h | 77 struct task_struct *pidfd_get_task(int pidfd, unsigned int *flags); 79 void do_notify_pidfd(struct task_struct *task); 89 extern struct task_struct *pid_task(struct pid *pid, enum pid_type); 94 extern struct task_struct *get_pid_task(struct pid *pid, enum pid_type); 96 extern struct pid *get_task_pid(struct task_struct *task, enum pid_type type); 101 extern void attach_pid(struct task_struct *task, enum pid_type); 102 extern void detach_pid(struct task_struct *task, enum pid_type); 103 extern void change_pid(struct task_struct *task, enum pid_type, 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, [all …]
|
D | ptrace.h | 20 extern int ptrace_access_vm(struct task_struct *tsk, unsigned long addr, 49 extern long arch_ptrace(struct task_struct *child, long request, 51 extern int ptrace_readdata(struct task_struct *tsk, unsigned long src, char __user *dst, int len); 52 extern int ptrace_writedata(struct task_struct *tsk, char __user *src, unsigned long dst, int len); 53 extern void ptrace_disable(struct task_struct *); 54 extern int ptrace_request(struct task_struct *child, long request, 57 extern void __ptrace_link(struct task_struct *child, 58 struct task_struct *new_parent, 60 extern void __ptrace_unlink(struct task_struct *child); 61 extern void exit_ptrace(struct task_struct *tracer, struct list_head *dead); [all …]
|
D | kthread.h | 11 struct task_struct *kthread_create_on_node(int (*threadfn)(void *data), 31 struct task_struct *kthread_create_on_cpu(int (*threadfn)(void *data), 36 void get_kthread_comm(char *buf, size_t buf_size, struct task_struct *tsk); 37 bool set_kthread_struct(struct task_struct *p); 39 void kthread_set_per_cpu(struct task_struct *k, int cpu); 40 bool kthread_is_per_cpu(struct task_struct *k); 53 struct task_struct *__k \ 72 static inline struct task_struct * 76 struct task_struct *p; in kthread_run_on_cpu() 85 void free_kthread_struct(struct task_struct *k); [all …]
|
D | sched.h | 82 struct task_struct; 606 typedef struct task_struct *(*dl_server_pick_f)(struct sched_dl_entity *); 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 1636 static inline unsigned int task_state_index(struct task_struct *tsk) in task_state_index() [all …]
|
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 …]
|
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 *); 75 extern int delayacct_add_tsk(struct taskstats *, struct task_struct *); 76 extern __u64 __delayacct_blkio_ticks(struct task_struct *); 87 extern void __delayacct_irq(struct task_struct *task, u32 delta); 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() 125 static inline __u64 delayacct_blkio_ticks(struct task_struct *tsk) in delayacct_blkio_ticks() [all …]
|
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); 77 extern void cpuset_cpus_allowed(struct task_struct *p, struct cpumask *mask); 78 extern bool cpuset_cpus_allowed_fallback(struct task_struct *p); 80 extern nodemask_t cpuset_mems_allowed(struct task_struct *p); 99 extern int cpuset_mems_allowed_intersects(const struct task_struct *tsk1, 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() [all …]
|
/linux-6.12.1/arch/riscv/kernel/ |
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() 28 OFFSET(TASK_THREAD_S3, task_struct, thread.s[3]); in asm_offsets() 29 OFFSET(TASK_THREAD_S4, task_struct, thread.s[4]); in asm_offsets() 30 OFFSET(TASK_THREAD_S5, task_struct, thread.s[5]); in asm_offsets() 31 OFFSET(TASK_THREAD_S6, task_struct, thread.s[6]); in asm_offsets() 32 OFFSET(TASK_THREAD_S7, task_struct, thread.s[7]); in asm_offsets() [all …]
|
/linux-6.12.1/arch/powerpc/kernel/ptrace/ |
D | ptrace-decl.h | 73 int fpr_set(struct task_struct *target, const struct user_regset *regset, 79 int vsr_active(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, 95 int evr_active(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); [all …]
|
/linux-6.12.1/arch/parisc/kernel/ |
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() 47 DEFINE(TASK_PAGEFAULT_DISABLED, offsetof(struct task_struct, pagefault_disabled)); 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() [all …]
|
/linux-6.12.1/arch/powerpc/include/asm/ |
D | switch_to.h | 12 struct task_struct; 15 extern struct task_struct *__switch_to(struct task_struct *, 16 struct task_struct *); 19 extern struct task_struct *_switch(struct thread_struct *prev, 36 extern void flush_all_to_thread(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 *); 49 static inline void save_fpu(struct task_struct *t) { } in save_fpu() [all …]
|
/linux-6.12.1/tools/testing/selftests/bpf/progs/ |
D | task_kfunc_failure.c | 19 static struct __tasks_kfunc_map_value *insert_lookup_task(struct task_struct *task) in insert_lookup_task() 32 int BPF_PROG(task_kfunc_acquire_untrusted, struct task_struct *task, u64 clone_flags) in BPF_PROG() 34 struct task_struct *acquired; in BPF_PROG() 53 int BPF_PROG(task_kfunc_acquire_fp, struct task_struct *task, u64 clone_flags) in BPF_PROG() 55 struct task_struct *acquired, *stack_task = (struct task_struct *)&clone_flags; in BPF_PROG() 58 acquired = bpf_task_acquire((struct task_struct *)&stack_task); in BPF_PROG() 69 int BPF_PROG(task_kfunc_acquire_unsafe_kretprobe, struct task_struct *task, u64 clone_flags) in BPF_PROG() 71 struct task_struct *acquired; in BPF_PROG() 84 int BPF_PROG(task_kfunc_acquire_unsafe_kretprobe_rcu, struct task_struct *task, u64 clone_flags) in BPF_PROG() 86 struct task_struct *acquired; in BPF_PROG() [all …]
|
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; 27 struct task_struct *bpf_task_acquire___three(void *ctx) __ksym __weak; 39 static int test_acquire_release(struct task_struct *task) in test_acquire_release() 41 struct task_struct *acquired = NULL; in test_acquire_release() 67 int BPF_PROG(test_task_kfunc_flavor_relo, struct task_struct *task, u64 clone_flags) in BPF_PROG() 69 struct task_struct *acquired = NULL; in BPF_PROG() 97 int BPF_PROG(test_task_kfunc_flavor_relo_not_found, struct task_struct *task, u64 clone_flags) in BPF_PROG() 111 int BPF_PROG(test_task_acquire_release_argument, struct task_struct *task, u64 clone_flags) in BPF_PROG() [all …]
|
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; 15 __weak int subprog_trusted_task_nullable(struct task_struct *task __arg_trusted __arg_nullable) in subprog_trusted_task_nullable() 22 __weak int subprog_trusted_task_nullable_extra_layer(struct task_struct *task __arg_trusted __arg_n… in subprog_trusted_task_nullable_extra_layer() 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() 59 __weak int subprog_trusted_task_nonnull(struct task_struct *task __arg_trusted) in subprog_trusted_task_nonnull() 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() [all …]
|
/linux-6.12.1/arch/mips/kernel/ |
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() 88 OFFSET(TASK_STACK_CANARY, task_struct, stack_canary); in output_task_defines() 90 DEFINE(TASK_STRUCT_SIZE, sizeof(struct task_struct)); in output_task_defines() 116 OFFSET(THREAD_REG16, task_struct, thread.reg16); in output_thread_defines() 117 OFFSET(THREAD_REG17, task_struct, thread.reg17); in output_thread_defines() 118 OFFSET(THREAD_REG18, task_struct, thread.reg18); in output_thread_defines() 119 OFFSET(THREAD_REG19, task_struct, thread.reg19); in output_thread_defines() [all …]
|
/linux-6.12.1/tools/testing/selftests/sched_ext/ |
D | maximal.bpf.c | 15 s32 BPF_STRUCT_OPS(maximal_select_cpu, struct task_struct *p, s32 prev_cpu, in BPF_STRUCT_OPS() 21 void BPF_STRUCT_OPS(maximal_enqueue, struct task_struct *p, u64 enq_flags) in BPF_STRUCT_OPS() 26 void BPF_STRUCT_OPS(maximal_dequeue, struct task_struct *p, u64 deq_flags) in BPF_STRUCT_OPS() 29 void BPF_STRUCT_OPS(maximal_dispatch, s32 cpu, struct task_struct *prev) in BPF_STRUCT_OPS() 34 void BPF_STRUCT_OPS(maximal_runnable, struct task_struct *p, u64 enq_flags) in BPF_STRUCT_OPS() 37 void BPF_STRUCT_OPS(maximal_running, struct task_struct *p) in BPF_STRUCT_OPS() 40 void BPF_STRUCT_OPS(maximal_stopping, struct task_struct *p, bool runnable) in BPF_STRUCT_OPS() 43 void BPF_STRUCT_OPS(maximal_quiescent, struct task_struct *p, u64 deq_flags) 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() [all …]
|
/linux-6.12.1/kernel/sched/ |
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, 52 void __update_stats_enqueue_sleeper(struct rq *rq, struct task_struct *p, 110 void psi_task_change(struct task_struct *task, int clear, int set); 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); 116 static inline void psi_account_irqtime(struct rq *rq, struct task_struct *curr, in psi_account_irqtime() 117 struct task_struct *prev) {} in psi_account_irqtime() 130 static inline void psi_enqueue(struct task_struct *p, bool migrate) in psi_enqueue() 161 static inline void psi_dequeue(struct task_struct *p, bool migrate) in psi_dequeue() [all …]
|
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() 46 static inline int scx_fork(struct task_struct *p) { return 0; } in scx_fork() 47 static inline void scx_post_fork(struct task_struct *p) {} in scx_post_fork() [all …]
|
/linux-6.12.1/arch/powerpc/kernel/ |
D | signal.h | 10 void __user *get_sigframe(struct ksignal *ksig, struct task_struct *tsk, 14 struct task_struct *tsk); 17 struct task_struct *tsk); 36 struct task_struct *task); 38 struct task_struct *task); 39 extern unsigned long copy_vsx_from_user(struct task_struct *task, 41 extern unsigned long copy_ckvsx_from_user(struct task_struct *task, 43 unsigned long copy_fpr_to_user(void __user *to, struct task_struct *task); 44 unsigned long copy_ckfpr_to_user(void __user *to, struct task_struct *task); 45 unsigned long copy_fpr_from_user(struct task_struct *task, void __user *from); [all …]
|