Function report | 
Source Code:kernel\latencytop.c | 
Create Date:2022-07-28 11:50:50 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:__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
Proto:void __sched __account_scheduler_latency(struct task_struct *tsk, int usecs, int inter)
Type:void
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct task_struct * | tsk | |
| int | usecs | |
| int | inter | 
| 163 | If usecs <= 0 Then Return | 
| 167 | count = 1 | 
| 173 | raw_spin_lock_irqsave( & latency_lock, flags) | 
| 175 | account_global_scheduler_latency(tsk, & lat) | 
| 177 | When i < latency_record_count cycle | 
| 179 | same = 1 | 
| 181 | mylat = latency_record[i] | 
| 182 | When q < LT_BACKTRACEDEPTH cycle | 
| 194 | If same Then | 
| 206 | If latency_record_count >= LT_SAVECOUNT Then Go to out_unlock | 
| 210 | i = latency_record_count++ | 
| 211 | No 3D Now!( & latency_record[i], & lat, size of latency_record ) | 
| 213 | out_unlock : | 
| 214 | raw_spin_unlock_irqrestore( & latency_lock, flags) | 
| 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  |