linux/arch/x86/kernel/cpu/resctrl
James Morse fea62d370d x86/resctrl: Allow per-rmid arch private storage to be reset
To abstract the rmid counters into a helper that returns the number
of bytes counted, architecture specific per-rmid state is needed.

It needs to be possible to reset this hidden state, as the values
may outlive the life of an rmid, or the mount time of the filesystem.

mon_event_read() is called with first = true when an rmid is first
allocated in mkdir_mondata_subdir(). Add resctrl_arch_reset_rmid()
and call it from __mon_event_count()'s rr->first check.

Signed-off-by: James Morse <james.morse@arm.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Reviewed-by: Jamie Iles <quic_jiles@quicinc.com>
Reviewed-by: Shaopeng Tan <tan.shaopeng@fujitsu.com>
Reviewed-by: Reinette Chatre <reinette.chatre@intel.com>
Tested-by: Xin Hao <xhao@linux.alibaba.com>
Tested-by: Shaopeng Tan <tan.shaopeng@fujitsu.com>
Tested-by: Cristian Marussi <cristian.marussi@arm.com>
Link: https://lore.kernel.org/r/20220902154829.30399-15-james.morse@arm.com
2022-09-23 12:49:04 +02:00
..
core.c x86/resctrl: Add per-rmid arch private storage for overflow and chunks 2022-09-22 17:46:09 +02:00
ctrlmondata.c x86/resctrl: Allow update_mba_bw() to update controls directly 2022-09-22 17:43:44 +02:00
internal.h x86/resctrl: Allow per-rmid arch private storage to be reset 2022-09-23 12:49:04 +02:00
Makefile x86/resctrl: Avoid confusion over the new X86_RESCTRL config 2019-02-02 10:34:52 +01:00
monitor.c x86/resctrl: Allow per-rmid arch private storage to be reset 2022-09-23 12:49:04 +02:00
pseudo_lock.c x86/resctrl: Kill off alloc_enabled 2022-09-22 14:34:33 +02:00
pseudo_lock_event.h
rdtgroup.c x86/resctrl: Remove architecture copy of mbps_val 2022-09-22 17:37:16 +02:00