函数逻辑报告 |
Source Code:block\blk-iocost.c |
Create Date:2022-07-27 19:23:55 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:ioc_lat_stat
函数原型:static void ioc_lat_stat(struct ioc *ioc, unsigned int *missed_ppm_ar, unsigned int *rq_wait_pct_p)
返回类型:void
参数:
类型 | 参数 | 名称 |
---|---|---|
struct ioc * | ioc | |
unsigned int * | missed_ppm_ar | |
unsigned int * | rq_wait_pct_p |
1273 | unsigned int nr_met[2] = {} |
1274 | unsigned int nr_missed[2] = {} |
1275 | rq_wait_ns等于0 |
1279 | stat等于per_cpu_ptr(pcpu_stat, cpu) |
1284 | this_missed等于READ_ONCE(nr_missed) |
1287 | nr_missed[rw]加等于this_missed减last_missed |
1289 | last_missed等于this_missed |
1292 | this_rq_wait_ns等于READ_ONCE(rq_wait_ns) |
1298 | 如果nr_met[rw]加nr_missed[rw]则missed_ppm_ar[rw]等于DIV64_U64_ROUND_UP((u64)nr_missed[rw] * MILLION, nr_met[rw] + nr_missed[rw]) |
1302 | 否则missed_ppm_ar[rw]等于0 |
名称 | 描述 |
---|---|
ioc_timer_fn |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |