Re: [PATCH v14 14/32] fs/resctrl: Introduce interface to display number of free MBM counters
From: Reinette Chatre
Date: Tue Jun 24 2025 - 19:41:49 EST
Hi Babu,
On 6/13/25 2:04 PM, Babu Moger wrote:
> +static int resctrl_available_mbm_cntrs_show(struct kernfs_open_file *of,
> + struct seq_file *s, void *v)
> +{
> + struct rdt_resource *r = rdt_kn_parent_priv(of->kn);
> + struct rdt_mon_domain *dom;
> + bool sep = false;
> + u32 cntrs, i;
> + int ret = 0;
> +
> + cpus_read_lock();
> + mutex_lock(&rdtgroup_mutex);
> +
> + rdt_last_cmd_clear();
> +
> + if (!resctrl_arch_mbm_cntr_assign_enabled(r)) {
> + rdt_last_cmd_puts("mbm_cntr_assign mode is not enabled\n");
Missed this in earlier response ... needs update to new terms.
Reinette