| /linux/arch/riscv/kernel/ |
| H A D | asm-offsets.c | 24 OFFSET(TASK_THREAD_RA, task_struct, thread.ra); in asm_offsets() 25 OFFSET(TASK_THREAD_SP, task_struct, thread.sp); in asm_offsets() 26 OFFSET(TASK_THREAD_S0, task_struct, thread.s[0]); in asm_offsets() 27 OFFSET(TASK_THREAD_S1, task_struct, thread.s[1]); in asm_offsets() 28 OFFSET(TASK_THREAD_S2, task_struct, thread.s[2]); in asm_offsets() 29 OFFSET(TASK_THREAD_S3, task_struct, thread.s[3]); in asm_offsets() 30 OFFSET(TASK_THREAD_S4, task_struct, thread.s[4]); in asm_offsets() 31 OFFSET(TASK_THREAD_S5, task_struct, thread.s[5]); in asm_offsets() 32 OFFSET(TASK_THREAD_S6, task_struct, thread.s[6]); in asm_offsets() 33 OFFSET(TASK_THREAD_S7, task_struct, thread.s[7]); in asm_offsets() [all …]
|
| H A D | usercfi.c | 24 bool is_shstk_enabled(struct task_struct *task) in is_shstk_enabled() 29 bool is_shstk_allocated(struct task_struct *task) in is_shstk_allocated() 34 bool is_shstk_locked(struct task_struct *task) in is_shstk_locked() 39 void set_shstk_base(struct task_struct *task, unsigned long shstk_addr, unsigned long size) in set_shstk_base() 45 unsigned long get_shstk_base(struct task_struct *task, unsigned long *size) in get_shstk_base() 52 void set_active_shstk(struct task_struct *task, unsigned long shstk_addr) in set_active_shstk() 57 unsigned long get_active_shstk(struct task_struct *task) in get_active_shstk() 62 void set_shstk_status(struct task_struct *task, bool enable) in set_shstk_status() 77 void set_shstk_lock(struct task_struct *task, bool lock) in set_shstk_lock() 82 bool is_indir_lp_enabled(struct task_struct *task) in is_indir_lp_enabled() [all …]
|
| /linux/arch/powerpc/kernel/ptrace/ |
| H A 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/arch/parisc/kernel/ |
| H A D | asm-offsets.c | 43 DEFINE(TASK_TI_FLAGS, offsetof(struct task_struct, thread_info.flags)); in main() 45 DEFINE(TASK_TI_CPU, offsetof(struct task_struct, thread_info.cpu)); in main() 47 DEFINE(TASK_STACK, offsetof(struct task_struct, stack)); in main() 48 DEFINE(TASK_PAGEFAULT_DISABLED, offsetof(struct task_struct, pagefault_disabled)); in main() 50 DEFINE(TASK_REGS, offsetof(struct task_struct, thread.regs)); in main() 51 DEFINE(TASK_PT_PSW, offsetof(struct task_struct, thread.regs.gr[ 0])); in main() 52 DEFINE(TASK_PT_GR1, offsetof(struct task_struct, thread.regs.gr[ 1])); in main() 53 DEFINE(TASK_PT_GR2, offsetof(struct task_struct, thread.regs.gr[ 2])); in main() 54 DEFINE(TASK_PT_GR3, offsetof(struct task_struct, thread.regs.gr[ 3])); in main() 55 DEFINE(TASK_PT_GR4, offsetof(struct task_struct, thread.regs.gr[ 4])); in main() [all …]
|
| /linux/arch/powerpc/include/asm/ |
| H A 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/tools/testing/selftests/bpf/progs/ |
| H A D | task_kfunc_failure.c | 20 static struct __tasks_kfunc_map_value *insert_lookup_task(struct task_struct *task) in insert_lookup_task() 33 int BPF_PROG(task_kfunc_acquire_untrusted, struct task_struct *task, u64 clone_flags) in BPF_PROG() 35 struct task_struct *acquired; in BPF_PROG() 54 int BPF_PROG(task_kfunc_acquire_fp, struct task_struct *task, u64 clone_flags) in BPF_PROG() 56 struct task_struct *acquired, *stack_task = (struct task_struct *)&clone_flags; in BPF_PROG() 59 acquired = bpf_task_acquire((struct task_struct *)&stack_task); in BPF_PROG() 70 int BPF_PROG(task_kfunc_acquire_unsafe_kretprobe, struct task_struct *task, u64 clone_flags) in BPF_PROG() 72 struct task_struct *acquired; in BPF_PROG() 85 int BPF_PROG(task_kfunc_acquire_unsafe_kretprobe_rcu, struct task_struct *task, u64 clone_flags) in BPF_PROG() 87 struct task_struct *acquired; in BPF_PROG() [all …]
|
| H A D | task_kfunc_success.c | 22 struct task_struct *bpf_task_acquire(struct task_struct *p) __ksym __weak; 24 struct task_struct *bpf_task_acquire___one(struct task_struct *task) __ksym __weak; 26 struct task_struct *bpf_task_acquire___two(struct task_struct *p, void *ctx) __ksym __weak; 28 struct task_struct *bpf_task_acquire___three(void *ctx) __ksym __weak; 40 static int test_acquire_release(struct task_struct *task) in test_acquire_release() 42 struct task_struct *acquired = NULL; in test_acquire_release() 68 int BPF_PROG(test_task_kfunc_flavor_relo, struct task_struct *task, u64 clone_flags) in BPF_PROG() 70 struct task_struct *acquired = NULL; in BPF_PROG() 98 int BPF_PROG(test_task_kfunc_flavor_relo_not_found, struct task_struct *task, u64 clone_flags) in BPF_PROG() 112 int BPF_PROG(test_task_acquire_release_argument, struct task_struct *task, u64 clone_flags) in BPF_PROG() [all …]
|
| H 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; 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() 83 __weak int subprog_trusted_task_nonnull(struct task_struct *task __arg_trusted) in subprog_trusted_task_nonnull() 103 struct task_struct *t = bpf_get_current_task_btf(); in trusted_task_arg_nonnull_fail2() 104 struct task_struct *nullable; in trusted_task_arg_nonnull_fail2() 124 struct task_struct *t = bpf_get_current_task_btf(); in trusted_task_arg_nonnull() [all …]
|
| /linux/include/linux/ |
| H 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); 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 …]
|
| H A D | sched.h | 6 * Define 'struct task_struct' and provide the main scheduler 58 /* task_struct member predeclarations (sorted alphabetically): */ 89 struct task_struct; 275 * task when blocking on the lock is saved in task_struct::saved_state and 277 * serialized by task_struct::pi_lock against try_to_wake_up(). Any non RT 279 * redirected to operate on task_struct::saved_state to ensure that these 280 * are not dropped. On restore task_struct::saved_state is set to 353 extern void __trace_set_need_resched(struct task_struct *curr, int tif); 640 typedef struct task_struct *(*dl_server_pick_f)(struct sched_dl_entity *, struct rq_flags *rf); 835 struct task_struct { struct 849 saved_statetask_struct global() argument 872 last_wakeetask_struct global() argument 881 recent_used_cputask_struct global() argument 882 wake_cputask_struct global() argument 884 priotask_struct global() argument 885 static_priotask_struct global() argument 886 normal_priotask_struct global() argument 887 rt_prioritytask_struct global() argument 889 setask_struct global() argument 890 rttask_struct global() argument 891 dltask_struct global() argument 892 dl_servertask_struct global() argument 894 scxtask_struct global() argument 896 sched_classtask_struct global() argument 899 core_nodetask_struct global() argument 900 core_cookietask_struct global() argument 901 core_occupationtask_struct global() argument 905 sched_task_grouptask_struct global() argument 907 sched_throttle_worktask_struct global() argument 908 throttle_nodetask_struct global() argument 909 throttledtask_struct global() argument 919 uclamp_reqtask_struct global() argument 924 uclamptask_struct global() argument 927 statstask_struct global() argument 931 preempt_notifierstask_struct global() argument 935 btrace_seqtask_struct global() argument 938 policytask_struct global() argument 939 max_allowed_capacitytask_struct global() argument 940 nr_cpus_allowedtask_struct global() argument 941 cpus_ptrtask_struct global() argument 942 user_cpus_ptrtask_struct global() argument 943 cpus_masktask_struct global() argument 944 migration_pendingtask_struct global() argument 945 migration_disabledtask_struct global() argument 946 migration_flagstask_struct global() argument 949 rcu_read_lock_nestingtask_struct global() argument 950 rcu_read_unlock_specialtask_struct global() argument 951 rcu_node_entrytask_struct global() argument 952 rcu_blocked_nodetask_struct global() argument 956 rcu_tasks_nvcswtask_struct global() argument 957 rcu_tasks_holdouttask_struct global() argument 958 rcu_tasks_idxtask_struct global() argument 959 rcu_tasks_idle_cputask_struct global() argument 960 rcu_tasks_holdout_listtask_struct global() argument 961 rcu_tasks_exit_cputask_struct global() argument 962 rcu_tasks_exit_listtask_struct global() argument 966 trc_reader_nestingtask_struct global() argument 967 trc_reader_scptask_struct global() argument 971 rcu_trivial_preempt_nestingtask_struct global() argument 974 sched_infotask_struct global() argument 976 taskstask_struct global() argument 977 pushable_taskstask_struct global() argument 978 pushable_dl_taskstask_struct global() argument 980 mmtask_struct global() argument 981 active_mmtask_struct global() argument 983 exec_statetask_struct global() argument 985 exit_statetask_struct global() argument 986 exit_codetask_struct global() argument 987 exit_signaltask_struct global() argument 989 pdeath_signaltask_struct global() argument 991 jobctltask_struct global() argument 994 personalitytask_struct global() argument 997 sched_reset_on_forktask_struct global() argument 998 sched_contributes_to_loadtask_struct global() argument 999 sched_migratedtask_struct global() argument 1000 sched_task_hottask_struct global() argument 1020 sched_remote_wakeuptask_struct global() argument 1022 sched_rt_mutextask_struct global() argument 1026 in_execvetask_struct global() argument 1027 in_iowaittask_struct global() argument 1029 restore_sigmasktask_struct global() argument 1032 in_user_faulttask_struct global() argument 1036 in_lru_faulttask_struct global() argument 1039 brk_randomizedtask_struct global() argument 1043 no_cgroup_migrationtask_struct global() argument 1045 frozentask_struct global() argument 1048 use_memdelaytask_struct global() argument 1052 in_memstalltask_struct global() argument 1056 in_page_ownertask_struct global() argument 1060 in_eventfdtask_struct global() argument 1063 pasid_activatedtask_struct global() argument 1066 reported_split_locktask_struct global() argument 1070 in_thrashingtask_struct global() argument 1094 real_parenttask_struct global() argument 1097 parenttask_struct global() argument 1104 group_leadertask_struct global() argument 1112 ptracedtask_struct global() argument 1113 ptrace_entrytask_struct global() argument 1116 thread_pidtask_struct global() argument 1117 pid_linkstask_struct global() argument 1118 thread_nodetask_struct global() argument 1120 vfork_donetask_struct global() argument 1123 set_child_tidtask_struct global() argument 1126 clear_child_tidtask_struct global() argument 1129 worker_privatetask_struct global() argument 1131 utimetask_struct global() argument 1132 stimetask_struct global() argument 1134 utimescaledtask_struct global() argument 1135 stimescaledtask_struct global() argument 1137 gtimetask_struct global() argument 1138 prev_cputimetask_struct global() argument 1140 vtimetask_struct global() argument 1144 tick_dep_masktask_struct global() argument 1147 nvcswtask_struct global() argument 1148 nivcswtask_struct global() argument 1151 start_timetask_struct global() argument 1154 start_boottimetask_struct global() argument 1157 min_flttask_struct global() argument 1158 maj_flttask_struct global() argument 1161 posix_cputimerstask_struct global() argument 1164 posix_cputimers_worktask_struct global() argument 1170 ptracer_credtask_struct global() argument 1173 real_credtask_struct global() argument 1176 credtask_struct global() argument 1180 cached_requested_keytask_struct global() argument 1190 commtask_struct global() argument 1192 nameidatatask_struct global() argument 1195 sysvsemtask_struct global() argument 1196 sysvshmtask_struct global() argument 1199 last_switch_counttask_struct global() argument 1200 last_switch_timetask_struct global() argument 1203 real_fstask_struct global() argument 1204 fstask_struct global() argument 1207 filestask_struct global() argument 1210 io_uringtask_struct global() argument 1211 io_uring_restricttask_struct global() argument 1215 nsproxytask_struct global() argument 1218 signaltask_struct global() argument 1219 sighandtask_struct global() argument 1220 blockedtask_struct global() argument 1221 real_blockedtask_struct global() argument 1223 saved_sigmasktask_struct global() argument 1224 pendingtask_struct global() argument 1225 sas_ss_sptask_struct global() argument 1226 sas_ss_sizetask_struct global() argument 1227 sas_ss_flagstask_struct global() argument 1229 task_workstask_struct global() argument 1233 audit_contexttask_struct global() argument 1257 pi_top_tasktask_struct global() argument 1270 blocked_donortask_struct global() argument 1277 blockertask_struct global() argument 1281 non_block_counttask_struct global() argument 1285 irqtracetask_struct global() argument 1286 hardirq_threadedtask_struct global() argument 1287 hardirq_chain_keytask_struct global() argument 1288 softirqs_enabledtask_struct global() argument 1289 softirq_contexttask_struct global() argument 1290 irq_configtask_struct global() argument 1293 softirq_disable_cnttask_struct global() argument 1298 curr_chain_keytask_struct global() argument 1299 lockdep_depthtask_struct global() argument 1300 lockdep_recursiontask_struct global() argument 1301 lockdep_seqtask_struct global() argument 1302 held_lockstask_struct global() argument 1306 in_ubsantask_struct global() argument 1310 journal_infotask_struct global() argument 1313 bio_listtask_struct global() argument 1316 plugtask_struct global() argument 1319 reclaim_statetask_struct global() argument 1321 io_contexttask_struct global() argument 1324 capture_controltask_struct global() argument 1327 ptrace_messagetask_struct global() argument 1328 last_siginfotask_struct global() argument 1330 ioactask_struct global() argument 1333 psi_flagstask_struct global() argument 1337 acct_rss_mem1task_struct global() argument 1339 acct_vm_mem1task_struct global() argument 1341 acct_timexpdtask_struct global() argument 1345 mems_allowedtask_struct global() argument 1347 mems_allowed_seqtask_struct global() argument 1348 cpuset_mem_spread_rotortask_struct global() argument 1352 cgroupstask_struct global() argument 1354 cg_listtask_struct global() argument 1356 cg_dead_lnodetask_struct global() argument 1360 closidtask_struct global() argument 1361 rmidtask_struct global() argument 1364 futextask_struct global() argument 1367 perf_recursiontask_struct global() argument 1368 perf_event_ctxptask_struct global() argument 1369 perf_event_mutextask_struct global() argument 1370 perf_event_listtask_struct global() argument 1371 perf_ctx_datatask_struct global() argument 1373 ipi_masktask_struct global() argument 1375 preempt_disable_iptask_struct global() argument 1379 mempolicytask_struct global() argument 1380 il_prevtask_struct global() argument 1381 il_weighttask_struct global() argument 1382 pref_node_forktask_struct global() argument 1385 numa_scan_seqtask_struct global() argument 1386 numa_scan_periodtask_struct global() argument 1387 numa_scan_period_maxtask_struct global() argument 1388 numa_preferred_nidtask_struct global() argument 1389 numa_migrate_retrytask_struct global() argument 1391 node_stamptask_struct global() argument 1392 last_task_numa_placementtask_struct global() argument 1393 last_sum_exec_runtimetask_struct global() argument 1394 numa_worktask_struct global() argument 1404 numa_grouptask_struct global() argument 1420 numa_faultstask_struct global() argument 1421 total_numa_faultstask_struct global() argument 1429 numa_faults_localitytask_struct global() argument 1431 numa_pages_migratedtask_struct global() argument 1435 cache_worktask_struct global() argument 1436 preferred_llctask_struct global() argument 1438 pref_llc_queuedtask_struct global() argument 1441 rseqtask_struct global() argument 1442 mm_cidtask_struct global() argument 1444 tlb_ubctask_struct global() argument 1447 splice_pipetask_struct global() argument 1449 task_fragtask_struct global() argument 1452 lazy_mmu_statetask_struct global() argument 1456 delaystask_struct global() argument 1460 make_it_failtask_struct global() argument 1461 fail_nthtask_struct global() argument 1467 nr_dirtiedtask_struct global() argument 1468 nr_dirtied_pausetask_struct global() argument 1470 dirty_paused_whentask_struct global() argument 1473 latency_record_counttask_struct global() argument 1474 latency_recordtask_struct global() argument 1480 timer_slack_nstask_struct global() argument 1481 default_timer_slack_nstask_struct global() argument 1484 kasan_depthtask_struct global() argument 1488 kcsan_ctxtask_struct global() argument 1490 kcsan_save_irqtracetask_struct global() argument 1493 kcsan_stack_depthtask_struct global() argument 1498 kmsan_ctxtask_struct global() argument 1502 kunit_testtask_struct global() argument 1507 curr_ret_stacktask_struct global() argument 1508 curr_ret_depthtask_struct global() argument 1511 ret_stacktask_struct global() argument 1514 ftrace_timestamptask_struct global() argument 1515 ftrace_sleeptimetask_struct global() argument 1521 trace_overruntask_struct global() argument 1524 tracing_graph_pausetask_struct global() argument 1529 trace_recursiontask_struct global() argument 1536 kcov_modetask_struct global() argument 1539 kcov_sizetask_struct global() argument 1542 kcov_areatask_struct global() argument 1545 kcovtask_struct global() argument 1548 kcov_remotetask_struct global() argument 1551 kcov_handletask_struct global() argument 1554 kcov_sequencetask_struct global() argument 1557 kcov_softirqtask_struct global() argument 1560 kcov_saved_modetask_struct global() argument 1561 kcov_saved_sizetask_struct global() argument 1562 kcov_saved_areatask_struct global() argument 1563 kcov_saved_kcovtask_struct global() argument 1564 kcov_saved_sequencetask_struct global() argument 1569 memcg_in_oomtask_struct global() argument 1574 memcg_nr_pages_over_hightask_struct global() argument 1577 active_memcgtask_struct global() argument 1580 objcgtask_struct global() argument 1605 oom_reaper_listtask_struct global() argument 1606 oom_reaper_timertask_struct global() argument 1609 stack_vm_areatask_struct global() argument 1613 stack_refcounttask_struct global() argument 1616 patch_statetask_struct global() argument 1620 securitytask_struct global() argument 1624 bpf_storagetask_struct global() argument 1626 bpf_ctxtask_struct global() argument 1629 bpf_net_contexttask_struct global() argument 1632 lowest_stacktask_struct global() argument 1635 prev_lowest_stacktask_struct global() argument 1639 mce_vaddrtask_struct global() argument 1640 mce_kflagstask_struct global() argument 1641 mce_addrtask_struct global() argument 1642 mce_ripvtask_struct global() argument 1643 mce_whole_pagetask_struct global() argument 1644 __mce_reservedtask_struct global() argument 1645 mce_kill_metask_struct global() argument 1646 mce_counttask_struct global() argument 1650 kretprobe_instancestask_struct global() argument 1653 rethookstask_struct global() argument 1686 threadtask_struct global() argument [all...] |
| H A D | kthread.h | 21 static inline struct kthread *tsk_is_kthread(struct task_struct *p) in tsk_is_kthread() 29 struct task_struct *kthread_create_on_node(int (*threadfn)(void *data), 49 struct task_struct *kthread_create_on_cpu(int (*threadfn)(void *data), 54 void get_kthread_comm(char *buf, size_t buf_size, struct task_struct *tsk); 55 bool set_kthread_struct(struct task_struct *p); 57 void kthread_set_per_cpu(struct task_struct *k, int cpu); 58 bool kthread_is_per_cpu(struct task_struct *k); 71 struct task_struct *__k \ 90 static inline struct task_struct * 94 struct task_struct *p; in kthread_run_on_cpu() [all …]
|
| H 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()
|
| /linux/include/linux/sched/ |
| H A D | signal.h | 77 struct task_struct *task; 104 struct task_struct *curr_target; 116 struct task_struct *group_exec_task; 283 extern void flush_signals(struct task_struct *); 284 extern void ignore_signals(struct task_struct *); 285 extern void flush_signal_handlers(struct task_struct *, int force_default); 290 struct task_struct *task = current; in kernel_dequeue_signal() 315 struct task_struct *t); 317 int send_sig_fault(int sig, int code, void __user *addr, struct task_struct *t); 320 int send_sig_mceerr(int code, void __user *, short, struct task_struct *); [all …]
|
| H A 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(const 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 …]
|
| H A D | rt.h | 7 struct task_struct; 23 static inline bool rt_task(struct task_struct *p) in rt_task() 33 static inline bool rt_or_dl_task(struct task_struct *p) in rt_or_dl_task() 42 static inline bool rt_or_dl_task_policy(struct task_struct *tsk) in rt_or_dl_task_policy() 63 static inline struct task_struct *rt_mutex_get_top_task(struct task_struct *p) in rt_mutex_get_top_task() 67 extern void rt_mutex_setprio(struct task_struct *p, struct task_struct *pi_task); 68 extern void rt_mutex_adjust_pi(struct task_struct *p); 70 static inline struct task_struct *rt_mutex_get_top_task(struct task_struct *task) in rt_mutex_get_top_task()
|
| H A D | autogroup.h | 6 struct task_struct; 11 extern void sched_autogroup_create_attach(struct task_struct *p); 12 extern void sched_autogroup_detach(struct task_struct *p); 15 extern void sched_autogroup_exit_task(struct task_struct *p); 17 extern void proc_sched_autogroup_show_task(struct task_struct *p, struct seq_file *m); 18 extern int proc_sched_autogroup_set_nice(struct task_struct *p, int nice); 21 static inline void sched_autogroup_create_attach(struct task_struct *p) { } in sched_autogroup_create_attach() 22 static inline void sched_autogroup_detach(struct task_struct *p) { } in sched_autogroup_detach() 25 static inline void sched_autogroup_exit_task(struct task_struct *p) { } in sched_autogroup_exit_task()
|
| /linux/arch/mips/kernel/ |
| H A D | asm-offsets.c | 91 OFFSET(TASK_THREAD_INFO, task_struct, stack); in output_task_defines() 92 OFFSET(TASK_FLAGS, task_struct, flags); in output_task_defines() 93 OFFSET(TASK_MM, task_struct, mm); in output_task_defines() 94 OFFSET(TASK_PID, task_struct, pid); in output_task_defines() 96 OFFSET(TASK_STACK_CANARY, task_struct, stack_canary); in output_task_defines() 98 DEFINE(TASK_STRUCT_SIZE, sizeof(struct task_struct)); in output_task_defines() 124 OFFSET(THREAD_REG16, task_struct, thread.reg16); in output_thread_defines() 125 OFFSET(THREAD_REG17, task_struct, thread.reg17); in output_thread_defines() 126 OFFSET(THREAD_REG18, task_struct, thread.reg18); in output_thread_defines() 127 OFFSET(THREAD_REG19, task_struct, thread.reg19); in output_thread_defines() [all …]
|
| /linux/tools/testing/selftests/sched_ext/ |
| H A D | maximal.bpf.c | 17 s32 BPF_STRUCT_OPS(maximal_select_cpu, struct task_struct *p, s32 prev_cpu, in BPF_STRUCT_OPS() 23 void BPF_STRUCT_OPS(maximal_enqueue, struct task_struct *p, u64 enq_flags) in BPF_STRUCT_OPS() 28 void BPF_STRUCT_OPS(maximal_dequeue, struct task_struct *p, u64 deq_flags) in BPF_STRUCT_OPS() 31 void BPF_STRUCT_OPS(maximal_dispatch, s32 cpu, struct task_struct *prev) in BPF_STRUCT_OPS() 36 void BPF_STRUCT_OPS(maximal_runnable, struct task_struct *p, u64 enq_flags) in BPF_STRUCT_OPS() 39 void BPF_STRUCT_OPS(maximal_running, struct task_struct *p) in BPF_STRUCT_OPS() 42 void BPF_STRUCT_OPS(maximal_stopping, struct task_struct *p, bool runnable) in BPF_STRUCT_OPS() 45 void BPF_STRUCT_OPS(maximal_quiescent, struct task_struct *p, u64 deq_flags) in BPF_STRUCT_OPS() 48 bool BPF_STRUCT_OPS(maximal_yield, struct task_struct *from, in BPF_STRUCT_OPS() 49 struct task_struct *t in BPF_STRUCT_OPS() [all...] |
| /linux/arch/powerpc/kernel/ |
| H A 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 …]
|
| /linux/kernel/sched/ext/ |
| H A D | internal.h | 315 struct task_struct *task; 373 s32 (*select_cpu)(struct task_struct *p, s32 prev_cpu, u64 wake_flags); 388 void (*enqueue)(struct task_struct *p, u64 enq_flags); 404 void (*dequeue)(struct task_struct *p, u64 deq_flags); 427 void (*dispatch)(s32 cpu, struct task_struct *prev); 438 void (*tick)(struct task_struct *p); 465 void (*runnable)(struct task_struct *p, u64 enq_flags); 482 void (*running)(struct task_struct *p); 502 void (*stopping)(struct task_struct *p, bool runnable); 522 void (*quiescent)(struct task_struct *p, u64 deq_flags); [all …]
|
| /linux/arch/riscv/include/asm/ |
| H A D | switch_to.h | 20 extern void __fstate_save(struct task_struct *save_to); 21 extern void __fstate_restore(struct task_struct *restore_from); 28 static inline void fstate_off(struct task_struct *task, in fstate_off() 34 static inline void fstate_save(struct task_struct *task, in fstate_save() 43 static inline void fstate_restore(struct task_struct *task, in fstate_restore() 52 static inline void __switch_to_fpu(struct task_struct *prev, in __switch_to_fpu() 53 struct task_struct *next) in __switch_to_fpu() 74 static inline void envcfg_update_bits(struct task_struct *task, in envcfg_update_bits() 85 static inline void __switch_to_envcfg(struct task_struct *next) in __switch_to_envcfg() 92 extern struct task_struct *__switch_to(struct task_struct *, [all …]
|
| /linux/arch/loongarch/include/asm/ |
| H A D | fpu.h | 51 static inline void save_lsx(struct task_struct *t); 52 static inline void restore_lsx(struct task_struct *t); 56 static inline void save_lasx(struct task_struct *t); 57 static inline void restore_lasx(struct task_struct *t); 132 static inline void lose_fpu_inatomic(int save, struct task_struct *tsk) in lose_fpu_inatomic() 172 static inline void save_fp(struct task_struct *tsk) in save_fp() 178 static inline void restore_fp(struct task_struct *tsk) in restore_fp() 184 static inline void save_fpu_regs(struct task_struct *tsk) in save_fpu_regs() 229 static inline void save_lsx(struct task_struct *t) in save_lsx() 235 static inline void restore_lsx(struct task_struct *t) in restore_lsx() [all …]
|
| /linux/arch/csky/include/asm/ |
| H A D | switch_to.h | 9 static inline void __switch_to_fpu(struct task_struct *prev, in __switch_to_fpu() 10 struct task_struct *next) in __switch_to_fpu() 16 static inline void __switch_to_fpu(struct task_struct *prev, in __switch_to_fpu() 17 struct task_struct *next) in __switch_to_fpu() 24 extern struct task_struct *__switch_to(struct task_struct *, 25 struct task_struct *); 29 struct task_struct *__prev = (prev); \ 30 struct task_struct *__next = (next); \
|
| /linux/kernel/sched/ |
| H A D | sched.h | 224 static inline int task_has_idle_policy(struct task_struct *p) in task_has_idle_policy() 229 static inline int task_has_rt_policy(struct task_struct *p) in task_has_rt_policy() 234 static inline int task_has_dl_policy(struct task_struct *p) in task_has_dl_policy() 357 extern int sched_dl_overflow(struct task_struct *p, int policy, const struct sched_attr *attr); 358 extern void __setparam_dl(struct task_struct *p, const struct sched_attr *attr); 359 extern void __getparam_dl(struct task_struct *p, struct sched_attr *attr, unsigned int flags); 361 extern bool dl_param_changed(struct task_struct *p, const struct sched_attr *attr); 582 extern bool cfs_task_bw_constrained(struct task_struct *p); 591 extern int sched_rt_can_attach(struct task_group *tg, struct task_struct *tsk); 599 extern void sched_move_task(struct task_struct *tsk, bool for_autogroup); [all …]
|
| /linux/arch/mips/include/asm/ |
| H A D | syscall.h | 29 static inline bool mips_syscall_is_indirect(struct task_struct *task, in mips_syscall_is_indirect() 38 static inline long syscall_get_nr(struct task_struct *task, in syscall_get_nr() 44 static inline void syscall_set_nr(struct task_struct *task, in syscall_set_nr() 59 static inline void mips_syscall_update_nr(struct task_struct *task, in mips_syscall_update_nr() 73 struct task_struct *task, struct pt_regs *regs, unsigned int n) in mips_get_syscall_arg() 93 struct task_struct *task, struct pt_regs *regs, unsigned int n) in mips_set_syscall_arg() 109 static inline long syscall_get_error(struct task_struct *task, in syscall_get_error() 115 static inline long syscall_get_return_value(struct task_struct *task, in syscall_get_return_value() 121 static inline void syscall_rollback(struct task_struct *task, in syscall_rollback() 127 static inline void syscall_set_return_value(struct task_struct *task, in syscall_set_return_value() [all …]
|