函数逻辑报告 |
Source Code:kernel\sched\cputime.c |
Create Date:2022-07-27 10:38:01 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称: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
函数原型:void account_system_time(struct task_struct *p, int hardirq_offset, u64 cputime)
返回类型:void
参数:
类型 | 参数 | 名称 |
---|---|---|
struct task_struct * | p | |
int | hardirq_offset | |
u64 | cputime |
188 | 如果任务标志按位与I'm a virtual CPU 且irq_count()减hardirq_offset恒等于0则 |
193 | 如果hardirq_count()减hardirq_offset则index等于CPUTIME_IRQ |
195 | 否则如果in_serving_softirq()则index等于CPUTIME_SOFTIRQ |
197 | 否则index等于CPUTIME_SYSTEM |
名称 | 描述 |
---|---|
account_process_tick | 更新当前进程的内核态和用户态占用率 |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |