Home
last modified time | relevance | path

Searched refs:task (Results 1 – 25 of 1048) sorted by relevance

12345678910>>...42

/linux/net/sunrpc/
H A Dsched.c45 static void rpc_release_task(struct rpc_task *task);
68 bool rpc_task_set_rpc_status(struct rpc_task *task, int rpc_status) in rpc_task_set_rpc_status() argument
70 if (cmpxchg(&task->tk_rpc_status, 0, rpc_status) == 0) in rpc_task_set_rpc_status()
76 rpc_task_timeout(const struct rpc_task *task) in rpc_task_timeout() argument
78 unsigned long timeout = READ_ONCE(task->tk_timeout); in rpc_task_timeout()
95 __rpc_disable_timer(struct rpc_wait_queue *queue, struct rpc_task *task) in __rpc_disable_timer() argument
97 if (list_empty(&task->u.tk_wait.timer_list)) in __rpc_disable_timer()
99 task->tk_timeout = 0; in __rpc_disable_timer()
100 list_del(&task->u.tk_wait.timer_list); in __rpc_disable_timer()
121 __rpc_add_timer(struct rpc_wait_queue *queue, struct rpc_task *task, in __rpc_add_timer() argument
[all …]
H A Dclnt.c53 static void call_start(struct rpc_task *task);
54 static void call_reserve(struct rpc_task *task);
55 static void call_reserveresult(struct rpc_task *task);
56 static void call_allocate(struct rpc_task *task);
57 static void call_encode(struct rpc_task *task);
58 static void call_decode(struct rpc_task *task);
59 static void call_bind(struct rpc_task *task);
60 static void call_bind_status(struct rpc_task *task);
61 static void call_transmit(struct rpc_task *task);
62 static void call_status(struct rpc_task *task);
907 struct rpc_task *task; rpc_cancel_tasks() local
1114 rpc_task_release_transport(struct rpc_task * task) rpc_task_release_transport() argument
1128 rpc_task_release_client(struct rpc_task * task) rpc_task_release_client() argument
1163 rpc_task_set_transport(struct rpc_task * task,struct rpc_clnt * clnt) rpc_task_set_transport() argument
1179 rpc_task_set_client(struct rpc_task * task,struct rpc_clnt * clnt) rpc_task_set_client() argument
1196 rpc_task_set_rpc_message(struct rpc_task * task,const struct rpc_message * msg) rpc_task_set_rpc_message() argument
1212 rpc_default_callback(struct rpc_task * task,void * data) rpc_default_callback() argument
1226 struct rpc_task *task; rpc_run_task() local
1255 struct rpc_task *task; rpc_call_sync() local
1292 struct rpc_task *task; rpc_call_async() local
1321 struct rpc_task *task; rpc_run_bc_task() local
1371 rpc_call_start(struct rpc_task * task) rpc_call_start() argument
1671 __rpc_restart_call(struct rpc_task * task,void (* action)(struct rpc_task *)) __rpc_restart_call() argument
1684 rpc_restart_call(struct rpc_task * task) rpc_restart_call() argument
1695 rpc_restart_call_prepare(struct rpc_task * task) rpc_restart_call_prepare() argument
1704 rpc_proc_name(const struct rpc_task * task) rpc_proc_name() argument
1718 __rpc_call_rpcerror(struct rpc_task * task,int tk_status,int rpc_status) __rpc_call_rpcerror() argument
1726 rpc_call_rpcerror(struct rpc_task * task,int status) rpc_call_rpcerror() argument
1738 call_start(struct rpc_task * task) call_start() argument
1762 call_reserve(struct rpc_task * task) call_reserve() argument
1775 call_reserveresult(struct rpc_task * task) call_reserveresult() argument
1815 call_retry_reserve(struct rpc_task * task) call_retry_reserve() argument
1826 call_refresh(struct rpc_task * task) call_refresh() argument
1838 call_refreshresult(struct rpc_task * task) call_refreshresult() argument
1879 call_allocate(struct rpc_task * task) call_allocate() argument
1928 rpc_task_need_encode(struct rpc_task * task) rpc_task_need_encode() argument
1937 rpc_xdr_encode(struct rpc_task * task) rpc_xdr_encode() argument
1963 call_encode(struct rpc_task * task) call_encode() argument
2013 rpc_task_transmitted(struct rpc_task * task) rpc_task_transmitted() argument
2019 rpc_task_handle_transmitted(struct rpc_task * task) rpc_task_handle_transmitted() argument
2029 call_bind(struct rpc_task * task) call_bind() argument
2054 call_bind_status(struct rpc_task * task) call_bind_status() argument
2137 call_connect(struct rpc_task * task) call_connect() argument
2167 call_connect_status(struct rpc_task * task) call_connect_status() argument
2265 call_transmit(struct rpc_task * task) call_transmit() argument
2290 call_transmit_status(struct rpc_task * task) call_transmit_status() argument
2358 call_bc_encode(struct rpc_task * task) call_bc_encode() argument
2369 call_bc_transmit(struct rpc_task * task) call_bc_transmit() argument
2382 call_bc_transmit_status(struct rpc_task * task) call_bc_transmit_status() argument
2441 call_status(struct rpc_task * task) call_status() argument
2519 rpc_check_timeout(struct rpc_task * task) rpc_check_timeout() argument
2581 call_decode(struct rpc_task * task) call_decode() argument
2650 rpc_encode_header(struct rpc_task * task,struct xdr_stream * xdr) rpc_encode_header() argument
2679 rpc_decode_header(struct rpc_task * task,struct xdr_stream * xdr) rpc_decode_header() argument
2848 rpc_null_call_prepare(struct rpc_task * task,void * data) rpc_null_call_prepare() argument
2889 struct rpc_task *task; rpc_ping() local
2914 struct rpc_task *task; rpc_ping_noreply() local
2930 rpc_cb_add_xprt_done(struct rpc_task * task,void * calldata) rpc_cb_add_xprt_done() argument
2965 struct rpc_task *task; rpc_clnt_test_and_add_xprt() local
3005 struct rpc_task *task; rpc_clnt_add_xprt_helper() local
3348 rpc_show_task(const struct rpc_clnt * clnt,const struct rpc_task * task) rpc_show_task() argument
3365 struct rpc_task *task; rpc_show_tasks() local
[all...]
H A Dxprt.c75 static void xprt_request_init(struct rpc_task *task);
265 int xprt_reserve_xprt(struct rpc_xprt *xprt, struct rpc_task *task) in xprt_reserve_xprt() argument
267 struct rpc_rqst *req = task->tk_rqstp; in xprt_reserve_xprt()
270 if (task == xprt->snd_task) in xprt_reserve_xprt()
276 xprt->snd_task = task; in xprt_reserve_xprt()
279 trace_xprt_reserve_xprt(xprt, task); in xprt_reserve_xprt()
285 task->tk_status = -EAGAIN; in xprt_reserve_xprt()
286 if (RPC_IS_SOFT(task) || RPC_IS_SOFTCONN(task)) in xprt_reserve_xprt()
287 rpc_sleep_on_timeout(&xprt->sending, task, NULL, in xprt_reserve_xprt()
290 rpc_sleep_on(&xprt->sending, task, NULL); in xprt_reserve_xprt()
[all …]
/linux/kernel/livepatch/
H A Dtransition.c85 struct task_struct *g, *task;
122 for_each_process_thread(g, task) { in klp_complete_transition()
123 WARN_ON_ONCE(test_tsk_thread_flag(task, TIF_PATCH_PENDING)); in klp_complete_transition()
124 task->patch_state = KLP_TRANSITION_IDLE; in klp_complete_transition()
129 task = idle_task(cpu); in klp_complete_transition()
130 WARN_ON_ONCE(test_tsk_thread_flag(task, TIF_PATCH_PENDING)); in klp_complete_transition()
131 task->patch_state = KLP_TRANSITION_IDLE; in klp_complete_transition()
169 * Switch the patched state of the task to the set of functions in the target in klp_cancel_transition()
172 * NOTE: If task is not 'current', the caller must ensure the task i in klp_cancel_transition()
94 struct task_struct *g, *task; klp_complete_transition() local
184 klp_update_patch_state(struct task_struct * task) klp_update_patch_state() argument
263 klp_check_stack(struct task_struct * task,const char ** oldname) klp_check_stack() argument
293 klp_check_and_switch_task(struct task_struct * task,void * arg) klp_check_and_switch_task() argument
314 klp_try_switch_task(struct task_struct * task) klp_try_switch_task() argument
410 struct task_struct *g, *task; klp_send_signals() local
454 struct task_struct *g, *task; klp_try_complete_transition() local
532 struct task_struct *g, *task; klp_start_transition() local
575 struct task_struct *g, *task; klp_init_transition() local
651 struct task_struct *g, *task; klp_reverse_transition() local
730 struct task_struct *g, *task; klp_force_transition() local
[all...]
/linux/drivers/md/dm-vdo/indexer/
H A Dradix-sort.c45 struct task { struct
60 struct task *end_of_stack; argument
61 struct task insertion_list[256];
62 struct task stack[];
72 static inline void insert_key(const struct task task, sort_key_t *next) in insert_key() argument
78 while ((--next >= task.first_key) && in insert_key()
79 (compare(unsorted, next[0], task.offset, task.length) < 0)) in insert_key()
90 static inline void insertion_sort(const struct task task) in insertion_sort() argument
94 for (next = task.first_key + 1; next <= task.last_key; next++) in insertion_sort()
95 insert_key(task, next); in insertion_sort()
[all …]
/linux/kernel/bpf/
H A Dtask_iter.c39 struct task_struct *task; in task_group_seq_get_next() local
46 task = get_pid_task(pid, PIDTYPE_TGID); in task_group_seq_get_next()
47 if (!task) in task_group_seq_get_next()
53 return task; in task_group_seq_get_next()
62 task = get_pid_task(pid, PIDTYPE_PID); in task_group_seq_get_next()
64 return task; in task_group_seq_get_next()
67 task = find_task_by_pid_ns(common->pid_visiting, common->ns); in task_group_seq_get_next()
68 if (!task) in task_group_seq_get_next()
72 task = __next_thread(task); in task_group_seq_get_next()
73 if (!task) in task_group_seq_get_next()
[all …]
/linux/tools/testing/selftests/bpf/progs/
H A Drcu_read_lock.c33 struct task_struct *task; in get_cgroup_id() local
36 task = bpf_get_current_task_btf(); in get_cgroup_id()
37 if (task->pid != target_pid) in get_cgroup_id()
42 cgroups = task->cgroups; in get_cgroup_id()
54 struct task_struct *task, *real_parent; in task_succ() local
58 task = bpf_get_current_task_btf(); in task_succ()
59 if (task->pid != target_pid) in task_succ()
64 real_parent = task->real_parent; in task_succ()
83 struct task_struct *task, *real_parent; in no_lock() local
86 task in no_lock()
95 struct task_struct *task, *real_parent; two_regions() local
114 struct task_struct *task, *real_parent; non_sleepable_1() local
130 struct task_struct *task, *real_parent; non_sleepable_2() local
149 struct task_struct *task, *real_parent, *gparent; task_acquire() local
177 struct task_struct *task; miss_lock() local
191 struct task_struct *task; miss_unlock() local
203 struct task_struct *task, *real_parent; non_sleepable_rcu_mismatch() local
221 struct task_struct *task, *real_parent; inproper_sleepable_helper() local
265 struct task_struct *task, *real_parent; nested_rcu_region() local
284 struct task_struct *task, *group_leader; task_trusted_non_rcuptr() local
298 struct task_struct *task, *real_parent; task_untrusted_rcuptr() local
312 struct task_struct *task, *real_parent; cross_rcu_region() local
[all...]
H A Dtask_kfunc_success.c23 struct task_struct *bpf_task_acquire___one(struct task_struct *task) __ksym __weak;
39 static int test_acquire_release(struct task_struct *task) in test_acquire_release() argument
57 acquired = bpf_task_acquire(task); in test_acquire_release()
67 int BPF_PROG(test_task_kfunc_flavor_relo, struct task_struct *task, u64 clone_flags) in BPF_PROG() argument
73 acquired = bpf_task_acquire___one(task); in BPF_PROG()
79 acquired = bpf_task_acquire___two(task, &fake_ctx); in BPF_PROG()
97 int BPF_PROG(test_task_kfunc_flavor_relo_not_found, struct task_struct *task, u64 clone_flags) in BPF_PROG() argument
111 int BPF_PROG(test_task_acquire_release_argument, struct task_struct *task, u64 clone_flags) in BPF_PROG() argument
116 return test_acquire_release(task); in BPF_PROG()
120 int BPF_PROG(test_task_acquire_release_current, struct task_struct *task, u64 clone_flags) in BPF_PROG() argument
[all …]
H A Dverifier_global_ptr_args.c15 __weak int subprog_trusted_task_nullable(struct task_struct *task __arg_trusted __arg_nullable) in subprog_trusted_task_nullable()
17 if (!task) in subprog_trusted_task_nullable()
19 return task->pid + task->tgid; 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()
24 return subprog_trusted_task_nullable(task) + subprog_trusted_task_nullable(NULL); in subprog_trusted_task_nullable_extra_layer()
59 __weak int subprog_trusted_task_nonnull(struct task_struct *task __arg_trusted) in subprog_trusted_task_nonnull()
61 return task->pid + task->tgid; in subprog_trusted_task_nonnull()
108 struct task_struct___local *task __arg_trusted __arg_nullable) in subprog_nullable_task_flavor()
112 if (!task) in subprog_nullable_task_flavor()
115 return bpf_copy_from_user_task(&buf, sizeof(buf), NULL, (void *)task, 0); in subprog_nullable_task_flavor()
[all …]
/linux/arch/arm64/mm/
H A Dgcs.c139 void gcs_set_el0_mode(struct task_struct *task) in gcs_set_el0_mode() argument
143 if (task->thread.gcs_el0_mode & PR_SHADOW_STACK_ENABLE) in gcs_set_el0_mode()
146 if (task->thread.gcs_el0_mode & PR_SHADOW_STACK_WRITE) in gcs_set_el0_mode()
149 if (task->thread.gcs_el0_mode & PR_SHADOW_STACK_PUSH) in gcs_set_el0_mode()
155 void gcs_free(struct task_struct *task) in gcs_free() argument
160 if (!task->mm || task->mm != current->mm) in gcs_free()
163 if (task->thread.gcs_base) in gcs_free()
164 vm_munmap(task->thread.gcs_base, task->thread.gcs_size); in gcs_free()
166 task->thread.gcspr_el0 = 0; in gcs_free()
167 task->thread.gcs_base = 0; in gcs_free()
[all …]
/linux/arch/powerpc/kernel/
H A Dsignal.h36 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);
46 unsigned long copy_ckfpr_from_user(struct task_struct *task, void __user *from);
48 #define unsafe_copy_fpr_to_user(to, task, label) do { \ argument
49 struct task_struct *__t = task; \
[all …]
/linux/drivers/video/fbdev/
H A Duvesafb.c75 struct uvesafb_ktask *task; in uvesafb_cn_callback() local
84 task = uvfb_tasks[msg->seq]; in uvesafb_cn_callback()
86 if (!task || msg->ack != task->ack) { in uvesafb_cn_callback()
94 if (task->t.buf_len < utask->buf_len || in uvesafb_cn_callback()
103 memcpy(&task->t, utask, sizeof(*utask)); in uvesafb_cn_callback()
105 if (task->t.buf_len && task->buf) in uvesafb_cn_callback()
106 memcpy(task->buf, utask + 1, task->t.buf_len); in uvesafb_cn_callback()
108 complete(task->done); in uvesafb_cn_callback()
144 static int uvesafb_exec(struct uvesafb_ktask *task) in uvesafb_exec() argument
149 int len = sizeof(task->t) + task->t.buf_len; in uvesafb_exec()
[all …]
/linux/arch/mips/include/asm/
H A Dsyscall.h29 static inline bool mips_syscall_is_indirect(struct task_struct *task, in mips_syscall_is_indirect() argument
34 test_tsk_thread_flag(task, TIF_32BIT_REGS)) && in mips_syscall_is_indirect()
38 static inline long syscall_get_nr(struct task_struct *task, in syscall_get_nr() argument
41 return task_thread_info(task)->syscall; in syscall_get_nr()
44 static inline void syscall_set_nr(struct task_struct *task, in syscall_set_nr() argument
56 task_thread_info(task)->syscall = regs->regs[2] = nr; in syscall_set_nr()
59 static inline void mips_syscall_update_nr(struct task_struct *task, in mips_syscall_update_nr() argument
66 if (mips_syscall_is_indirect(task, regs)) in mips_syscall_update_nr()
67 task_thread_info(task)->syscall = regs->regs[4]; in mips_syscall_update_nr()
69 task_thread_info(task)->syscall = regs->regs[2]; in mips_syscall_update_nr()
[all …]
/linux/include/rv/
H A Dltl_monitor.h24 static void ltl_atoms_fetch(struct task_struct *task, struct ltl_monitor *mon);
25 static void ltl_atoms_init(struct task_struct *task, struct ltl_monitor *mon, bool task_creation);
27 static struct ltl_monitor *ltl_get_monitor(struct task_struct *task) in ltl_get_monitor() argument
29 return &task->rv[ltl_monitor_slot].ltl_mon; in ltl_get_monitor()
32 static void ltl_task_init(struct task_struct *task, bool task_creation) in ltl_task_init() argument
34 struct ltl_monitor *mon = ltl_get_monitor(task); in ltl_task_init()
41 ltl_atoms_init(task, mon, task_creation); in ltl_task_init()
42 ltl_atoms_fetch(task, mon); in ltl_task_init()
45 static void handle_task_newtask(void *data, struct task_struct *task, u64 flags) in handle_task_newtask() argument
47 ltl_task_init(task, true); in handle_task_newtask()
[all …]
/linux/drivers/scsi/
H A Dlibiscsi.c146 void iscsi_prep_data_out_pdu(struct iscsi_task *task, struct iscsi_r2t_info *r2t, in iscsi_prep_data_out_pdu() argument
149 struct iscsi_conn *conn = task->conn; in iscsi_prep_data_out_pdu()
152 task->hdr_len = sizeof(struct iscsi_data); in iscsi_prep_data_out_pdu()
159 hdr->lun = task->lun; in iscsi_prep_data_out_pdu()
160 hdr->itt = task->hdr_itt; in iscsi_prep_data_out_pdu()
176 static int iscsi_add_hdr(struct iscsi_task *task, unsigned len) in iscsi_add_hdr() argument
178 unsigned exp_len = task->hdr_len + len; in iscsi_add_hdr()
180 if (exp_len > task->hdr_max) { in iscsi_add_hdr()
186 task->hdr_len = exp_len; in iscsi_add_hdr()
193 static int iscsi_prep_ecdb_ahs(struct iscsi_task *task) in iscsi_prep_ecdb_ahs() argument
[all …]
/linux/fs/proc/
H A Dbase.c208 static int get_task_root(struct task_struct *task, struct path *root) in get_task_root() argument
212 task_lock(task); in get_task_root()
213 if (task->fs) { in get_task_root()
214 get_fs_root(task->fs, root); in get_task_root()
217 task_unlock(task); in get_task_root()
223 struct task_struct *task = get_proc_task(d_inode(dentry)); in proc_cwd_link() local
226 if (task) { in proc_cwd_link()
227 task_lock(task); in proc_cwd_link()
228 if (task->fs) { in proc_cwd_link()
229 get_fs_pwd(task->fs, path); in proc_cwd_link()
[all …]
H A Darray.c404 static void task_cpus_allowed(struct seq_file *m, struct task_struct *task) in task_cpus_allowed() argument
407 cpumask_pr_args(&task->cpus_mask)); in task_cpus_allowed()
409 cpumask_pr_args(&task->cpus_mask)); in task_cpus_allowed()
412 static inline void task_core_dumping(struct seq_file *m, struct task_struct *task) in task_core_dumping() argument
414 seq_put_decimal_ull(m, "CoreDumping:\t", !!task->signal->core_state); in task_core_dumping()
433 struct task_struct *task) in arch_proc_pid_thread_features() argument
438 struct pid *pid, struct task_struct *task) in proc_pid_status() argument
440 struct mm_struct *mm = get_task_mm(task); in proc_pid_status()
443 proc_task_name(m, task, true); in proc_pid_status()
446 task_state(m, ns, pid, task); in proc_pid_status()
[all …]
H A Dfd.c28 struct task_struct *task; in seq_show() local
30 task = get_proc_task(m->private); in seq_show()
31 if (!task) in seq_show()
34 task_lock(task); in seq_show()
35 files = task->files; in seq_show()
51 task_unlock(task); in seq_show()
52 put_task_struct(task); in seq_show()
89 struct task_struct *task = get_proc_task(inode); in proc_fdinfo_permission() local
91 if (!task) in proc_fdinfo_permission()
94 allowed = ptrace_may_access(task, PTRACE_MODE_READ_FSCREDS); in proc_fdinfo_permission()
[all …]
H A Dnamespaces.c47 struct task_struct *task; in proc_ns_get_link() local
54 task = get_proc_task(inode); in proc_ns_get_link()
55 if (!task) in proc_ns_get_link()
58 if (!ptrace_may_access(task, PTRACE_MODE_READ_FSCREDS)) in proc_ns_get_link()
61 error = ns_get_path(&ns_path, task, ns_ops); in proc_ns_get_link()
67 put_task_struct(task); in proc_ns_get_link()
75 struct task_struct *task; in proc_ns_readlink() local
79 task = get_proc_task(inode); in proc_ns_readlink()
80 if (!task) in proc_ns_readlink()
83 if (ptrace_may_access(task, PTRACE_MODE_READ_FSCREDS)) { in proc_ns_readlink()
[all …]
/linux/drivers/scsi/isci/
H A Dtask.c76 static void isci_task_refuse(struct isci_host *ihost, struct sas_task *task, in isci_task_refuse() argument
85 __func__, task, response, status); in isci_task_refuse()
87 spin_lock_irqsave(&task->task_state_lock, flags); in isci_task_refuse()
89 task->task_status.resp = response; in isci_task_refuse()
90 task->task_status.stat = status; in isci_task_refuse()
93 task->task_state_flags |= SAS_TASK_STATE_DONE; in isci_task_refuse()
94 task->task_state_flags &= ~SAS_TASK_STATE_PENDING; in isci_task_refuse()
95 task->lldd_task = NULL; in isci_task_refuse()
96 spin_unlock_irqrestore(&task->task_state_lock, flags); in isci_task_refuse()
98 task->task_done(task); in isci_task_refuse()
[all …]
/linux/include/linux/
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() argument
35 static inline void proc_exec_connector(struct task_struct *task) in proc_exec_connector() argument
[all …]
/linux/arch/arm/include/asm/
H A Dsyscall.h22 static inline int syscall_get_nr(struct task_struct *task, in syscall_get_nr() argument
26 return task_thread_info(task)->abi_syscall; in syscall_get_nr()
28 if (task_thread_info(task)->abi_syscall == -1) in syscall_get_nr()
31 return task_thread_info(task)->abi_syscall & __NR_SYSCALL_MASK; in syscall_get_nr()
34 static inline bool __in_oabi_syscall(struct task_struct *task) in __in_oabi_syscall() argument
37 (task_thread_info(task)->abi_syscall & __NR_OABI_SYSCALL_BASE); in __in_oabi_syscall()
45 static inline void syscall_rollback(struct task_struct *task, in syscall_rollback() argument
51 static inline long syscall_get_error(struct task_struct *task, in syscall_get_error() argument
58 static inline long syscall_get_return_value(struct task_struct *task, in syscall_get_return_value() argument
64 static inline void syscall_set_return_value(struct task_struct *task, in syscall_set_return_value() argument
[all …]
/linux/scripts/gdb/linux/
H A Dtasks.py4 # task & thread tools
39 for task in task_lists():
40 if int(task['pid']) == pid:
41 return task
46 """Find Linux task by PID and return the task_struct variable.
55 task = get_task_by_pid(pid)
56 if task:
57 return task.dereference()
59 raise gdb.GdbError("No task of PID " + str(pid))
73 for task i
86 get_thread_info(task) global() argument
103 invoke(self, task) global() argument
[all...]
/linux/tools/perf/util/bpf_skel/
H A Dkwork_top.bpf.c105 static __always_inline void update_task_info(struct task_struct *task, __u32 cpu) in update_task_info() argument
108 .pid = task->pid, in update_task_info()
114 .tgid = task->tgid, in update_task_info()
115 .is_kthread = task->flags & PF_KTHREAD ? 1 : 0, in update_task_info()
117 BPF_CORE_READ_STR_INTO(&data.comm, task, comm); in update_task_info()
139 static void on_sched_out(struct task_struct *task, __u64 ts, __u32 cpu) in on_sched_out() argument
144 pelem = bpf_task_storage_get(&kwork_top_task_time, task, NULL, 0); in on_sched_out()
152 .pid = task->pid, in on_sched_out()
153 .task_p = (__u64)task, in on_sched_out()
157 update_task_info(task, cpu); in on_sched_out()
[all …]
/linux/arch/riscv/kernel/
H A Dstacktrace.c24 #define READ_ONCE_TASK_STACK(task, x) \ argument
28 if ((task) == current) \
48 void notrace walk_stackframe(struct task_struct *task, struct pt_regs *regs, in walk_stackframe() argument
59 } else if (task == NULL || task == current) { in walk_stackframe()
66 fp = task->thread.s[0]; in walk_stackframe()
67 sp = task->thread.sp; in walk_stackframe()
68 pc = task->thread.ra; in walk_stackframe()
88 fp = READ_ONCE_TASK_STACK(task, frame->fp); in walk_stackframe()
89 pc = READ_ONCE_TASK_STACK(task, frame->ra); in walk_stackframe()
107 void notrace walk_stackframe(struct task_struct *task, in walk_stackframe() argument
[all …]

12345678910>>...42