函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\sched\cputime.h Create Date:2022-07-27 06:42:33
Last Modify:2021-07-28 12:50:14 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:account_group_user_time - Maintain utime for a thread group

函数原型:static inline void account_group_user_time(struct task_struct *tsk, u64 cputime)

返回类型:void

参数:

类型参数名称
struct task_struct *tsk
u64cputime
131  cputimer等于The following are functions that support scheduler-internal time accounting.* These functions are generally called at the timer tick. None of this depends* on CONFIG_SCHEDSTATS.
133  如果非cputimer则返回
136  atomic64_add(cputime, & utime)
调用者
名称描述
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_guest_timeAccount guest CPU time to a process.*@p: the process that the CPU time gets accounted to*@cputime: the CPU time spent in virtual machine since the last update