[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <SJ1PR11MB608337288A7A7F8CE33516F4FC779@SJ1PR11MB6083.namprd11.prod.outlook.com>
Date: Wed, 10 May 2023 00:52:18 +0000
From: "Luck, Tony" <tony.luck@...el.com>
To: "Chatre, Reinette" <reinette.chatre@...el.com>,
"Yu, Fenghua" <fenghua.yu@...el.com>,
Thomas Gleixner <tglx@...utronix.de>,
Ingo Molnar <mingo@...hat.com>, Borislav Petkov <bp@...en8.de>,
Dave Hansen <dave.hansen@...ux.intel.com>,
"H. Peter Anvin" <hpa@...or.com>,
Shaopeng Tan <tan.shaopeng@...itsu.com>,
Jamie Iles <quic_jiles@...cinc.com>,
James Morse <james.morse@....com>,
Babu Moger <babu.moger@....com>
CC: "x86@...nel.org" <x86@...nel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: RE: [RFC PATCH 0/7] Add driver registration i/f to resctrl
> It is hard to tell from just a diffstat how this implementation impacts
> the core. A similar diffstat for the driver implementation may
> help. "1300 insertions(+), 10 deletions(-)" does not seem like a lot of
> core refactoring.
Here's the resctrl bits of Fenghua's diffstat (with the filename of the new
feature changed to avoid giving too much away):
arch/x86/kernel/cpu/resctrl/core.c | 39 +++-
arch/x86/kernel/cpu/resctrl/newfeature.c | 780 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
arch/x86/kernel/cpu/resctrl/monitor.c | 4 +-
arch/x86/kernel/cpu/resctrl/rdtgroup.c | 333 ++++++++++++++++++++++++++++-
Changes to core files are ~375 lines ... about 50% more than I added to core code
to provide a registration hook for this and many other drivers. My driver registration
hooks will likely inflate by that much when the rough edges are smoothed.
-Tony
Powered by blists - more mailing lists