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

Name:rdt_get_mon_l3_config

Proto:int rdt_get_mon_l3_config(struct rdt_resource *r)

Type:int

Parameter:

TypeParameterName
struct rdt_resource *r
617  cl_size = KB - valid for CPUS which support this call:
620  mon_scale = scale to bytes
621  num_rmid = max index + 1
630  This is the threshold cache occupancy at which we will consider an* RMID available for re-allocation. = cl_size * 1024 / num_rmid
633  This is the threshold cache occupancy at which we will consider an* RMID available for re-allocation. /= mon_scale
635  ret = dom_data_init(r)
636  If ret Then Return ret
639  Initialize the event list for the resource.* Note that MBM events are also part of RDT_RESOURCE_L3 resource* because as per the SDM the total and local memory bandwidth* are enumerated as part of L3 monitoring.
641  mon_capable = true
642  mon_enabled = true
644  Return 0