Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\cpu\resctrl\monitor.c Create Date:2022-07-28 08:12:29
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Supporting function to calculate the memory bandwidth* and delta bandwidth in MBps.

Proto:static void mbm_bw_count(unsigned int rmid, struct rmid_read *rr)

Type:void

Parameter:

TypeParameterName
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  If tval & (RMID_VAL_ERROR | RMID_VAL_UNAVAIL) Then Return
281  chunks = mbm_overflow_count(prev_bw_msr, tval)
282  chunks_bw += chunks
283  chunks = chunks_bw
284  cur_bw = chunks * mon_scale >> 20
286  If delta_comp Then delta_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
Caller
NameDescribe
mbm_update