函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\sched\cputime.c Create Date:2022-07-27 10:37:57
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:task_group_account_field

函数原型:static inline void task_group_account_field(struct task_struct *p, int index, u64 tmp)

返回类型:void

参数:

类型参数名称
struct task_struct *p
intindex
u64tmp
107  __this_cpu_add(cpustat[index], tmp)
109  cgroup_account_cputime_field(p, index, tmp)
调用者
名称描述
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