函数逻辑报告 | 
Source Code:kernel\latencytop.c | 
Create Date:2022-07-27 12:56:01 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| 首页 | 函数Tree | 
| 注解内核,赢得工具 | 下载SCCT | English | 
函数名称:__account_scheduler_latency - record an occurred latency*@tsk - the task struct of the task hitting the latency*@usecs - the duration of the latency in microseconds*@inter - 1 if the sleep was interruptible, 0 if uninterruptible* This function is the main
函数原型:void __sched __account_scheduler_latency(struct task_struct *tsk, int usecs, int inter)
返回类型:void
参数:
| 类型 | 参数 | 名称 | 
|---|---|---|
| struct task_struct * | tsk | |
| int | usecs | |
| int | inter | 
| 163 | 如果usecs小于等于0则返回 | 
| 167 | count等于1 | 
| 173 | raw_spin_lock_irqsave( & latency_lock, flags) | 
| 175 | account_global_scheduler_latency(tsk, & lat) | 
| 177 | 以i小于latency_record_count循环 | 
| 206 | 如果latency_record_count大于等于LT_SAVECOUNT则转到:out_unlock | 
| 210 | i等于latency_record_count自加 | 
| 211 | 内存复制( & latency_record[i], & lat, latency_record的长度) | 
| 213 | out_unlock : | 
| 214 | raw_spin_unlock_irqrestore( & latency_lock, flags) | 
| 源代码转换工具 开放的插件接口  | X | 
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码  |