Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

Proto:void account_guest_time(struct task_struct *p, u64 cputime)

Type:void

Parameter:

TypeParameterName
struct task_struct *p
u64cputime
141  u64 * cpustat = ({
141  0
141  ({
141  Do
141  const void * __vpp_verify = NULL
141  When 0 cycle
141  })
141  })->cpustat
144  utime += cputime
145  account_group_user_time - Maintain utime for a thread group
146  gtime += cputime
149  If ask_nice - return the nice value of a given task.*@p: the task in question.* Return: The nice value [ -20 ... 0 ... 19 ]. > 0 Then
150  cpustat[CPUTIME_NICE] += cputime
151  cpustat[CPUTIME_GUEST_NICE] += cputime
152  Else
153  cpustat[CPUTIME_USER] += cputime
154  cpustat[CPUTIME_GUEST] += cputime
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