函数逻辑报告 |
Source Code:lib\flex_proportions.c |
Create Date:2022-07-27 07:11:22 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:fprop_reflect_period_percpu
函数原型:static void fprop_reflect_period_percpu(struct fprop_global *p, struct fprop_local_percpu *pl)
返回类型:void
参数:
类型 | 参数 | 名称 |
---|---|---|
struct fprop_global * | p | |
struct fprop_local_percpu * | pl |
192 | period等于Current period |
196 | 如果Period in which we last updated events 恒等于period则返回 |
200 | 如果Period in which we last updated events 大于等于period则 |
202 | 返回 |
206 | val等于percpu_counter_read( & he local events counter ) |
211 | percpu_counter_add_batch( & he local events counter , - val + (val >> (period - Period in which we last updated events )), ---- PERCPU ----) |
213 | 否则percpu_counter_set( & he local events counter , 0) |
名称 | 描述 |
---|---|
__fprop_inc_percpu | Event of type pl happened |
fprop_fraction_percpu | |
__fprop_inc_percpu_max | Like __fprop_inc_percpu() except that event is counted only if the given* type has fraction smaller than @max_frac/FPROP_FRAC_BASE |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |