[PATCH v1 2/4] fs/resctrl: Only show 'event_filter' files if events are configurable

From: Ben Horgan

Date: Wed Feb 25 2026 - 15:21:19 EST


When the counter assignment mode is mbm_event resctrl assumes the mbm
events are configurable and exposes the 'event_filter' files. These files
live at info/L3_MON/event_configs/<event>/event_filter and are used to
display and set the event configuration.

ABMC always supports event configuration but for MPAM they are
independent. Decouple event configuration from counter assignment by only
showing the 'event_filter' interface when event configuration is supported
at the same time as 'mbm_event' counter assignment.

Remove only the 'event_filter' files and not the containing directories so
that their names can still be used to identify the assignable counters.

Signed-off-by: Ben Horgan <ben.horgan@xxxxxxx>
---
fs/resctrl/rdtgroup.c | 3 +++
1 file changed, 3 insertions(+)

diff --git a/fs/resctrl/rdtgroup.c b/fs/resctrl/rdtgroup.c
index 5da305bd36c9..e79929d84317 100644
--- a/fs/resctrl/rdtgroup.c
+++ b/fs/resctrl/rdtgroup.c
@@ -2338,6 +2338,9 @@ static int resctrl_mkdir_event_configs(struct rdt_resource *r, struct kernfs_nod
if (ret)
goto out;

+ if (!resctrl_arch_is_evt_configurable(mevt->evtid, true))
+ continue;
+
ret = rdtgroup_add_files(kn_subdir2, RFTYPE_ASSIGN_CONFIG);
if (ret)
break;
--
2.43.0