Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\tsacct_kern.h Create Date:2022-07-28 05:59:00
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:acct_account_cputime

Proto:static inline void acct_account_cputime(struct task_struct *tsk)

Type:void

Parameter:

TypeParameterName
struct task_struct *tsk

NULL

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