函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

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

返回类型:void

参数:

类型参数名称
struct task_struct *p
u64cputime
141  u64 * cpustat = ({
141  0
141  ({
141  循环
141  const void * __vpp_verify = NULL
141  当0循环
141  })
141  })->cpustat
144  用户计时加等于cputime
145  account_group_user_time - Maintain utime for a thread group
146  通用计时加等于cputime
149  如果返回给定任务的值大于0则
150  cpustat[CPUTIME_NICE]加等于cputime
151  cpustat[CPUTIME_GUEST_NICE]加等于cputime
152  否则
153  cpustat[CPUTIME_USER]加等于cputime
154  cpustat[CPUTIME_GUEST]加等于cputime
调用者
名称描述
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