函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\latencytop.c Create Date:2022-07-27 12:55:57
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:account_global_scheduler_latency

函数原型:static void __sched account_global_scheduler_latency(struct task_struct *tsk, struct latency_record *lat)

返回类型:void

参数:

类型参数名称
struct task_struct *tsk
struct latency_record *lat
89  firstnonnull等于MAXLR加1
93  如果非内存信息则返回
96 i小于MAXLR循环
97  same等于1
100  如果非backtrace[0]则
101  如果firstnonnull大于ifirstnonnull等于i
103  继续下一循环
105 q小于LT_BACKTRACEDEPTH循环
106  record等于backtrace[q]
108  如果backtrace[q]不等于record
109  same等于0
110  退出
114  如果非record退出
117  如果same
118  count自加
119  time加等于time
120  如果time大于maxmax等于time
122  返回
126  i等于firstnonnull
127  如果i大于等于MAXLR减1则返回
131  内存复制( & latency_record[i], lat, latency_record的长度)
调用者
名称描述
__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