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:28
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:__mon_event_count

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

Type:int

Parameter:

TypeParameterName
unsigned intrmid
struct rmid_read *rr
230  tval = __rmid_read(rmid, evtid)
231  If tval & (RMID_VAL_ERROR | RMID_VAL_UNAVAIL) Then
232  val = tval
233  Return -EINVAL
237  val += tval
238  Return 0
240  m = mbm_total[rmid]
241  Break
243  m = mbm_local[rmid]
244  Break
245  Default
250  Return -EINVAL
253  If first Then
254  memset(m, 0, sizeof(structmbm_state))
256  Return 0
259  chunks = mbm_overflow_count(prev_msr, tval)
260  chunks += chunks
261  prev_msr = tval
263  val += chunks
264  Return 0
Caller
NameDescribe
mon_event_countThis is called via IPI to read the CQM/MBM counters* on a domain.
mbm_update