Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\sched\cpuacct.c Create Date:2022-07-28 09:44:18
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Return CPU accounting group to which this task belongs

Proto:static inline struct cpuacct *task_ca(struct task_struct *tsk)

Type:struct cpuacct

Parameter:

TypeParameterName
struct task_struct *tsk
43  Return css_ca(ask_css - obtain css for (task, subsys)*@task: the target task*@subsys_id: the target subsystem ID* See task_css_check().)
Caller
NameDescribe
cpuacct_chargeharge this task's execution time to its accounting group.* called with rq->lock held.
cpuacct_account_fieldAdd user/system time to cpuacct.* Note: it's the caller that updates the account of the root cgroup.