函数逻辑报告

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:33
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Feedback loop for MBA software controller (mba_sc)* mba_sc is a feedback loop where we periodically read MBM counters and* adjust the bandwidth percentage values via the IA32_MBA_THRTL_MSRs so* that:* current bandwdith(cur_bw) < user specified

函数原型:static void update_mba_bw(struct rdtgroup *rgrp, struct rdt_domain *dom_mbm)

返回类型:void

参数:

类型参数名称
struct rdtgroup *rgrp
struct rdt_domain *dom_mbm
363  如果非is_mbm_local_enabled()则返回
366  r_mba等于rdt_resources_all[RDT_RESOURCE_MBA]
367  closid等于closid
368  rmid等于rmid
369  pmbm_data等于mbm_local[rmid]
371  dom_mba等于get_domain_from_cpu(当前cpu ID(), r_mba)
372  如果非dom_mba
373  pr_warn_once("Failure to get domain for MBA update\n")
374  返回
377  cur_bw等于prev_bw
378  user_bw等于mbps_val[closid]
379  delta_bw等于delta_bw
380  cur_msr_val等于ctrl_val[closid]
385  head等于crdtgrp_list
387  cmbm_data等于mbm_local[rmid]
388  cur_bw加等于prev_bw
389  delta_bw加等于delta_bw
406  如果cur_msr_val大于min_bwuser_bw小于cur_bw
407  new_msr_val等于cur_msr_valbw_gran
408  否则如果cur_msr_val小于MAX_MBA_BWuser_bw大于cur_bwdelta_bw
410  new_msr_val等于cur_msr_valbw_gran
411  否则
412  返回
415  cur_msr等于msr_baseclosid
416  wrmsrl(cur_msr, Map the memory b/w percentage value to delay values* that can be written to QOS_MSRs.* There are currently no SKUs which support non linear delay values.)
417  ctrl_val[closid]等于new_msr_val
429  delta_comp = true
431  cmbm_data等于mbm_local[rmid]
432  delta_comp = true
调用者
名称描述
mbm_handle_overflow