RE: [PATCH] x86/resctrl: Refactor to make adding extra MBM events easy
From: Luck, Tony
Date: Fri Mar 14 2025 - 16:46:23 EST
> I wrote this to play with some experimental MBM-like events
> that may or may not ever see the light of day. I'm amused that
> this refactor reduced the number of lines of code by enough
> that the patch to support the new events basically just got
> back to parity with current code size.
>
> While the resulting code looks cleaner that the original, I'm
> not sure there is much motivation to apply this change at the
> moment. Just posting for casual reading and to archive it in
> case I do need it someday.
>
> Based on TIP x86/cache.
N.B. I must have messed up while porting from v6.14-rc6
to TIP x86/cache because my system just hung while
running resctrl tests :-(
-Tony