函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Account 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

函数原型:void account_system_index_time(struct task_struct *p, u64 cputime, enum cpu_usage_stat index)

返回类型:void

参数:

类型参数名称
struct task_struct *p
u64cputime
enum cpu_usage_statindex
168  系统计时加等于cputime
169  account_group_system_time - Maintain stime for a thread group
172  task_group_account_field(p, index, cputime)
175  acct_account_cputime(p)
调用者
名称描述
account_system_timeAccount system CPU time to a process.*@p: the process that the CPU time gets accounted to*@hardirq_offset: the offset to subtract from hardirq_count()*@cputime: the CPU time spent in kernel space since the last update