Re: [PATCH v4 0/3] page_owner: print stacks and their counter

From: Andrew Morton
Date: Fri Jun 09 2023 - 17:55:16 EST


On Mon, 24 Apr 2023 05:54:59 +0200 Oscar Salvador <osalvador@xxxxxxx> wrote:

> > Given that no other stackdepot user needs these counters, maybe it
> > should be cleaner to store an opaque struct along with the stack,
> > passing its size to stack_depot_save(), and letting users access it
> > directly using the stackdepot handler.
> >
> > I am also wondering if a separate hashtable mapping handlers to
> > counters would solve the problem for you?
>
> Let us see first if with the changes from above the code gets to a more
> generic and clean stage, if not we can explore further options.

Alexander, does this approach sound reasonable to you?

The overall feature seems useful, although I'm not seeing any positive
reviewer feedback.