Function report |
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 activity | Download SCCT | Chinese |
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:
| Type | Parameter | Name |
|---|---|---|
| struct task_struct * | p | |
| u64 | cputime |
| 141 | u64 * cpustat = ({ |
| 141 | })->cpustat |
| 150 | cpustat[CPUTIME_NICE] += cputime |
| 151 | cpustat[CPUTIME_GUEST_NICE] += cputime |
| 152 | Else |
| 153 | cpustat[CPUTIME_USER] += cputime |
| 154 | cpustat[CPUTIME_GUEST] += cputime |
| Name | Describe |
|---|---|
| account_system_time | Account 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 |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |