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

From: Andrew Morton
Date: Tue May 16 2023 - 17:12:52 EST


On Tue, 16 May 2023 20:25:34 +0200 Oscar Salvador <osalvador@xxxxxxx> wrote:

>
> ...
>
> page_owner is a great debug functionality tool that gets us to know
> about all pages that have been allocated/freed and their stacktrace.
> This comes very handy when e.g: debugging leaks, as with some scripting
> we might be able to see those stacktraces that are allocating pages
> but not freeing theme.
>
> ...
>
> include/linux/stackdepot.h | 8 +++
> lib/stackdepot.c | 128 ++++++++++++++++++++++++++++++++++---
> mm/page_owner.c | 54 ++++++++++++++++
> 3 files changed, 180 insertions(+), 10 deletions(-)

Documentation/mm/page_owner.rst is feeling very sad.

I'll toss it in there for some testing for now. The changelogs would
benefit from a bit of proofreading, please - quite a few typos and
grammaros.