函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\cpu\resctrl\monitor.c Create Date:2022-07-27 09:12:29
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Supporting function to calculate the memory bandwidth* and delta bandwidth in MBps.

函数原型:static void mbm_bw_count(unsigned int rmid, struct rmid_read *rr)

返回类型:void

参数:

类型参数名称
unsigned intrmid
struct rmid_read *rr
273  r等于rdt_resources_all[RDT_RESOURCE_L3]
274  m等于mbm_local[rmid]
277  tval等于__rmid_read(rmid, evtid)
278  如果tval按位与RMID_VAL_ERROR按位或RMID_VAL_UNAVAIL的值则返回
281  chunks等于mbm_overflow_count(prev_bw_msr, tval)
282  chunks_bw加等于chunks
283  chunks等于chunks_bw
284  cur_bw等于chunksmon_scale右移20位
286  如果delta_compdelta_bw等于abs - return absolute value of an argument*@x: the value. If it is unsigned type, it is converted to signed type first.* char is treated as if it was signed (regardless of whether it really is)* but the macro's return type is preserved as char.(cur_bw - prev_bw)
288  delta_comp = false
289  prev_bw等于cur_bw
290  prev_bw_msr等于tval
调用者
名称描述
mbm_update