Re: [PATCH] debugobjects: Allow to configure the amount of pre-allocated objects

From: Andrew Morton

Date: Wed Mar 11 2026 - 13:49:10 EST


On Wed, 11 Mar 2026 11:04:31 +0100 Benjamin Block <bblock@xxxxxxxxxxxxx> wrote:

> > ---
> > lib/Kconfig.debug | 32 ++++++++++++++++++++++++++++++++
> > lib/debugobjects.c | 15 +++++++++++++--
> > 2 files changed, 45 insertions(+), 2 deletions(-)
>
> Gentle ping, any comments at all for tis?

Normally tglx stuff, but lgtm so I'll add it to mm.git and linux-next
for some test.

obj_static_pool[] is __initdata, so the consequences of making it large
are very slight. So do we really need
CONFIG_DEBUG_OBJECTS_POOL_SIZE_SHIFT? Requiring a rebuild is a huge
hassle. How about simply making the static pool much larger and leave
it at that? Some statement (or, better, comment) which reveals the
number of bytes which are (temporarily) consumed would be useful.