函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:rdtgroup_mondata_show

函数原型:int rdtgroup_mondata_show(struct seq_file *m, void *arg)

返回类型:int

参数:

类型参数名称
struct seq_file *m
void *arg
515  of等于private
522  ret等于0
524  rdtgrp等于rdtgroup_kn_lock_live( published fields )
525  如果非rdtgrp
526  ret等于负ENOENT
527  转到:out
530  priv等于priv
531  resid等于rid
532  domid等于domid
533  evtid等于evtid
535  r等于rdt_resources_all[resid]
536  d等于dt_find_domain - Find a domain in a resource that matches input resource id* Search resource r's domain list to find the resource id. If the resource* id is found in a domain, return the domain. Otherwise, if requested by
537  如果是错误或空
538  ret等于负ENOENT
539  转到:out
542  mon_event_read( & rr, d, rdtgrp, evtid, false)
544  如果val按位与RMID_VAL_ERRORseq_puts(m, "Error\n")
546  否则如果val按位与RMID_VAL_UNAVAILseq_puts(m, "Unavailable\n")
548  否则seq_printf(m, "%llu\n", val * mon_scale)
551  out :
552  rdtgroup_kn_unlock( published fields )
553  返回:ret