函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

函数原型:void account_user_time(struct task_struct *p, u64 cputime)

返回类型:void

参数:

类型参数名称
struct task_struct *p
u64cputime
122  用户计时加等于cputime
123  account_group_user_time - Maintain utime for a thread group
125  index等于如果返回给定任务的值大于0则CPUTIME_NICE否则CPUTIME_USER
128  task_group_account_field(p, index, cputime)
131  acct_account_cputime(p)
调用者
名称描述
account_process_tick更新当前进程的内核态和用户态占用率