函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:fprop_reflect_period_single

函数原型:static void fprop_reflect_period_single(struct fprop_global *p, struct fprop_local_single *pl)

返回类型:void

参数:

类型参数名称
struct fprop_global *p
struct fprop_local_single *pl
109  period等于Current period
113  如果Period in which we last updated events 恒等于period则返回
115  raw_spin_lock_irqsave( & Protect period and numerator , flags)
117  如果Period in which we last updated events 大于等于period
118  raw_spin_unlock_irqrestore( & Protect period and numerator , flags)
119  返回
122  如果periodPeriod in which we last updated events 小于BITS_PER_LONGhe local events counter 右移等于periodPeriod in which we last updated events
124  否则he local events counter 等于0
126  Period in which we last updated events 等于period
127  raw_spin_unlock_irqrestore( & Protect period and numerator , flags)
调用者
名称描述
__fprop_inc_singleEvent of type pl happened
fprop_fraction_singleReturn fraction of events of type pl