Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1533547

[PATCH] intel-rdt: show mount options

From Shaohua Li <shli@fb.com>
Newsgroups linux.kernel
Subject [PATCH] intel-rdt: show mount options
Date 2016-11-30 21:40 +0100
Message-ID <sJjPz-2oq-3@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


Show mount options when cdp is enabled

Cc: Fenghua Yu <fenghua.yu@intel.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Shaohua Li <shli@fb.com>
---
 arch/x86/kernel/cpu/intel_rdt_rdtgroup.c | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/arch/x86/kernel/cpu/intel_rdt_rdtgroup.c b/arch/x86/kernel/cpu/intel_rdt_rdtgroup.c
index fb8e03e..49438b0 100644
--- a/arch/x86/kernel/cpu/intel_rdt_rdtgroup.c
+++ b/arch/x86/kernel/cpu/intel_rdt_rdtgroup.c
@@ -1034,9 +1034,19 @@ static int rdtgroup_rmdir(struct kernfs_node *kn)
 	return ret;
 }
 
+static int rdtgroup_show_options(struct seq_file *seq,
+	struct kernfs_root *kf_root)
+{
+	struct rdt_resource *r_l3data = &rdt_resources_all[RDT_RESOURCE_L3DATA];
+	if (r_l3data->enabled)
+		seq_puts(seq, ",cdp");
+	return 0;
+}
+
 static struct kernfs_syscall_ops rdtgroup_kf_syscall_ops = {
 	.mkdir	= rdtgroup_mkdir,
 	.rmdir	= rdtgroup_rmdir,
+	.show_options = rdtgroup_show_options,
 };
 
 static int __init rdtgroup_setup_root(void)
-- 
2.9.3

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

[PATCH] intel-rdt: show mount options Shaohua Li <shli@fb.com> - 2016-11-30 21:40 +0100
  Re: [PATCH] intel-rdt: show mount options Thomas Gleixner <tglx@linutronix.de> - 2016-11-30 23:30 +0100

csiph-web