函数逻辑报告 |
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 |
注解内核,赢得工具 | 下载SCCT | English |
函数名称: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 | |
u64 | cputime |
141 | u64 * cpustat = ({ |
141 | })->cpustat |
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_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 |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |