Home
last modified time | relevance | path

Searched refs:task_struct (Results 1 – 25 of 1493) sorted by relevance

12345678910>>...60

/openbmc/linux/arch/riscv/kernel/
H A Dasm-offsets.c21 OFFSET(TASK_THREAD_RA, task_struct, thread.ra); in asm_offsets()
22 OFFSET(TASK_THREAD_SP, task_struct, thread.sp); in asm_offsets()
23 OFFSET(TASK_THREAD_S0, task_struct, thread.s[0]); in asm_offsets()
24 OFFSET(TASK_THREAD_S1, task_struct, thread.s[1]); in asm_offsets()
25 OFFSET(TASK_THREAD_S2, task_struct, thread.s[2]); in asm_offsets()
26 OFFSET(TASK_THREAD_S3, task_struct, thread.s[3]); in asm_offsets()
27 OFFSET(TASK_THREAD_S4, task_struct, thread.s[4]); in asm_offsets()
28 OFFSET(TASK_THREAD_S5, task_struct, thread.s[5]); in asm_offsets()
29 OFFSET(TASK_THREAD_S6, task_struct, thread.s[6]); in asm_offsets()
30 OFFSET(TASK_THREAD_S7, task_struct, thread.s[7]); in asm_offsets()
[all …]
/openbmc/linux/include/linux/
H A Dvtime.h16 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);
26 extern void vtime_init_idle(struct task_struct *tsk, int cpu);
28 static inline void vtime_user_enter(struct task_struct *tsk) { } in vtime_user_enter()
29 static inline void vtime_user_exit(struct task_struct *tsk) { } in vtime_user_exit()
[all …]
H A Dcn_proc.h23 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 Dsched.h6 * Define 'struct task_struct' and provide the main scheduler
42 /* task_struct member predeclarations (sorted alphabetically): */
243 * task when blocking on the lock is saved in task_struct::saved_state and
245 * serialized by task_struct::pi_lock against try_to_wake_up(). Any non RT
247 * redirected to operate on task_struct::saved_state to ensure that these
248 * are not dropped. On restore task_struct::saved_state is set to
746 struct task_struct { struct
750 * must be the first element of task_struct.
762 * This begins the randomizable portion of task_struct. Only argument
778 struct task_struct *last_wake argument
787 recent_used_cputask_struct global() argument
788 wake_cputask_struct global() argument
790 on_rqtask_struct global() argument
792 priotask_struct global() argument
793 static_priotask_struct global() argument
794 normal_priotask_struct global() argument
795 rt_prioritytask_struct global() argument
797 setask_struct global() argument
798 rttask_struct global() argument
799 dltask_struct global() argument
800 sched_classtask_struct global() argument
803 core_nodetask_struct global() argument
804 core_cookietask_struct global() argument
805 core_occupationtask_struct global() argument
809 sched_task_grouptask_struct global() argument
817 uclamp_reqtask_struct global() argument
822 uclamptask_struct global() argument
825 statstask_struct global() argument
829 preempt_notifierstask_struct global() argument
833 btrace_seqtask_struct global() argument
836 policytask_struct global() argument
837 nr_cpus_allowedtask_struct global() argument
838 cpus_ptrtask_struct global() argument
839 user_cpus_ptrtask_struct global() argument
840 cpus_masktask_struct global() argument
841 migration_pendingtask_struct global() argument
843 migration_disabledtask_struct global() argument
845 migration_flagstask_struct global() argument
848 rcu_read_lock_nestingtask_struct global() argument
849 rcu_read_unlock_specialtask_struct global() argument
850 rcu_node_entrytask_struct global() argument
851 rcu_blocked_nodetask_struct global() argument
855 rcu_tasks_nvcswtask_struct global() argument
856 rcu_tasks_holdouttask_struct global() argument
857 rcu_tasks_idxtask_struct global() argument
858 rcu_tasks_idle_cputask_struct global() argument
859 rcu_tasks_holdout_listtask_struct global() argument
860 rcu_tasks_exit_cputask_struct global() argument
861 rcu_tasks_exit_listtask_struct global() argument
865 trc_reader_nestingtask_struct global() argument
866 trc_ipi_to_cputask_struct global() argument
867 trc_reader_specialtask_struct global() argument
868 trc_holdout_listtask_struct global() argument
869 trc_blkd_nodetask_struct global() argument
870 trc_blkd_cputask_struct global() argument
873 sched_infotask_struct global() argument
875 taskstask_struct global() argument
877 pushable_taskstask_struct global() argument
878 pushable_dl_taskstask_struct global() argument
881 mmtask_struct global() argument
882 active_mmtask_struct global() argument
884 exit_statetask_struct global() argument
885 exit_codetask_struct global() argument
886 exit_signaltask_struct global() argument
888 pdeath_signaltask_struct global() argument
890 jobctltask_struct global() argument
893 personalitytask_struct global() argument
896 sched_reset_on_forktask_struct global() argument
897 sched_contributes_to_loadtask_struct global() argument
898 sched_migratedtask_struct global() argument
899 sched_task_hottask_struct global() argument
919 sched_remote_wakeuptask_struct global() argument
922 in_execvetask_struct global() argument
923 in_iowaittask_struct global() argument
925 restore_sigmasktask_struct global() argument
928 in_user_faulttask_struct global() argument
932 in_lru_faulttask_struct global() argument
935 brk_randomizedtask_struct global() argument
939 no_cgroup_migrationtask_struct global() argument
941 frozentask_struct global() argument
944 use_memdelaytask_struct global() argument
948 in_memstalltask_struct global() argument
952 in_page_ownertask_struct global() argument
956 in_eventfdtask_struct global() argument
959 pasid_activatedtask_struct global() argument
962 reported_split_locktask_struct global() argument
987 real_parenttask_struct global() argument
990 parenttask_struct global() argument
997 group_leadertask_struct global() argument
1005 ptracedtask_struct global() argument
1006 ptrace_entrytask_struct global() argument
1009 thread_pidtask_struct global() argument
1010 pid_linkstask_struct global() argument
1011 thread_grouptask_struct global() argument
1012 thread_nodetask_struct global() argument
1014 vfork_donetask_struct global() argument
1017 set_child_tidtask_struct global() argument
1020 clear_child_tidtask_struct global() argument
1023 worker_privatetask_struct global() argument
1025 utimetask_struct global() argument
1026 stimetask_struct global() argument
1028 utimescaledtask_struct global() argument
1029 stimescaledtask_struct global() argument
1031 gtimetask_struct global() argument
1032 prev_cputimetask_struct global() argument
1034 vtimetask_struct global() argument
1038 tick_dep_masktask_struct global() argument
1041 nvcswtask_struct global() argument
1042 nivcswtask_struct global() argument
1045 start_timetask_struct global() argument
1048 start_boottimetask_struct global() argument
1051 min_flttask_struct global() argument
1052 maj_flttask_struct global() argument
1055 posix_cputimerstask_struct global() argument
1058 posix_cputimers_worktask_struct global() argument
1064 ptracer_credtask_struct global() argument
1067 real_credtask_struct global() argument
1070 credtask_struct global() argument
1074 cached_requested_keytask_struct global() argument
1084 commtask_struct global() argument
1086 nameidatatask_struct global() argument
1089 sysvsemtask_struct global() argument
1090 sysvshmtask_struct global() argument
1093 last_switch_counttask_struct global() argument
1094 last_switch_timetask_struct global() argument
1097 fstask_struct global() argument
1100 filestask_struct global() argument
1103 io_uringtask_struct global() argument
1107 nsproxytask_struct global() argument
1110 signaltask_struct global() argument
1111 sighandtask_struct global() argument
1112 blockedtask_struct global() argument
1113 real_blockedtask_struct global() argument
1115 saved_sigmasktask_struct global() argument
1116 pendingtask_struct global() argument
1117 sas_ss_sptask_struct global() argument
1118 sas_ss_sizetask_struct global() argument
1119 sas_ss_flagstask_struct global() argument
1121 task_workstask_struct global() argument
1125 audit_contexttask_struct global() argument
1149 pi_top_tasktask_struct global() argument
1151 pi_blocked_ontask_struct global() argument
1156 blocked_ontask_struct global() argument
1160 non_block_counttask_struct global() argument
1164 irqtracetask_struct global() argument
1165 hardirq_threadedtask_struct global() argument
1166 hardirq_chain_keytask_struct global() argument
1167 softirqs_enabledtask_struct global() argument
1168 softirq_contexttask_struct global() argument
1169 irq_configtask_struct global() argument
1172 softirq_disable_cnttask_struct global() argument
1177 curr_chain_keytask_struct global() argument
1178 lockdep_depthtask_struct global() argument
1179 lockdep_recursiontask_struct global() argument
1180 held_lockstask_struct global() argument
1184 in_ubsantask_struct global() argument
1188 journal_infotask_struct global() argument
1191 bio_listtask_struct global() argument
1194 plugtask_struct global() argument
1197 reclaim_statetask_struct global() argument
1199 io_contexttask_struct global() argument
1202 capture_controltask_struct global() argument
1205 ptrace_messagetask_struct global() argument
1206 last_siginfotask_struct global() argument
1208 ioactask_struct global() argument
1211 psi_flagstask_struct global() argument
1215 acct_rss_mem1task_struct global() argument
1217 acct_vm_mem1task_struct global() argument
1219 acct_timexpdtask_struct global() argument
1223 mems_allowedtask_struct global() argument
1225 mems_allowed_seqtask_struct global() argument
1226 cpuset_mem_spread_rotortask_struct global() argument
1227 cpuset_slab_spread_rotortask_struct global() argument
1231 cgroupstask_struct global() argument
1233 cg_listtask_struct global() argument
1236 closidtask_struct global() argument
1237 rmidtask_struct global() argument
1240 robust_listtask_struct global() argument
1242 compat_robust_listtask_struct global() argument
1244 pi_state_listtask_struct global() argument
1245 pi_state_cachetask_struct global() argument
1246 futex_exit_mutextask_struct global() argument
1247 futex_statetask_struct global() argument
1250 perf_event_ctxptask_struct global() argument
1251 perf_event_mutextask_struct global() argument
1252 perf_event_listtask_struct global() argument
1255 preempt_disable_iptask_struct global() argument
1259 mempolicytask_struct global() argument
1260 il_prevtask_struct global() argument
1261 pref_node_forktask_struct global() argument
1264 numa_scan_seqtask_struct global() argument
1265 numa_scan_periodtask_struct global() argument
1266 numa_scan_period_maxtask_struct global() argument
1267 numa_preferred_nidtask_struct global() argument
1268 numa_migrate_retrytask_struct global() argument
1270 node_stamptask_struct global() argument
1271 last_task_numa_placementtask_struct global() argument
1272 last_sum_exec_runtimetask_struct global() argument
1273 numa_worktask_struct global() argument
1283 numa_grouptask_struct global() argument
1299 numa_faultstask_struct global() argument
1300 total_numa_faultstask_struct global() argument
1308 numa_faults_localitytask_struct global() argument
1310 numa_pages_migratedtask_struct global() argument
1314 rseqtask_struct global() argument
1315 rseq_lentask_struct global() argument
1316 rseq_sigtask_struct global() argument
1321 rseq_event_masktask_struct global() argument
1325 mm_cidtask_struct global() argument
1326 last_mm_cidtask_struct global() argument
1327 migrate_from_cputask_struct global() argument
1328 mm_cid_activetask_struct global() argument
1329 cid_worktask_struct global() argument
1332 tlb_ubctask_struct global() argument
1335 splice_pipetask_struct global() argument
1337 task_fragtask_struct global() argument
1340 delaystask_struct global() argument
1344 make_it_failtask_struct global() argument
1345 fail_nthtask_struct global() argument
1351 nr_dirtiedtask_struct global() argument
1352 nr_dirtied_pausetask_struct global() argument
1354 dirty_paused_whentask_struct global() argument
1357 latency_record_counttask_struct global() argument
1358 latency_recordtask_struct global() argument
1364 timer_slack_nstask_struct global() argument
1365 default_timer_slack_nstask_struct global() argument
1368 kasan_depthtask_struct global() argument
1372 kcsan_ctxtask_struct global() argument
1374 kcsan_save_irqtracetask_struct global() argument
1377 kcsan_stack_depthtask_struct global() argument
1382 kmsan_ctxtask_struct global() argument
1386 kunit_testtask_struct global() argument
1391 curr_ret_stacktask_struct global() argument
1392 curr_ret_depthtask_struct global() argument
1395 ret_stacktask_struct global() argument
1398 ftrace_timestamptask_struct global() argument
1404 trace_overruntask_struct global() argument
1407 tracing_graph_pausetask_struct global() argument
1412 trace_recursiontask_struct global() argument
1419 kcov_modetask_struct global() argument
1422 kcov_sizetask_struct global() argument
1425 kcov_areatask_struct global() argument
1428 kcovtask_struct global() argument
1431 kcov_handletask_struct global() argument
1434 kcov_sequencetask_struct global() argument
1437 kcov_softirqtask_struct global() argument
1441 memcg_in_oomtask_struct global() argument
1442 memcg_oom_gfp_masktask_struct global() argument
1443 memcg_oom_ordertask_struct global() argument
1446 memcg_nr_pages_over_hightask_struct global() argument
1449 active_memcgtask_struct global() argument
1474 oom_reaper_listtask_struct global() argument
1475 oom_reaper_timertask_struct global() argument
1478 stack_vm_areatask_struct global() argument
1482 stack_refcounttask_struct global() argument
1485 patch_statetask_struct global() argument
1489 securitytask_struct global() argument
1493 bpf_storagetask_struct global() argument
1495 bpf_ctxtask_struct global() argument
1499 lowest_stacktask_struct global() argument
1500 prev_lowest_stacktask_struct global() argument
1504 mce_vaddrtask_struct global() argument
1505 mce_kflagstask_struct global() argument
1506 mce_addrtask_struct global() argument
1507 mce_ripvtask_struct global() argument
1508 mce_whole_pagetask_struct global() argument
1509 __mce_reservedtask_struct global() argument
1510 mce_kill_metask_struct global() argument
1511 mce_counttask_struct global() argument
1515 kretprobe_instancestask_struct global() argument
1518 rethookstask_struct global() argument
1546 user_event_mmtask_struct global() argument
1556 threadtask_struct global() argument
[all...]
H A Dptrace.h20 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 …]
H A Dkthread.h11 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 …]
H A Dcgroup.h67 struct task_struct *cur_task;
112 int cgroup_attach_task_all(struct task_struct *from, struct task_struct *);
123 struct pid *pid, struct task_struct *tsk);
125 void cgroup_fork(struct task_struct *p);
126 extern int cgroup_can_fork(struct task_struct *p,
128 extern void cgroup_cancel_fork(struct task_struct *p,
130 extern void cgroup_post_fork(struct task_struct *p,
132 void cgroup_exit(struct task_struct *p);
133 void cgroup_release(struct task_struct *p);
134 void cgroup_free(struct task_struct *p);
[all …]
H A Ddelayacct.h71 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 …]
H A Dcpuset.h74 extern void inc_dl_tasks_cs(struct task_struct *task);
75 extern void dec_dl_tasks_cs(struct task_struct *task);
78 extern void cpuset_cpus_allowed(struct task_struct *p, struct cpumask *mask);
79 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);
111 struct task_struct *task);
113 struct pid *pid, struct task_struct *tsk);
194 static inline void inc_dl_tasks_cs(struct task_struct *task) { } in inc_dl_tasks_cs()
[all …]
H A Dtsacct_kern.h16 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()
/openbmc/linux/include/linux/sched/
H A Dtask.h13 struct task_struct;
57 extern struct task_struct init_task;
61 extern asmlinkage void schedule_tail(struct task_struct *prev);
62 extern void init_idle(struct task_struct *idle, int cpu);
64 extern int sched_fork(unsigned long clone_flags, struct task_struct *p);
65 extern void sched_cgroup_fork(struct task_struct *p, struct kernel_clone_args *kargs);
66 extern void sched_post_fork(struct task_struct *p);
67 extern void sched_dead(struct task_struct *p);
77 extern void release_task(struct task_struct * p);
79 extern int copy_thread(struct task_struct *, const struct kernel_clone_args *);
[all …]
H A Dsignal.h76 struct task_struct *task;
103 struct task_struct *curr_target;
115 struct task_struct *group_exec_task;
275 extern void flush_signals(struct task_struct *);
276 extern void ignore_signals(struct task_struct *);
277 extern void flush_signal_handlers(struct task_struct *, int force_default);
278 extern int dequeue_signal(struct task_struct *task, sigset_t *mask,
283 struct task_struct *task = current; in kernel_dequeue_signal()
314 , struct task_struct *t);
319 , struct task_struct *t);
[all …]
H A Dcputime.h12 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 …]
H A Drt.h7 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()
/openbmc/linux/arch/powerpc/kernel/ptrace/
H A Dptrace-decl.h73 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 …]
/openbmc/linux/arch/powerpc/include/asm/
H A Dswitch_to.h12 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 …]
/openbmc/linux/arch/parisc/kernel/
H A Dasm-offsets.c42 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 …]
/openbmc/linux/tools/testing/selftests/bpf/progs/
H A Dtask_kfunc_failure.c19 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 …]
H A Dtask_kfunc_success.c20 struct task_struct *bpf_task_acquire(struct task_struct *p) __ksym __weak;
22 struct task_struct *bpf_task_acquire___one(struct task_struct *task) __ksym __weak;
24 struct task_struct *bpf_task_acquire___two(struct task_struct *p, void *ctx) __ksym __weak;
26 struct task_struct *bpf_task_acquire___three(void *ctx) __ksym __weak;
38 static int test_acquire_release(struct task_struct *task) in test_acquire_release()
40 struct task_struct *acquired = NULL; in test_acquire_release()
66 int BPF_PROG(test_task_kfunc_flavor_relo, struct task_struct *task, u64 clone_flags) in BPF_PROG()
68 struct task_struct *acquired = NULL; in BPF_PROG()
96 int BPF_PROG(test_task_kfunc_flavor_relo_not_found, struct task_struct *task, u64 clone_flags) in BPF_PROG()
110 int BPF_PROG(test_task_acquire_release_argument, struct task_struct *task, u64 clone_flags) in BPF_PROG()
[all …]
/openbmc/linux/arch/mips/kernel/
H A Dasm-offsets.c83 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 …]
/openbmc/linux/kernel/sched/
H A Dstats.h47 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()
125 static inline void psi_enqueue(struct task_struct *p, bool wakeup) in psi_enqueue()
146 static inline void psi_dequeue(struct task_struct *p, bool sleep) in psi_dequeue()
[all …]
H A Dstop_task.c13 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 wakeup_preempt_stop(struct rq *rq, struct task_struct *p, int flags) in wakeup_preempt_stop()
31 static void set_next_task_stop(struct rq *rq, struct task_struct *stop, bool first) in set_next_task_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()
71 static void put_prev_task_stop(struct rq *rq, struct task_struct *prev) in put_prev_task_stop()
[all …]
/openbmc/linux/arch/powerpc/kernel/
H A Dsignal.h13 void __user *get_sigframe(struct ksignal *ksig, struct task_struct *tsk,
17 struct task_struct *tsk);
20 struct task_struct *tsk);
39 struct task_struct *task);
41 struct task_struct *task);
42 extern unsigned long copy_vsx_from_user(struct task_struct *task,
44 extern unsigned long copy_ckvsx_from_user(struct task_struct *task,
46 unsigned long copy_fpr_to_user(void __user *to, struct task_struct *task);
47 unsigned long copy_ckfpr_to_user(void __user *to, struct task_struct *task);
48 unsigned long copy_fpr_from_user(struct task_struct *task, void __user *from);
[all …]
/openbmc/linux/arch/loongarch/include/asm/
H A Dfpu.h43 static inline void save_lsx(struct task_struct *t);
44 static inline void restore_lsx(struct task_struct *t);
48 static inline void save_lasx(struct task_struct *t);
49 static inline void restore_lasx(struct task_struct *t);
124 static inline void lose_fpu_inatomic(int save, struct task_struct *tsk) in lose_fpu_inatomic()
164 static inline void save_fp(struct task_struct *tsk) in save_fp()
170 static inline void restore_fp(struct task_struct *tsk) in restore_fp()
176 static inline void save_fpu_regs(struct task_struct *tsk) in save_fpu_regs()
221 static inline void save_lsx(struct task_struct *t) in save_lsx()
227 static inline void restore_lsx(struct task_struct *t) in restore_lsx()
[all …]
/openbmc/linux/arch/riscv/include/asm/
H A Dswitch_to.h18 extern void __fstate_save(struct task_struct *save_to);
19 extern void __fstate_restore(struct task_struct *restore_from);
26 static inline void fstate_off(struct task_struct *task, in fstate_off()
32 static inline void fstate_save(struct task_struct *task, in fstate_save()
41 static inline void fstate_restore(struct task_struct *task, in fstate_restore()
50 static inline void __switch_to_fpu(struct task_struct *prev, in __switch_to_fpu()
51 struct task_struct *next) in __switch_to_fpu()
73 extern struct task_struct *__switch_to(struct task_struct *,
74 struct task_struct *);
78 struct task_struct *__prev = (prev); \
[all …]

12345678910>>...60