Re: [PATCH v3 17/26] x86/resctrl: Build a lookup table for each resctrl event id

Reinette Chatre
2025-04-19T00:49:04Z

Hi Tony,

On 4/7/25 4:40 PM, Tony Luck wrote:
> User requests to read events arrive from the file system layer
> with a domain id, RMID, and resctrl event id. Responding to
> those requests needs information from various structures.
>
> Build a quick lookup table indexed by resctrl event id.

Why is a second lookup table needed? What about the
lookup table ("all_events") that patch #2 introduced?

Perhaps struct mon_evt could get a "void *priv" or related
member that points to event's private data that varies by
type of event?

Reinette