Re: [RFC PATCH v3 09/17] x86/resctrl: Introduce assign state for the mon group
From: Peter Newman
Date: Tue Apr 16 2024 - 14:54:34 EST
Hi Babu,
On Thu, Mar 28, 2024 at 6:08 PM Babu Moger <babu.moger@xxxxxxx> wrote:
>
> +/*
> + * monitor group's state when ABMC is supported
> + */
> +#define ASSIGN_NONE 0
> +#define ASSIGN_TOTAL BIT(0)
> +#define ASSIGN_LOCAL BIT(1)
We already have an enumeration for the monitoring events (i.e.,
QOS_L3_MBM_TOTAL_EVENT_ID), which should already be suitable for
maintaining a bitmap of which events have assigned monitors.
-Peter