linux/fs/resctrl
Babu Moger bc53eea6c2 fs/resctrl: Pass struct rdtgroup instead of individual members
Reading monitoring data for a monitoring group requires both the RMID and
CLOSID. The RMID and CLOSID are members of struct rdtgroup but passed
separately to several functions involved in retrieving event data.

When "mbm_event" counter assignment mode is enabled, a counter ID is required
to read event data. The counter ID is obtained through mbm_cntr_get(), which
expects a struct rdtgroup pointer.

Provide a pointer to the struct rdtgroup as parameter to functions involved in
retrieving event data to simplify access to RMID, CLOSID, and counter ID.

Suggested-by: Reinette Chatre <reinette.chatre@intel.com>
Signed-off-by: Babu Moger <babu.moger@amd.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Reviewed-by: Reinette Chatre <reinette.chatre@intel.com>
Link: https://lore.kernel.org/cover.1757108044.git.babu.moger@amd.com
2025-09-15 12:23:24 +02:00
..
ctrlmondata.c x86,fs/resctrl: Replace architecture event enabled checks 2025-09-15 11:54:14 +02:00
internal.h fs/resctrl: Add the functionality to unassign MBM events 2025-09-15 12:22:24 +02:00
Kconfig x86,fs/resctrl: Move the resctrl filesystem code to live in /fs/resctrl 2025-05-16 14:36:09 +02:00
Makefile
monitor.c fs/resctrl: Pass struct rdtgroup instead of individual members 2025-09-15 12:23:24 +02:00
monitor_trace.h x86,fs/resctrl: Move the resctrl filesystem code to live in /fs/resctrl 2025-05-16 14:36:09 +02:00
pseudo_lock.c resctrl: get rid of pointless debugfs_file_{get,put}() 2025-07-09 13:30:28 +02:00
rdtgroup.c fs/resctrl: Introduce interface to display number of free MBM counters 2025-09-15 12:16:11 +02:00