Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name: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

Proto:void account_system_index_time(struct task_struct *p, u64 cputime, enum cpu_usage_stat index)

Type:void

Parameter:

TypeParameterName
struct task_struct *p
u64cputime
enum cpu_usage_statindex
168  stime += 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)
Caller
NameDescribe
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