public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Aaron Tomlin <atomlin@atomlin.com>
To: tony.luck@intel.com, reinette.chatre@intel.com,
	Dave.Martin@arm.com, james.morse@arm.com, babu.moger@amd.com,
	tglx@linutronix.de, mingo@redhat.com, bp@alien8.de,
	dave.hansen@linux.intel.com
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH 1/1] fs/resctrl: Show domain CPU list in schema output
Date: Fri, 31 Oct 2025 14:17:21 -0400	[thread overview]
Message-ID: <20251031181722.250851-2-atomlin@atomlin.com> (raw)
In-Reply-To: <20251031181722.250851-1-atomlin@atomlin.com>

The resctrl schemata output currently displays only the domain ID and
its configured value e.g., "0=ffff". This format lacks visibility into
the underlying topology, making it difficult for users to quickly verify
which logical CPUs belong to the listed resource domain.

This patch improves visibility and aids in validation when configuring
or monitoring resource groupings, changing the output format from
"0=ffff" to "0=ffff,0-15".

Signed-off-by: Aaron Tomlin <atomlin@atomlin.com>
---
 fs/resctrl/ctrlmondata.c | 4 +++-
 fs/resctrl/rdtgroup.c    | 4 ++--
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/fs/resctrl/ctrlmondata.c b/fs/resctrl/ctrlmondata.c
index 0d0ef54fc4de..5ad12d15b350 100644
--- a/fs/resctrl/ctrlmondata.c
+++ b/fs/resctrl/ctrlmondata.c
@@ -402,7 +402,9 @@ static void show_doms(struct seq_file *s, struct resctrl_schema *schema, int clo
 			ctrl_val = resctrl_arch_get_config(r, dom, closid,
 							   schema->conf_type);
 
-		seq_printf(s, schema->fmt_str, dom->hdr.id, ctrl_val);
+		seq_printf(s, schema->fmt_str, dom->hdr.id, ctrl_val,
+			   cpumask_pr_args(&dom->hdr.cpu_mask));
+
 		sep = true;
 	}
 	seq_puts(s, "\n");
diff --git a/fs/resctrl/rdtgroup.c b/fs/resctrl/rdtgroup.c
index 0320360cd7a6..cec89ae549e0 100644
--- a/fs/resctrl/rdtgroup.c
+++ b/fs/resctrl/rdtgroup.c
@@ -2661,10 +2661,10 @@ static int schemata_list_add(struct rdt_resource *r, enum resctrl_conf_type type
 
 	switch (r->schema_fmt) {
 	case RESCTRL_SCHEMA_BITMAP:
-		s->fmt_str = "%d=%x";
+		s->fmt_str = "%d=%x,%*pbl";
 		break;
 	case RESCTRL_SCHEMA_RANGE:
-		s->fmt_str = "%d=%u";
+		s->fmt_str = "%d=%u,%*pbl";
 		break;
 	}
 
-- 
2.51.0


  reply	other threads:[~2025-10-31 18:17 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-10-31 18:17 [PATCH 0/1] fs/resctrl: Show domain CPU list in schema output Aaron Tomlin
2025-10-31 18:17 ` Aaron Tomlin [this message]
2025-10-31 19:03 ` Luck, Tony
2025-10-31 21:25   ` Aaron Tomlin
2025-11-03 16:19     ` Dave Martin
2025-11-06  4:41       ` Aaron Tomlin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20251031181722.250851-2-atomlin@atomlin.com \
    --to=atomlin@atomlin.com \
    --cc=Dave.Martin@arm.com \
    --cc=babu.moger@amd.com \
    --cc=bp@alien8.de \
    --cc=dave.hansen@linux.intel.com \
    --cc=james.morse@arm.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@redhat.com \
    --cc=reinette.chatre@intel.com \
    --cc=tglx@linutronix.de \
    --cc=tony.luck@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox