函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\sched.h Create Date:2022-07-27 06:58:36
Last Modify:2021-07-28 10:30:23 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:task_cpu

函数原型:static inline unsigned int task_cpu(const struct task_struct *p)

返回类型:unsigned int

参数:

类型参数名称
const struct task_struct *p
1847  返回:0
调用者
名称描述
task_currask_curr - is this task currently executing on a CPU?*@p: the task in question.* Return: 1 if the task is currently executing. 0 otherwise.
try_to_wake_upry_to_wake_up - wake up a thread*@p: the thread to be awakened*@state: the mask of task states that can be woken*@wake_flags: wake modifier flags (WF_*)* If (@state & @p->state) @p->state = TASK_RUNNING.
prefetch_curr_exec_startThe function fair_sched_class.update_curr accesses the struct curr* and its field curr->exec_start; when called from task_sched_runtime(),* we observe a high rate of cache misses in practice.* Prefetching this data results in improved performance.
task_cfs_rq
task_non_contendingThe utilization of a task cannot be immediately removed from* the rq active utilization (running_bw) when the task blocks
inactive_task_timer
sched_dl_overflowWe must be sure that accepting a new task (or allowing changing the* parameters of an existing one) is consistent with the bandwidth* constraints. If yes, this function also accordingly updates the currently
print_rq
psi_task_change
rcu_torture_stats_printPrint torture statistics
rcu_request_urgent_qs_taskIf a holdout task is actually running, request an urgent quiescent* state from its CPU
tracing_sched_switch_trace
tracing_sched_wakeup_trace
probe_wakeup
remote_function
task_function_callask_function_call - call a function on the cpu on which a task runs*@p: the task to evaluate*@func: the function to be called*@info: the function call argument* Calls the function @func when the task is currently running
task_node
kdb_process_cpu
rcu_check_gp_kthread_starvationComplain about starvation of grace-period kthread.