]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
fs/resctrl: Make event details accessible to functions when reading events
authorTony Luck <tony.luck@intel.com>
Wed, 17 Dec 2025 17:20:57 +0000 (09:20 -0800)
committerBorislav Petkov (AMD) <bp@alien8.de>
Mon, 5 Jan 2026 14:25:22 +0000 (15:25 +0100)
commitdd110880e80d35ad07e460e7a8da007c8058e7bf
treec9d5060d134653abed4593f562f1af988846401a
parent9c214d10c50990c7a61b95887493df9ae713eec5
fs/resctrl: Make event details accessible to functions when reading events

Reading monitoring event data from MMIO requires more context than the event id
to be able to read the correct memory location. struct mon_evt is the appropriate
place for this event specific context.

Prepare for addition of extra fields to struct mon_evt by changing the calling
conventions to pass a pointer to the mon_evt structure instead of just the
event id.

Signed-off-by: Tony Luck <tony.luck@intel.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Reviewed-by: Reinette Chatre <reinette.chatre@intel.com>
Link: https://lore.kernel.org/20251217172121.12030-1-tony.luck@intel.com
fs/resctrl/ctrlmondata.c
fs/resctrl/internal.h
fs/resctrl/monitor.c
fs/resctrl/rdtgroup.c