Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\latencytop.c Create Date:2022-07-28 11:50:46
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:account_global_scheduler_latency

Proto:static void __sched account_global_scheduler_latency(struct task_struct *tsk, struct latency_record *lat)

Type:void

Parameter:

TypeParameterName
struct task_struct *tsk
struct latency_record *lat
89  firstnonnull = MAXLR + 1
93  If Not mm Then Return
96  When i < MAXLR cycle
97  same = 1
100  If Not backtrace[0] Then
101  If firstnonnull > i Then firstnonnull = i
103  Continue
105  When q < LT_BACKTRACEDEPTH cycle
106  record = backtrace[q]
108  If backtrace[q] != record Then
109  same = 0
110  Break
114  If Not record Then Break
117  If same Then
118  count++
119  time += time
120  If time > max Then max = time
122  Return
126  i = firstnonnull
127  If i >= MAXLR - 1 Then Return
131  No 3D Now!( & latency_record[i], lat, size of latency_record )
Caller
NameDescribe
__account_scheduler_latency__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