Home
last modified time | relevance | path

Searched refs:tsk (Results 1 – 25 of 66) sorted by relevance

123

/include/linux/fsl/bestcomm/
A Dbestcomm.h108 return ((tsk->index + 1) == tsk->num_bd) ? 0 : tsk->index + 1; in _bcom_next_index()
119 return ((tsk->outdex + 1) == tsk->num_bd) ? 0 : tsk->outdex + 1; in _bcom_next_outdex()
129 return tsk->index == tsk->outdex; in bcom_queue_empty()
139 return tsk->outdex == _bcom_next_index(tsk); in bcom_queue_full()
152 return ((void *)tsk->bd) + (index * tsk->bd_size); in bcom_get_bd()
166 bd = bcom_get_bd(tsk, tsk->outdex); in bcom_buffer_done()
181 bd = bcom_get_bd(tsk, tsk->index); in bcom_prepare_next_buffer()
191 tsk->cookie[tsk->index] = cookie; in bcom_submit_next_buffer()
194 tsk->index = _bcom_next_index(tsk); in bcom_submit_next_buffer()
202 void *cookie = tsk->cookie[tsk->outdex]; in bcom_retrieve_buffer()
[all …]
A Data.h24 extern void bcom_ata_rx_prepare(struct bcom_task *tsk);
25 extern void bcom_ata_tx_prepare(struct bcom_task *tsk);
26 extern void bcom_ata_reset_bd(struct bcom_task *tsk);
27 extern void bcom_ata_release(struct bcom_task *tsk);
A Dgen_bd.h24 bcom_gen_bd_rx_reset(struct bcom_task *tsk);
27 bcom_gen_bd_rx_release(struct bcom_task *tsk);
35 bcom_gen_bd_tx_reset(struct bcom_task *tsk);
38 bcom_gen_bd_tx_release(struct bcom_task *tsk);
A Dfec.h44 bcom_fec_rx_reset(struct bcom_task *tsk);
47 bcom_fec_rx_release(struct bcom_task *tsk);
54 bcom_fec_tx_reset(struct bcom_task *tsk);
57 bcom_fec_tx_release(struct bcom_task *tsk);
/include/linux/
A Dvtime.h17 extern void vtime_user_enter(struct task_struct *tsk);
18 extern void vtime_user_exit(struct task_struct *tsk);
34 extern void vtime_flush(struct task_struct *tsk);
135 vtime_account_irq(tsk, SOFTIRQ_OFFSET); in account_softirq_enter()
136 irqtime_account_irq(tsk, SOFTIRQ_OFFSET); in account_softirq_enter()
141 vtime_account_softirq(tsk); in account_softirq_exit()
142 irqtime_account_irq(tsk, 0); in account_softirq_exit()
147 vtime_account_irq(tsk, HARDIRQ_OFFSET); in account_hardirq_enter()
148 irqtime_account_irq(tsk, HARDIRQ_OFFSET); in account_hardirq_enter()
153 vtime_account_hardirq(tsk); in account_hardirq_exit()
[all …]
A Dscs.h25 #define task_scs(tsk) (task_thread_info(tsk)->scs_base) argument
26 #define task_scs_sp(tsk) (task_thread_info(tsk)->scs_sp) argument
31 int scs_prepare(struct task_struct *tsk, int node);
32 void scs_release(struct task_struct *tsk);
34 static inline void scs_task_reset(struct task_struct *tsk) in scs_task_reset() argument
40 task_scs_sp(tsk) = task_scs(tsk); in scs_task_reset()
48 static inline bool task_scs_end_corrupted(struct task_struct *tsk) in task_scs_end_corrupted() argument
50 unsigned long *magic = __scs_magic(task_scs(tsk)); in task_scs_end_corrupted()
51 unsigned long sz = task_scs_sp(tsk) - task_scs(tsk); in task_scs_end_corrupted()
77 static inline void scs_task_reset(struct task_struct *tsk) {} in scs_task_reset() argument
[all …]
A Dfutex.h65 static inline void futex_init_task(struct task_struct *tsk) in futex_init_task() argument
67 tsk->robust_list = NULL; in futex_init_task()
69 tsk->compat_robust_list = NULL; in futex_init_task()
71 INIT_LIST_HEAD(&tsk->pi_state_list); in futex_init_task()
72 tsk->pi_state_cache = NULL; in futex_init_task()
73 tsk->futex_state = FUTEX_STATE_OK; in futex_init_task()
74 mutex_init(&tsk->futex_exit_mutex); in futex_init_task()
77 void futex_exit_recursive(struct task_struct *tsk);
78 void futex_exit_release(struct task_struct *tsk);
79 void futex_exec_release(struct task_struct *tsk);
[all …]
A Dtsacct_kern.h16 struct taskstats *stats, struct task_struct *tsk);
20 struct taskstats *stats, struct task_struct *tsk) in bacct_add_tsk() argument
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);
32 static inline void acct_update_integrals(struct task_struct *tsk) in acct_update_integrals() argument
34 static inline void acct_account_cputime(struct task_struct *tsk) in acct_account_cputime() argument
36 static inline void acct_clear_integrals(struct task_struct *tsk) in acct_clear_integrals() argument
A Dpid.h236 return tsk->pid; in task_pid_nr()
241 return __task_pid_nr_ns(tsk, PIDTYPE_PID, ns); in task_pid_nr_ns()
246 return __task_pid_nr_ns(tsk, PIDTYPE_PID, NULL); in task_pid_vnr()
252 return tsk->tgid; in task_tgid_nr()
272 return __task_pid_nr_ns(tsk, PIDTYPE_PGID, ns); in task_pgrp_nr_ns()
283 return __task_pid_nr_ns(tsk, PIDTYPE_SID, ns); in task_session_nr_ns()
293 return __task_pid_nr_ns(tsk, PIDTYPE_TGID, ns); in task_tgid_nr_ns()
306 if (pid_alive(tsk)) in task_ppid_nr_ns()
315 return task_ppid_nr_ns(tsk, &init_pid_ns); in task_ppid_nr()
321 return task_pgrp_nr_ns(tsk, &init_pid_ns); in task_pgrp_nr()
[all …]
A Dio_uring.h11 void __io_uring_free(struct task_struct *tsk);
26 static inline void io_uring_free(struct task_struct *tsk) in io_uring_free() argument
28 if (tsk->io_uring) in io_uring_free()
29 __io_uring_free(tsk); in io_uring_free()
38 static inline void io_uring_free(struct task_struct *tsk) in io_uring_free() argument
A Dsem.h12 extern int copy_semundo(unsigned long clone_flags, struct task_struct *tsk);
13 extern void exit_sem(struct task_struct *tsk);
17 static inline int copy_semundo(unsigned long clone_flags, struct task_struct *tsk) in copy_semundo() argument
22 static inline void exit_sem(struct task_struct *tsk) in exit_sem() argument
A Ddelayacct.h103 static inline void delayacct_tsk_init(struct task_struct *tsk) in delayacct_tsk_init() argument
106 tsk->delays = NULL; in delayacct_tsk_init()
108 __delayacct_tsk_init(tsk); in delayacct_tsk_init()
114 static inline void delayacct_tsk_free(struct task_struct *tsk) in delayacct_tsk_free() argument
116 if (tsk->delays) in delayacct_tsk_free()
117 kmem_cache_free(delayacct_cache, tsk->delays); in delayacct_tsk_free()
118 tsk->delays = NULL; in delayacct_tsk_free()
141 if (tsk->delays) in delayacct_blkio_ticks()
142 return __delayacct_blkio_ticks(tsk); in delayacct_blkio_ticks()
248 static inline void delayacct_tsk_init(struct task_struct *tsk) in delayacct_tsk_init() argument
[all …]
A Dsignalfd.h19 static inline void signalfd_notify(struct task_struct *tsk, int sig) in signalfd_notify() argument
21 if (unlikely(waitqueue_active(&tsk->sighand->signalfd_wqh))) in signalfd_notify()
22 wake_up(&tsk->sighand->signalfd_wqh); in signalfd_notify()
29 static inline void signalfd_notify(struct task_struct *tsk, int sig) { } in signalfd_notify() argument
A Dtick.h202 extern void tick_nohz_dep_set_task(struct task_struct *tsk,
204 extern void tick_nohz_dep_clear_task(struct task_struct *tsk,
206 extern void tick_nohz_dep_set_signal(struct task_struct *tsk,
240 static inline void tick_dep_set_task(struct task_struct *tsk, in tick_dep_set_task() argument
244 tick_nohz_dep_set_task(tsk, bit); in tick_dep_set_task()
247 static inline void tick_dep_clear_task(struct task_struct *tsk, in tick_dep_clear_task() argument
251 tick_nohz_dep_clear_task(tsk, bit); in tick_dep_clear_task()
254 static inline void tick_dep_init_task(struct task_struct *tsk) in tick_dep_init_task() argument
256 atomic_set(&tsk->tick_dep_mask, 0); in tick_dep_init_task()
263 tick_nohz_dep_set_signal(tsk, bit); in tick_dep_set_signal()
[all …]
A Dkstack_erase.h23 stackleak_task_low_bound(const struct task_struct *tsk) in stackleak_task_low_bound() argument
29 return (unsigned long)end_of_stack(tsk) + sizeof(unsigned long); in stackleak_task_low_bound()
37 stackleak_task_high_bound(const struct task_struct *tsk) in stackleak_task_high_bound() argument
43 return (unsigned long)task_pt_regs(tsk); in stackleak_task_high_bound()
A Diocontext.h121 int __copy_io(unsigned long clone_flags, struct task_struct *tsk);
122 static inline int copy_io(unsigned long clone_flags, struct task_struct *tsk) in copy_io() argument
126 return __copy_io(clone_flags, tsk); in copy_io()
132 static inline int copy_io(unsigned long clone_flags, struct task_struct *tsk) in copy_io() argument
A Dsyscall_user_dispatch.h16 #define clear_syscall_work_syscall_user_dispatch(tsk) \ argument
17 clear_task_syscall_work(tsk, SYSCALL_USER_DISPATCH)
33 static inline void clear_syscall_work_syscall_user_dispatch(struct task_struct *tsk) in clear_syscall_work_syscall_user_dispatch() argument
A Dseccomp.h76 extern void seccomp_filter_release(struct task_struct *tsk);
77 extern void get_seccomp_filter(struct task_struct *tsk);
79 static inline void seccomp_filter_release(struct task_struct *tsk) in seccomp_filter_release() argument
83 static inline void get_seccomp_filter(struct task_struct *tsk) in get_seccomp_filter() argument
A Dstacktrace.h91 extern void save_stack_trace_tsk(struct task_struct *tsk,
93 extern int save_stack_trace_tsk_reliable(struct task_struct *tsk,
100 int stack_trace_save_tsk_reliable(struct task_struct *tsk, unsigned long *store,
103 static inline int stack_trace_save_tsk_reliable(struct task_struct *tsk, in stack_trace_save_tsk_reliable() argument
/include/linux/sched/
A Dxacct.h12 static inline void add_rchar(struct task_struct *tsk, ssize_t amt) in add_rchar() argument
14 tsk->ioac.rchar += amt; in add_rchar()
17 static inline void add_wchar(struct task_struct *tsk, ssize_t amt) in add_wchar() argument
19 tsk->ioac.wchar += amt; in add_wchar()
22 static inline void inc_syscr(struct task_struct *tsk) in inc_syscr() argument
24 tsk->ioac.syscr++; in inc_syscr()
27 static inline void inc_syscw(struct task_struct *tsk) in inc_syscw() argument
29 tsk->ioac.syscw++; in inc_syscw()
32 static inline void add_rchar(struct task_struct *tsk, ssize_t amt) in add_rchar() argument
40 static inline void inc_syscr(struct task_struct *tsk) in inc_syscr() argument
[all …]
A Dcputime.h56 void thread_group_sample_cputime(struct task_struct *tsk, u64 *samples);
71 struct thread_group_cputimer *get_running_cputimer(struct task_struct *tsk) in get_running_cputimer() argument
73 struct thread_group_cputimer *cputimer = &tsk->signal->cputimer; in get_running_cputimer()
79 if (!READ_ONCE(tsk->signal->posix_cputimers.timers_active)) in get_running_cputimer()
96 if (unlikely(!tsk->sighand)) in get_running_cputimer()
119 static inline void account_group_user_time(struct task_struct *tsk, in account_group_user_time() argument
122 struct thread_group_cputimer *cputimer = get_running_cputimer(tsk); in account_group_user_time()
140 static inline void account_group_system_time(struct task_struct *tsk, in account_group_system_time() argument
143 struct thread_group_cputimer *cputimer = get_running_cputimer(tsk); in account_group_system_time()
161 static inline void account_group_exec_runtime(struct task_struct *tsk, in account_group_exec_runtime() argument
[all …]
A Dtask_stack.h68 static inline void *try_get_task_stack(struct task_struct *tsk) in try_get_task_stack() argument
70 return refcount_inc_not_zero(&tsk->stack_refcount) ? in try_get_task_stack()
71 task_stack_page(tsk) : NULL; 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() argument
78 return task_stack_page(tsk); in try_get_task_stack()
81 static inline void put_task_stack(struct task_struct *tsk) {} in put_task_stack() argument
84 void exit_task_stack_account(struct task_struct *tsk);
107 extern void set_task_stack_end_magic(struct task_struct *tsk);
/include/trace/events/
A Dsched.h509 __entry->pid = tsk->pid;
524 TP_ARGS(tsk, delay));
532 TP_ARGS(tsk, delay));
540 TP_ARGS(tsk, delay));
547 TP_ARGS(tsk, delay));
588 TP_ARGS(tsk, pi_task),
603 tsk->normal_prio;
615 TP_ARGS(tsk),
624 __entry->pid = tsk->pid;
892 TP_ARGS(tsk, state),
[all …]
/include/asm-generic/
A Dmmu_context.h22 struct task_struct *tsk) in enter_lazy_tlb() argument
34 static inline int init_new_context(struct task_struct *tsk, in init_new_context() argument
70 static inline void deactivate_mm(struct task_struct *tsk, in deactivate_mm() argument
/include/rv/
A Dda_monitor.h169 trace_error_##name(tsk->pid, \
175 trace_event_##name(tsk->pid, \
298 return &tsk->rv[task_mon_slot_##name].da_mon; \
442 retval = da_event_##name(da_mon, tsk, event); \
451 da_handle_event_##name(struct task_struct *tsk, enum events_##name event) \
453 struct da_monitor *da_mon = da_get_monitor_##name(tsk); \
460 __da_handle_event_##name(da_mon, tsk, event); \
481 da_mon = da_get_monitor_##name(tsk); \
488 __da_handle_event_##name(da_mon, tsk, event); \
507 da_mon = da_get_monitor_##name(tsk); \
[all …]

Completed in 27 milliseconds

123