Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:rdtgroup_mondata_show

Proto:int rdtgroup_mondata_show(struct seq_file *m, void *arg)

Type:int

Parameter:

TypeParameterName
struct seq_file *m
void *arg
515  of = private
522  ret = 0
524  rdtgrp = rdtgroup_kn_lock_live( published fields )
525  If Not rdtgrp Then
526  ret = -ENOENT
527  Go to 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  If IS_ERR_OR_NULL(d) Then
538  ret = -ENOENT
539  Go to out
542  mon_event_read( & rr, d, rdtgrp, evtid, false)
544  If val & RMID_VAL_ERROR Then seq_puts(m, "Error\n")
546  Else if val & RMID_VAL_UNAVAIL Then seq_puts(m, "Unavailable\n")
548  Else seq_printf(m, "%llu\n", val * mon_scale)
551  out :
552  rdtgroup_kn_unlock( published fields )
553  Return ret