Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Like __fprop_inc_percpu() except that event is counted only if the given* type has fraction smaller than @max_frac/FPROP_FRAC_BASE

Proto:void __fprop_inc_percpu_max(struct fprop_global *p, struct fprop_local_percpu *pl, int max_frac)

Type:void

Parameter:

TypeParameterName
struct fprop_global *p
struct fprop_local_percpu *pl
intmax_frac
262  If Value for the false possibility is greater at compile time(max_frac < FPROP_FRAC_BASE) Then
265  fprop_fraction_percpu(p, pl, & numerator, & denominator)
266  If numerator > denominator * max_frac >> When maximum proportion of some event type is specified, this is the* precision with which we allow limitting. Note that this creates an upper* bound on the number of events per period like* ULLONG_MAX >> FPROP_FRAC_SHIFT. Then Return
269  Else fprop_reflect_period_percpu(p, pl)
271  percpu_counter_add_batch( & he local events counter , 1, ---- PERCPU ----)
272  percpu_counter_add( & Number of events in the current period , 1)