[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <0d505759-26cd-4101-86dc-4d3cbc120481@intel.com>
Date: Wed, 9 Jul 2025 15:12:41 -0700
From: Reinette Chatre <reinette.chatre@...el.com>
To: Tony Luck <tony.luck@...el.com>, Fenghua Yu <fenghuay@...dia.com>, "Maciej
Wieczor-Retman" <maciej.wieczor-retman@...el.com>, Peter Newman
<peternewman@...gle.com>, James Morse <james.morse@....com>, Babu Moger
<babu.moger@....com>, Drew Fustini <dfustini@...libre.com>, Dave Martin
<Dave.Martin@....com>, Anil Keshavamurthy <anil.s.keshavamurthy@...el.com>,
Chen Yu <yu.c.chen@...el.com>
CC: <x86@...nel.org>, <linux-kernel@...r.kernel.org>,
<patches@...ts.linux.dev>
Subject: Re: [PATCH v6 12/30] fs/resctrl: Make event details accessible to
functions when reading events
Hi Tony,
On 6/26/25 9:49 AM, Tony Luck wrote:
> All details about a monitor event are kept in the mon_evt structure.
> Upper levels of code only provide the event id to lower levels.
> This will become a problem when new attributes are added to the
> mon_evt structure.
>
> Change the mon_data and rmid_read structures to hold a pointer
> to the mon_evt structure instead of just taking a copy of the
> event id.
>
> No functional change.
>
> Signed-off-by: Tony Luck <tony.luck@...el.com>
> ---
> fs/resctrl/internal.h | 8 ++++----
> fs/resctrl/ctrlmondata.c | 16 ++++++++--------
> fs/resctrl/monitor.c | 17 +++++++++--------
> fs/resctrl/rdtgroup.c | 6 +++---
> 4 files changed, 24 insertions(+), 23 deletions(-)
>
> diff --git a/fs/resctrl/internal.h b/fs/resctrl/internal.h
> index b12242d20e61..1458fda64423 100644
> --- a/fs/resctrl/internal.h
> +++ b/fs/resctrl/internal.h
> @@ -90,7 +90,7 @@ extern struct mon_evt mon_event_all[QOS_NUM_EVENTS];
> struct mon_data {
> struct list_head list;
> enum resctrl_res_level rid;
> - enum resctrl_event_id evtid;
> + struct mon_evt *evt;
Please also update associated kernel-doc.
Reinette
Powered by blists - more mailing lists