Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:task_group_account_field

Proto:static inline void task_group_account_field(struct task_struct *p, int index, u64 tmp)

Type:void

Parameter:

TypeParameterName
struct task_struct *p
intindex
u64tmp
107  __this_cpu_add(cpustat[index], tmp)
109  cgroup_account_cputime_field(p, index, tmp)
Caller
NameDescribe
account_user_timeAccount user CPU time to a process.*@p: the process that the CPU time gets accounted to*@cputime: the CPU time spent in user space since the last update
account_system_index_timeAccount system CPU time to a process and desired cpustat field*@p: the process that the CPU time gets accounted to*@cputime: the CPU time spent in kernel space since the last update*@index: pointer to cpustat field that has to be updated