函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:dim_calc_stats

函数原型:void dim_calc_stats(struct dim_sample *start, struct dim_sample *end, struct dim_stats *curr_stats)

返回类型:void

参数:

类型参数名称
struct dim_sample *start
struct dim_sample *end
struct dim_stats *curr_stats
61  delta_us等于ktime_us_delta(time, time)
62  npkts等于Calculate the gap between two values.* Take wrap-around and variable size into consideration.(BITS_PER_TYPE(u32), pkt_ctr, pkt_ctr)
63  nbytes等于Calculate the gap between two values.* Take wrap-around and variable size into consideration.(BITS_PER_TYPE(u32), byte_ctr, byte_ctr)
65  ncomps等于Calculate the gap between two values.* Take wrap-around and variable size into consideration.(BITS_PER_TYPE(u32), comp_ctr, comp_ctr)
68  如果非delta_us则返回
71  packets per msec 等于DIV_ROUND_UP(npkts * USEC_PER_MSEC, delta_us)
72  ytes per msec 等于DIV_ROUND_UP(nbytes * USEC_PER_MSEC, delta_us)
73  vents per msec 等于DIV_ROUND_UP(Number of events between DIM iterations.* Causes a moderation of the algorithm run. * USEC_PER_MSEC, delta_us)
75  completions per msec 等于DIV_ROUND_UP(ncomps * USEC_PER_MSEC, delta_us)
76  如果vents per msec 不等于0则atio of completions to events 等于DIV_ROUND_DOWN_ULL(completions per msec * 100, vents per msec )
79  否则atio of completions to events 等于0
调用者
名称描述
net_dim
rdma_dim